CS195-5: Introduction to Machine Learning

Fall 2006




General info

Syllabus

Calendar

Projects

Matlab

LaTeX

Mailing List

There is an abundance of information on the Web on using LaTeX to prepare technical documents. One well organized collection of links has been put together by Yossi Gil at the Technion. If you haven't used LaTeX in the past, you will find it helpful to go over the relatively simple examples given there, and then peruse the tutorials on advanced topics.

We also are providing the extremely brief tutorial below, that covers just the bare minimum, to get you started.

  1. File example.tex contains a subset of essential commands, demonstrated in a simple manner. Download it.

  2. On the CS computer, run the command
    latex example.tex
    You will need to run it a couple of times (LaTeX works pretty much like a compiler, and needs more than one pass to get all the labels, cross-references etc. right), until you no longer get complains about undefined references, or warnings that "labels may have changed".

    You will need to have a figure file named sin.eps, which you can download from here as well.

  3. You now have a .dvi file with your document; convert it to PostScript using the command
    dvips example.dvi -o example.ps
    You should get a document that looks like this.

  4. You can create a PDF version example.pdf in two ways:

    • Once you have the DVI, run
      dvipdfm example.dvi
    • Or, create PDF directly from LaTeX:
      pdfl
      Unfortunately, for this you will need to first convert the .eps graphics into some other format, e.g. PDF or PNG:
      convert sin.eps sin.png
      Note that Matlab can save a figure in many formats, including .eps, .pdf or .png.