Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


How to get good-looking PDF output from a TEX file

If you're trying to generate a pdf file from a .tex file, the ideal
method is to use pdflatex on your .tex file:

       athena% pdflatex filename.tex

This will use postscript versions of the Computer Modern fonts, so
that the text looks good at various resolutions.  This also skips the
DVI and Postscript step, so you don't have to generate a .dvi file at
all.

--------------------

If your latex file includes postscript files (such as in figures),
then pdflatex will not be able to generate a proper pdf file.  In this
case, you will need to use dvips and distill:

When distilling "dvips -o" postscript output to pdf format, the fonts
will generally look pixelated and ugly.  This is because dvips, by
default, uses an assortment of bitmapped fonts.  In order to get
nicer-looking pdf output, you can use Type 1 Postscript fonts instead
of the standard bitmap fonts, by doing the following:

athena% latex file.tex
athena% dvips file.dvi -Ppdf

Rather than send the file to the nonexistent printer "pdf", this
creates a .ps file using Type 1 postscript fonts.    Then, to create
the pdf file from this ps file:

athena% add acro
athena% distill file.ps

Note that distill is not available on the SGIs at the present time; if
you're logged onto an SGI, you can telnet to athena.dialup.mit.edu to
run distill.  Alternately, you can use ps2pdf instead (though our
experience is that distill produces better pdf).

athena% add ghostscript
athena% ps2pdf file.ps

--------------------

If you get an error when you run dvips saying something like:

   dvips: warning: no config file for `pdf'
   dvipsk 5.66a Copyright 1986-97 Radical Eye Software (www.radicaleye.com)
   ' TeX output 2002.10.15:1606' -> | lpr -Ppdf
   <texc.pro>. [1] Status Information:
    sending job 'username@machine+24' to pdf@localhost
    connecting to 'localhost', attempt 1
    cannot open connection to localhost - Connection refused
   Make sure LPD server is running on the server
    job 'username@machine+24' transfer to pdf@localhost failed
   
then the problem is that you're using the dvips in the newtex locker - do

     athena% add -r newtex

to "un-add" newtex from your path, and use the dvips in the release

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.