LaTeX: Difference between revisions
| Line 31: | Line 31: | ||
= LaTeX Examples = | = LaTeX Examples = | ||
'''Example.tex''' This is a very simple example,[[example.tex]] | '''Example.tex''' This is a very simple example, [[example.tex]] | ||
= LaTeX Guides = | = LaTeX Guides = | ||
Revision as of 09:07, 29 July 2009
go back to Main Page, Chemistry & More, Writing Tips, Software for writing
LaTeX is a document markup language and document preparation system for the TeX typesetting program. LaTeX is most widely used by mathematicians, scientists, engineers, philosophers, ... As a primary or intermediate format (e.g. translating DocBook and other XML-based formats to PDF), LaTeX is used because of the high quality of typesetting achievable by TeX. The typesetting system offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout and bibliographies.
How to Install LaTeX in Linux
1.- check that latex is not already installed by typing "latex"
2.- if you have root or sudo rights, you coult try to install the following packages (if you have problems ask Martín for help):
- Ubuntu sudo aptitude install texlive-latex-base
- General sudo aptitude install tetex
LaTeX Tips
To compile/process a file:
To compile a TeX file called example.tex, you just need to type:
latex example.tex xdvi example.dvi
The first command will compile the TeX file and create a dvi file. If any typo/error appears on the TeX file, the errors will appear on the screen. The second command will open the output file with dvi. You could use the command dvipdf to convert the dvi to pdf, or dvips to convert it to ps.
You could directly form the pdf from the TeX file by using:
pdflatex example.tex
LaTeX Examples
Example.tex This is a very simple example, example.tex
LaTeX Guides
There are many guides over internet, and several books you can buy. Some nice and popular material is:
- The Not So Short Introduction to LaTeX. File:Lshort.pdf
- LaTeX – A document preparation system. It is a LaTeX guide available on the lab's bookcase, the book number 20.