LaTeX Overview
LaTeX Overview
Introduction
L
AT
EX (pronounced Lay-Tech) is a text-based formatting language used to create documents. L
AT
EX logically structures a document by explicitly stating which parts of the document are titles, subtitles, bibliolography, etc. This is converse to a WYSIWYG word processor in which titles are usually just put in bold or a larger font. This way of formatting, called logical markup, is useful because it yeilds an easy way to make mass changes to the entire document. For example, you could change the font for every subtitle in the document, or you could change the title of a section and the table of contents would automatically update.
Figure 1: A simple L
AT
EX source
Figure 2: Resulting L
AT
EX output
Notice how the differences in font and boldness for the titles were handled by L
AT
EX and were never stated, however in the second bullet the text was explicitly made italic.
Font and Characters
Special Symbols and Characters
| Symbol | LATEX Symbol |
| LATEX | \LaTeX{} |
| \ | $\backslash$ |
| $ | \$ |
| % | \% |
| & | \& |
| _ | \_ |
| # | \# |
| { | $\{$ |
| } | $\}$ |
| " (open quotes) | `` (character on ~ key twice) |
| " (close quotes) | '' (single quote twice) |
Additional symbols can be found at
http://www.agu.org/symbols.html
{\it this text will be italic} but the rest of the text is normal type
this text will be italic but the rest of the text is normal type
{\bf this text will be boldface} but the rest of the text is normal type
this text will be boldface but the rest of the text is normal type
Printing
- You want to convert a LATEX file (.tex) to a post script file (.ps) and print it on CS dept. printers.
What to do next:
- SSH to interactive.cs.tamu.edu, as explained in
SSH via PuTTY.
- At the command prompt, type LATEX filename.tex and press
Enter. This will convert your .tex file to .dvi file with the same name.
- Now, type dvips filename.dvi and press Enter. This will
convert your file to a post script file with the same name.
- To print the post script file from Unix, type lpr -Pps210 filename.ps
and press Enter.
Additional LATEX Resources
The following guides are very helpful, and can be found
freely on the web via search engine:
-
A Simplified Introduction to
LATEX, by Harvey J. Greenberg
-
The Not So Short Introduction to
LATEX2e, by Tobias Oetiker
-
LATEX for Word Processor Users,
by Guido Gonzato
-
Reference Card for LATEX, by
Joseph Silverman
- A handy reference card listing
LATEX commands. Note that the
section regarding math commands uses the special American Mathmatical
Society format for maths rather than the default
LATEX maths format (both math
styles are popular). Available at the following URL:
http://leibniz.math.brown.edu/~jhs/
The above guides, as well as much other helpful
LATEX related information, can also
be found on the following helpful websites:
Sample LATEX Files
The following sample files may be helpful to you as you start to learn
LATEX. In MS Internet Explorer, just
right-click on the links and select ``save as...'' to save the file to your
disk.
-
The LATEX source files for this
document:
-
For the document itself:
-
For the simple LATEX sample
document shown above in figure
1:
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore, Mathematics
Department, Macquarie University, Sydney.
To Top of Page
©CSG Helpdesk