Saturday, April 5, 2008

On Latex

Trying latex now.

Collect some useful stuff:
very good site to start. by Cambridge

To create pdf from tex

ps2pdf (unix)

Let's say we have the TeX file, paper.tex with the output file, paper.dvi and we want to convert this to postscript and pdf format.

To convert to postscript:

dvips paper -o

To view the postscript file, use ghostview:


To convert to pdf format without any specified options:

ps2pdf paper.pdf

where is the input file and paper.pdf is the output file

You may want to specify options such as embedding fonts, so all users can view your file:

ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true

The command, ps2pdf is part of Alladin's Ghostscript program.

More about the options for ps2pdf:

No comments: