LaTeX
General info about LaTeX
L A T E X is a program that uses a file in text format and uses special commands to make formulas, pictures, summaries etc. You structure the document with sections, titles, attachments etc. How the information is presented after you have run it through LaTeX depends on which document class is used in the file. LaTeX has premade standards for letters, books, reports and articles. TeX is a basis program that other programs expands, like LaTeX, AMSTeX, PcTeX, MiKTeX etc.
Installation
LaTeX is installed on stud's login machines (login.stud.ntnu.no). LaTeX is avaliable for most linux distributions as packages. For windows you can use MiKTeX among others.
How to use LaTeX.
First you need a input file. This is made in a normal text editor like emacs, pico, edit, textpad etc. Emacs had built-in supports for latex with color-codes etc.
Commands in LaTeX
All LaTeX commands begins with the command name which is a backslash ( \ ) with either a text-string or a single letter after it. Arguments in square brackets ( [] ) areoptional, and arguments in ( { } ) are obligatory. LaTeX is also case-sensitive.
A Standard LaTeX document
All LaTeX documents have this layout:
\documentclass{class}
\begin{document}
.... insert your text here ....
\end{document}
class
Print / show Document
You have made a file with the name
test.tex
You then need to type
latex test.tex
test.dvi
To view a dvi file
To view a dvi file you can use a program called xdvi, though it is reccomended to convert it to PS and use the program gv to view the files.
Converting to PS
To convert a file to PS you use the command:
dvips filename.dvi -o tofile
| Languages: | Comments: | 0 | Aid: | 315 | User rating: |
|
|
| Last updated: | 2007-07-02 | Author: | thomasan | Read: | 3507 times |