Converting LaTeX Documents to PDF
The standard latex program takes in LaTeX documents and produce a DVI (DeVice Independent) file, which must then be converted to a device dependent format by a driver such as dvips.
The CCC systems have a related program - pdflatex - which works like the standard latex but which produces a PDF file instead of DVI. A benefit of this is that pdflatex uses the PostScript Type 1 (Outline) fonts by default, for high-quality print output.
If you have graphics included in your document, some work has to be done to make them compatible with pdflatex. Regular latex uses Encapsulated PostScript (EPS) for included graphics, but pdflatex does not. pdflatex does, however, allow graphics in PNG [Link to: http://www.libpng.org/pub/png/] format. The convert utility, a part of the ImageMagick [Link to: http://www.imagemagick.org/script/index.php] suite, is installed on the CCC systems, and can convert EPS graphics to PNG:
convert wpi-logo.ps wpi-logo.png
Graphics are included in LaTeX documents by first loading the graphicx package:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
At the point where you want the graphic to be, declare the graphic using the includegraphics command:
\includegraphics{wpi-logo}
If you leave off the file extension (.ps, .png) in declaring the name of the graphic, then latex and pdflatex will pick whichever version of the graphic suits its need best, allowing you to process a single version of the document using either program without changes.
There is also a pdftex program, which does the same thing as pdflatex, but is an analogue to the regular tex Plain TeX processing program.
More Information and Resources
Why does my ETD (electronic thesis or dissertation) or eProject look so choppy when I convert it from LaTeX to DVI to PostScript to PDF?
- Outline and bitmap fonts compared
- PostScript Type 1 and Type 3 Fonts - General Information
- AMS symbols available in TeX
- The AMS Fonts users guide
Why are PDFs best from PostScript Type 1 fonts?
- Outline and bitmap fonts compared
- Creating quality Adobe PDF files from TeX with DVIPS
- Using LaTeX to Create Quality PDF Documents for the World Wide Web
Assorted LaTeX/TeX/PDF Resources
- The WPI Computer Science Graduate Student Organization has a LaTeX Resources page (including a thesis/dissertation template).
- Creating PDF hyperlinked and form documents (cf. Acrobat Exchange) through TeX
- pdfTeX outputs PDF rather than DVI, but does not support PostScript specials (i.e. graphics), at least not by default. This is installed on the CCC Systems.
- PDFLaTeX outputs PDF rather than DVI, but does not support PostScript specials (i.e. graphics), at least not by default. This is installed on the CCC Systems.
- Conversion Links
- LaTeX->PC text processors->LaTeX
- dvipdfm: DVI->PDF, but seems to not support PS specials.
- pstoedit: PS->PDF (cf. Acrobat Distiller), and other vector formats.
- GhostScript can also convert PS->PDF with its "-sDEVICE#pdfwrite -sOutputFile#filename.pdf" parameters.
Last modified: Apr 23, 2007, 14:12 EDT
