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 doc.ps

The doc.pdf will be generated.

A simple Makefile for automatically compiling the Latex document can be found here: https://www.systutorials.com/b/linux/1643/a-simple-makefile-for-latex/

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

Answered by anonymous.

Leave a Reply

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