|
Frequently it is necessary to generate a PDF file from a document. It is generally easier to handle under Linux, and is also more compact than uncompressed PostScript. Many conferences will only accept PDF versions of papers, so it sometimes cannot be avoided. Fortunately, it is easy to generate high-quality PDF files with LATEX.
First, we make a new directory named Ejemplo: mkdir Ejemplo.
After, we have to pass this directory: cd Ejemplo/
After then, i make a file with vi, emacs, joe or nano. This file will name archivo.tex (Example: vi archivo.tex). In the file we write the next:
\documentclass{article}
\begin{document}
Hello world, this is my first document in LaTeX !
\end{document}
Next, we compile the file: latex archivo.tex
Now, we obtain very files, but the important is archivo.dvi. If you want to see the file with the next sentences: xdvi archivo.dvi
This file can to convert to PDF with the next comands: pdflatex archivo.tex
The file can to see with xpdf archivo.pdf
Coments: Note that this works a lot better than running ps2pdf, which generally results in an unreadable document.
|