Questions tagged [makefile]

{makefile} tells the operating system how to derive the target program.

Filter by
Sorted by
Tagged with
138
votes
26answers
29k views

Tools for automating document compilation

A lot of people write makefiles that say something like paper.pdf: paper.tex pdflatex paper bibtex paper pdflatex paper pdflatex paper To handle re-running TeX to get ...
126
votes
2answers
76k views

How to properly 'make' a latex project?

I've got a latex project that looks like this: project/ |-- main.tex |-- main.bib |-- preamble.tex |-- preamble.fmt |-- makefile The preamble (preamble.tex) is being precompiled into ...
15
votes
5answers
2k views

Changing LaTeX headers via a makefile

I recently created a makefile to use with my TeX documents and am quite happy with the discovery. When I create Beamer slides to use in class, I create both a set of slides and a handout to go along ...
4
votes
3answers
2k views

How can I highlight text before a character with listing?

All is in the title. I would like to add a color to the text before a character with listing package. For example, I would like to add a color to text between the beginning of a line and : or =, in a ...
15
votes
2answers
5k views

How can I keep a clean document folder with custom .cls, .sty, .bst files in a separate subfolder?

I am using a Makefile for generating a document from its tex source. The whole project consisting of own input files (.tex, .bib, .eps, ...) and non-pre-installed static input files (.cls, .sty, .bst) ...
18
votes
4answers
5k views

How to create PDF and HTML output from the same source

I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages pdfpages and pdftex and commands like includepdf{}. But soon ...
5
votes
1answer
2k views

Makefile for a latex report

Not sure if this belongs here - but its bugging me. I have a makefile : DOCNAME=SI16-SC13B038 D1=Abstract D2=Bonafide D3=Declaration D4=Introduction DBIB=References TEXDEP=$(D1)/*tex $(D2)/*tex $(D3)...
11
votes
3answers
591 views

how to cause unix 'make' to know how many times to run *tex

Is there a clever way to cause the unix make command to run a tex variant as many times as are required to resolve all references? I've used tex for a long time, and I still don't know which of all ...
9
votes
2answers
3k views

Is there any way to build a LaTeX document from a parent directory?

I've written a makefile for my current project which produces all deliverables (executable, written in C, and report, written in LaTeX). I have a directory structure whereby the Makefile and outputs (...
6
votes
1answer
2k views

pgf: 'externalize' with 'list and make' on windows [closed]

In the pgfmanual I found today under Section 50.4.4 Customizing the Externalization that you can have multicore support during externalization using the mode list and make. % step 1: generate main....
5
votes
1answer
912 views

Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, ...
6
votes
1answer
264 views

Controlling draft options from a Makefile

I would like to control class options such as draft and geometry package's showframe from a Makefile. Is there a way I can parameterise a document using LaTeX itself, or will I need to preprocess the ...
3
votes
1answer
535 views

latexmk: jobname option and clean up incompatibility?

I'm using latexmk in a Makefile to compile my document. Since I want my output filename to be different from the input filename, I use latexmk's option jobname. The problem is: it seems to be ...
1
vote
1answer
396 views

Use latexmk with -use-make to generate standalone graphics

I'm trying to build my main.tex that includes a standalone pic.pdf. Special is, that pic.pdf needs to be built by latexmk (via the -use-make flag) while actually building main.tex. The problem ...