Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple Makefile for pdflatex-produced documents
TeX Makefile
branch: master

Treat \input{foo.tex} like \input{foo}

Note that \include{foo.tex} doesn't include the file foo.tex; you must use
\include{foo} to do that.  \input{foo} and \input{foo.tex} are equivalent.

This change treats \include{foo.tex} like \include{foo}, which is a bit
misleading; foo.tex will be properly counted as a dependency but it won't
actually be included in the typeset document.  Maybe fix this.

More than you want to know about the distinction:
http://tex.stackexchange.com/questions/246/when-should-i-use-input-vs-include
latest commit b81f0ba0e6
Ben Ransford authored

README.md

Quick Start

If your main file is mypaper.tex:

$ curl -O https://raw.github.com/ransford/pdflatex-makefile/master/Makefile.include
$ cat > Makefile
TARGET=mypaper
include Makefile.include

Features

Simple Makefile for typesetting papers using pdflatex.

Features:

  • Simple to use: just set TARGET=<yourpaper> and include Makefile.include. See the example/ directory for a usage example.
  • Supports multiple targets: set TARGETS=paper1 paper2 instead of TARGET.
  • Calculates dependencies sanely. Detects changes to included .tex and .bib files and rebuilds when appropriate.
  • Detects your revision control system (svn, git, hg) and defines a \Revision command you can use in your LaTeX markup to include a current revision identifier. Useful for circulating drafts for comment.
  • make view opens your typeset document.
  • Distills a camera-ready PDF (with fonts embedded): make distill
  • To generate a draft with the revision number in its filename (to pass around), use make snapshot.
Something went wrong with that request. Please try again.