Skip to content

finnhaedicke/make-latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

make-latex

Makefile snippet to compile LaTeX to PDF with dependencies

Calls pdflatex, bibtex, makeindex (and repeats pdflatex). Scans for dependencies inside the .tex to manage reruns. The following commands are supported:

  • \include{}
  • \input{}
  • \includegraphics{}
  • \bibliography{}
  • \lstinputlisting{}

If images do not exist, the Makefile will try to generate a pdflatex compatible format. Supported image formats are PDF, PNG, JPG which are not converted and SVG, Dia, EPS, Xfig and gnuplot.

Add this block to your Makefile to build main.pdf

all: main.pdf

include path/to/Makefile.tex
$(eval $(call build_latex,main))

About

Makefile snippet to compile LaTeX to PDF with dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published