LaTeX

From Duke Wiki

LaTeX
Download On Unix
Web Page Site


LaTeX is a document preparation system written by Don Knuth (TeX) and extended by Leslie Lamport. It is a powerful, and free, way to generate professional, dynamic documents.

This page is part of a collection of pages either moving or being duplicated at the new Pratt Pundit Wiki.

The contents are still active here at Duiki, but may either be locked here or may start being edited independent of the corresponding page at the Pratt Wiki. The Pundit Page is at LaTeX



Contents


[edit] External Links

[edit] FAQ

[edit] What's the 15-second summary or using LaTeX?

  1. Use emacs blah.tex & to generate the source code.
  2. Use latex blah.tex & to process the file. If successful, among other things, you will have a new blah.dvi file.
  3. Use kdvi blah.dvi & to look at (and eventually print) the file.

Note - if you have a \tableofcontents, or a \listoffigures, or any \label and \ref commands, you will want to run the latex step three times before progressing to the kdvi step.

[edit] What do I do if LaTeX just sits there?

Hitting CTRL-C, then x and return, will always get out of LaTeX regardless of the error

[edit] What did I do wrong?

Generally, LaTeX will try to tell you - look closely at the error message LaTeX gives you

[edit] What is Underfull hbox -10000?

It's a warning that something is a bit thin - generally a table or a figure. Don't worry about these at all.

[edit] Why does LaTeX think my align or align* environment is messed up?

To continue: "I have checked it thousands of time and it looks good to me!" Make sure there are no blank lines within the environment. For some reason align hates those. The following, for example, causes problems:

\begin{align}
a\\

b
\end{align} 

Also - it may be in a line above the end of the align environment. You can use % in front of a line of LaTeX code to turn that whole line into a comment - doing that, you can find which line is having a bad day and correct it.

[edit] My \pagebreak doesn't...page...break Why?

Make sure there is ablank line after the \pagebreak command; that is:

blah
\pagebreak

more blah

[edit] How can I double space?

Basically, include the following two lines between the \documentclass and the \begin{document}[1]:

\usepackage{spacing}
\setstretch{2.0}

[edit] How do I get a $ Symbol

For the characters that LaTeX uses as code ($ and { or }) you need to issue the command to print those - in other words, \$ \{ and \} are the commands to print those individual characters.

[edit] Notes