How to compile Latex on Linux

How to compile Latex on Linux, and what’s the needed packages?

On Fedora, the packages needed can be simply installed via:

# yum install texlive* dvipdfmx

To compile a latex document (say doc.tex) with bibtex used:

$ latex doc
$ bibtex doc
$ latex doc
$ latex doc
$ dvips doc.dvi
$ ps2pdf

The doc.pdf will be generated.

A simple Makefile for automatically compiling the Latex document can be found here:

We can specify more options to ps2pdf: How to convert a ps file to a pdf file.

Leave a Reply

Your email address will not be published. Required fields are marked *