Other links:
Unlike "WYSIWYG" typesetters which are bundled into the editor (as is typical in a PC platform), TeX/LaTeX is a language-based approach. You prepare a latex file by interspersing latex commands with your texts, in order to produce the desired output. E.g., in the output sequence ``Hello World!'', if you wish the word ``Hello'' to be in bold font, your latex file will contain the sequence
The advantage of this approach is that you are in greater control of your output. The disadvantage is that you need to run latex on your file, whose output is a binary file in the so-called dvi-format, which can be viewed by using a viewer such as xdvi. In any case, this is the dominant approach in the Unix world and in academic computer science. By most accounts, TeX (and therefore latex) produces superior output. This is especially so for mathematical typography.
Another introduction from the latex homepage.
> latex report -- this produces several files, including "report.dvi". -- you can print the dvi file (to the current default printer) by invoking: > dvips report.dvi -- if you want to output a postscript file called "report.ps", you can invoke instead: > dvips -o report.ps report.dvi
> setenv TETEXDIR /usr/local/lib/teTeX
% This is a comment line \documentclass{article} \begin{document} % Note to self: % I must change this title later! \title{Hello World} \author{Your Name\\ Department of Computer Science\\ Courant Institute, NYU} \maketitle \begin{abstract} ...put your abstract here... \end{abstract} \section{First Section} ...text... \subsection{First subsection} ...text... \subsection{Second subsection} ...text... \section{Second Section} ...text... ...and so on... \end{document}NOTES:
\input{report1}
{\bf This is in bold} and {\it this is in italics} and this is in default roman {\rm as is this}.
\begin{verbatim} ...text, e.g., VRML nodes... \end{verbatim}
\begin{enumerate} \item First item... \item Second item... ... \end{enumerate}The numbers 1, 2, etc, are automatically generated for each item.
\begin{description} \item[(a)] First item... \item[(b)] Second item... \end{description}Note that the main difference is that "\item" now takes an argument (enclosed in square brackets), and these are used as the labels for your items.
You type this | To get this |
---|---|
x_i: | "x sub i" |
x_{i,j} | "x sub i,j" |
x^i | "x sup i" |
x^{i,j} | "x sup i,j" |
x_i^j (equivalently, x^j_i) | "x sub i sup j" |
\left( | -- this is the left paren of the matrix |
---|---|
\begin{array}{ccc} | -- this declares the matrix to have 3 columns (c=centered) |
a_{1,1} & a_{1,2} & a_{1,3} \\ | -- the first row |
a_{2,1} & a_{2,2} & a_{2,3} \\ | -- the second row |
a_{3,1} & a_{3,2} & a_{3,3} \\ | -- the third row |
\end{array} | -- finish declaring matrix entries |
\right) | -- this is the right paren of matrix |
Last Update: September 1997.