How to compile LaTeX file

Sunday, March 22nd, 2009
Advertisement

Subscribe.
Enter your email:

Here are the typical steps to produce DVI, PostScript or PDF file from a LaTeX source file:

  1. Create the LaTeX source file. It must be in the plain ASCII format. Simple text editor like Notepad, VIM or Emacs would be fine. Please do not use word processor like Microsoft Office.
  2. Run LaTeX on the LaTeX source. Any warning or error will be reported, if exists. If the source file contains table of contents, or references, you may need to run the above command several times. If you are lucky, you will get a DVI file, called yourfile.dvi. To view it, use dvi viewer like xdvi or Yap.
    latex yourfile.tex
  3. To convert the DVI file to PostScript format, run
    dvips -Pcmz yourfile.dvi -o yourfile.ps
  4. To produce a PDF file, you don’t need to do step 1. Just run
    pdflatex yourfile.tex
  5. To produce a PostScript file from a PDF file,
    pdf2ps yourfile.pdf newfile.ps
  6. To produce a PDF file from a PostScript file,
    pdf2ps yourfile.ps newfile.pdf
If you are new here, you might want to subscribe to the RSS feed or newsletter.

Enter your email address:

Creates the exact copy of your hard disk and allows you to instantly restore the entire machine.
New Acronis True Image Home 2010 is the most reliable and easy in use backup solution. Now with online backup option!
15% Discount Code: FMAATIH2010

What else?

Like this article? Share it

 Digg  del.icio.us  TwitThis  Facebook  Reddit  StumbleUpon

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>