Processing LaTeX with GNU/Linux systems: Difference between revisions

From String Theory Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Suppose you have a file <code>sample.tex</code> written in <math>\LaTeX</math> and you want to process it into a readable document on a GNU/Linux system.
Suppose you have a file <code>sample.tex</code> written in LaTeX and you want to process it into a readable document on a GNU/Linux system.


To convert it into a DVI file go to a command line and move to the directory in which you saved the file.  There run <code>latex sample.tex</code>.  Unless there is a problem you should now find a file called <code>sample.dvi</code> in the directory.
To convert it into a DVI file go to a command line and move to the directory in which you saved the file.  There run
latex sample.tex
Unless there is a problem you should now find a file called <code>sample.dvi</code> in the directory.


To convert this into a PS postscript file which you can then print run <code>dvips sample.dvi</code>.
To convert this into a PS postscript file which you can then print run  
dvips sample.dvi


To convert this into a PDF file run <code>ps2pdf sample.ps</code>.
To convert this into a PDF file run
ps2pdf sample.ps
 
To convert a LaTeX file <code>sample.tex</code> directly into a PDF file run
pdflatex sample.tex

Latest revision as of 19:32, 24 December 2006

Suppose you have a file sample.tex written in LaTeX and you want to process it into a readable document on a GNU/Linux system.

To convert it into a DVI file go to a command line and move to the directory in which you saved the file. There run

latex sample.tex

Unless there is a problem you should now find a file called sample.dvi in the directory.

To convert this into a PS postscript file which you can then print run

dvips sample.dvi

To convert this into a PDF file run

ps2pdf sample.ps

To convert a LaTeX file sample.tex directly into a PDF file run

pdflatex sample.tex