Questions tagged [makefile]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

arara Failing on Validating Directory

Problem I am trying to switch over to using arara instead of a very complex makefile. I am running into the a problem where arara is telling me that a directory is invalid and that I need to fix it. ...
user avatar
  • 115
1 vote
0 answers
45 views

Is there any benefit to compiling LaTeX docs as opposed to using an IDE? [duplicate]

This post is my first question on StackExchange, so please feel free to tell me how to improve. Here's my typical makefile. I usually use pdflatex, and whatever document viewer is available on the ...
user avatar
0 votes
0 answers
71 views

Makefile - latex Compilation

I wrote a simple makefile to compile my latex documents using lualatex. I have two variables in this makefile that I want to pass to the latex code but I don't know how this can be done Here is the ...
user avatar
  • 327
0 votes
0 answers
26 views

Can't get Makefile to perform complete pdflatex compilation sequence

Folder contents . ├── bibliography.bib ├── Makefile └── template.tex Makefile all: make_pdflatex make_glossaries make_bibtex make_pdflatex make_pdflatex make_pdflatex: pdflatex template.tex ...
user avatar
  • 1,382
0 votes
0 answers
67 views

Windows Makefiles and TEXINPUTS

under Windows (using make from GnuWin32) i want to set my TEXINPUTS variable in a makefile My Structure is as follows: ./ |-texmf_project/ |-Package.sty |-main.tex |-makefile I want to be able to ...
user avatar
  • 1
2 votes
1 answer
304 views

Basic Makefile for LaTeX Using Precompiled Preamble

First, I realise that there are a lot of questions on this topic on TeX.SE. I have read through a lot of these, but have not been able to work out how to set up my current configuration. I am very ...
user avatar
  • 1,157
0 votes
0 answers
53 views

How to compile several

I'm working on a larger project, but I'm struggling with splitting my tex-file into several tex-files, as I cannot seem to compile them into one pdf. I'm working from a Linux terminal trying to write ...
user avatar
0 votes
1 answer
119 views

Error using Makefile to generate TeX file

I'm trying to create a Makefile that generates my document. ➜ resume git:(main) ✗ cat Makefile .PHONY: . CC = xelatex CURRENT_DIR = . RESUME_DIR = ./src RESUME_SRCS = $(shell find $(RESUME_DIR) -...
user avatar
1 vote
1 answer
148 views

How can I use makefile to run typeset document with bibliorgaphy?

Recently I was introduced to typeset LaTeX documents with makefile, and I liked that idea. However, when come to the case where I have bibliography, things becomes complicated. First of all, I ...
user avatar
  • 1,884
1 vote
1 answer
78 views

Generic makefile for lyx

I have got a folder with many lyx files. What makefile will automatically build abc.pdf from abc.lyx? I would prefer a pattern so that I can address each pdf target separately. I have not found a ...
user avatar
  • 2,253
0 votes
0 answers
93 views

latexmk not recording dependent files

I don't know whether I don't understand the working of latexmk's -deps flag or it's not working as supposed. I'm building a Makefile for typesetting several documents from a single main.tex file (I ...
user avatar
  • 121
6 votes
1 answer
315 views

write a make file to compile all standalone tikz file

I wrote several standalone tex files for drawing a figure with tikz, I named them with the pattern tikz_*.tex, and now I want to compile them all at once using a make file. First I tried the following ...
user avatar
  • 215
1 vote
1 answer
275 views

Getting a valid makefile from tikz-externalize when using `-output-directory` and input

The following mwe does produce an invalid makefile when used with latexmk's -output-directory option. (The example is from the pgfplots manual) latexmk mwe.tex -output-directory=build \documentclass{...
user avatar
0 votes
1 answer
51 views

tikzexternalize produces a broken makefile on FreeBSD

The following mwe.tex creates a makefile, which is not working on FreeBSD; it's mostly taken from the pgfplots manual. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \...
user avatar
1 vote
0 answers
140 views

Is there a way to create LaTex "object files" like in c in order to write a proper Makefile

I am trying to write a Makefile for a LaTeX project which uses more than one .tex file. I was wondering, if it is possible to create several pdf's (or any other data format) for each .tex and link ...
user avatar
1 vote
1 answer
294 views

Makefile for arbitrary latex document

I wanna use automatic variables to prepare a Makefile for several latex documents. In other words, i have foo.tex, bar.tex, bee.tex, otherdoc.tex ... I wanna use a single Makefile to process all of ...
user avatar
3 votes
1 answer
550 views

UseLATEX (for CMake) doesn't accept compiler flags

I'm using UseLATEX.cmake with CMake and it works pretty well except for passing compiler flags. For example, in the main directory I have a basic TeX file main.tex, the UseLATEX.cmake file, and this ...
user avatar
  • 345
1 vote
2 answers
252 views

Trying to use \MakePerPage{footnote} kills the build of my LaTeX doc

The standard LaTeX footnote behavior is to mark footnotes using superscript numbers. I can't use that, since all of my citations are superscript numbers. What I'd like is for my footnotes to be marked ...
user avatar
  • 689
0 votes
1 answer
845 views

Minimal Makefile for pdflatex bibtex with output-directory [duplicate]

Does someone have a minimal Makefile, that compiles a latex document using pdflatex bibtex pdflatex pdflatex while putting all ouput files in a special output-directory to avoid cluttering the root-...
user avatar
0 votes
1 answer
6k views

When do makefiles recompile and when don't they? (How to force makefiles working.) [closed]

I have noticed that makefiles sometimes do their job (they compile the document) and sometimes they don't (then, they claim nothing has changed). In the latter case, depending on how the makefile ...
user avatar
2 votes
1 answer
111 views

How to generate a Makefile from dtx // keeping the tab width

For a complete documentation I would like to maintain and explain the Makefile within my dtx-file. Two problems occur: docstrip always adds an extension to the generated file (\file{Makefile}{\from{\...
user avatar
1 vote
0 answers
400 views

Which build system should I prefer if I want to distribute tex files?

I want to improve some existing Makefiles in a project where everything is kept as tex files. However, running make pollute the directory with intermediate files and the current Makefile does not make ...
user avatar
1 vote
0 answers
48 views

How to pass jobname info to `latexmk -C`? [duplicate]

I created a Makefile which uses latexmk. Example main.tex: \documentclass{article} \begin{document} Hello World! \end{document} Makefile: FILE := FOOO .PHONY: $(FILE).pdf all: $(FILE).pdf $(...
user avatar
  • 377
2 votes
1 answer
1k 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 ...
user avatar
  • 207
3 votes
1 answer
4k views

Latexmk fails to compile citing missing .bbl file with biblatex

I am trying to use the excellent and well-maintained template/framework here for my phd thesis. https://github.com/holgern/TUB_PhDThesisTemplate since this meets all the requirements of my university. ...
user avatar
4 votes
1 answer
3k views

How to build a Makefile that builds a LaTeX document with dependencies in one run

I am trying to create a Makefile for my paper where I can type just make and it will compile everything in one go. The paper has several figures which are generated from scripts. However, everything I'...
user avatar
  • 434
2 votes
1 answer
3k views

How to write a Makefile in Windows to compile a Latex document using a loop

I need to write several documents that are fairly close to each other, i.e.same structure of header/footer, call a common set of forms. I wrote a Main.tex document with a set of \if\x 1 { my document ...
user avatar
  • 41
2 votes
0 answers
2k views

Texstudio and local texmf

I have a project directory and within the project directory a package in a local texmf-tree. As the project resides in a repository and is compiled on different computers, I would like to have a ...
user avatar
2 votes
0 answers
659 views

latexmk and Makefile with multiple sources

I have a main source file that \include a lot of other LaTeX files such as tables all named tab-XXX.tex. This way, I can have an appending that lists all the tables but this is beyond the point. How ...
user avatar
1 vote
1 answer
349 views

Create external file (like a Makefile) whit real tabs

I'm trying to generate a external Makefile (and others) file using latex and the filecontents or fancyvrb package. As the \t (tabs) characters in input file are converted to space in output file (see ...
user avatar
5 votes
1 answer
1k views

Redefine existing commands outside preamble

I have a Latex document where a lot of the text and figures is generated automatically by a program. In a minimal example, the final document is like this: \documentclass{memoir} %% This file is ...
user avatar
1 vote
0 answers
206 views

How to use UseLaTeX for out-of source build [closed]

I developed some CMakeLists.txt file, which prepares from the same source different outputs (different PDF output formats). I use the line to generate files file(WRITE ${MyFileName} "${newfile}" ...
user avatar
  • 1,377
1 vote
0 answers
866 views

Building PDF with pdflatex and biber

I am trying to build pdf latex out of source with biber and biblatex, but i get LaTex warning: There were undefined references. Please (re)run Biber on the file : report during the third pdflatex run. ...
user avatar
3 votes
0 answers
33 views

Howto force UseLATEX to clean temporary files between changing configurations? [closed]

I have a multiple-output LaTeX file, and created a CMake environment to produce all requested outputs as result of running a single command. Basically, it works. However, since I do have bibliography, ...
user avatar
  • 1,377
12 votes
2 answers
3k views

What is makefile and when do I need to use it along with latexmk?

I was looking for a tool that can look for changes in my TeX files then compiles them whenever a change is registered. So, I came across latexmk and managed to make it do what I want. However, I found ...
user avatar
  • 8,789
0 votes
2 answers
914 views

Force dependency to compile using a Makefile

I compile a project using a Makefile. Somehow (after reading a lot about Makefiles), I can't solve the following problem: I have a main file edu.tex and a file edu-tut.tex, which is imported to edu....
user avatar
  • 1,560
2 votes
1 answer
785 views

Set correct path for BibTeX via Rubber

Setup I am using Rubber to compile my LaTeX document. In my root folder I have main.tex, mybib.bib (both coming from here) and Makefile. main.tex \documentclass[11pt]{article} \usepackage{cite} \...
user avatar
  • 1,383
7 votes
1 answer
4k 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)...
user avatar
3 votes
3 answers
606 views

What is "sepdflatexmk"?

A colleague gave me a .tex file and said it needed to be compiled with sepdflatexmk, which she had on her Mac. She didn't know anything more about this compiler. I did some Googling and it seems ...
user avatar
  • 3,329
0 votes
1 answer
110 views

Compilation of several projects at once

I search a way to (re)compile several different projects at once (all assumed to be compile individually without error). Here, I present the context and the problem. The context: I have a topic, e....
user avatar
0 votes
1 answer
226 views

How to add -sPAPERSIZE=a4 to makefile?

i have this makefile: FILE=name all: latex $(FILE).tex dvips $(FILE).dvi ps2pdf $(FILE).ps and i want to add parameter -sPAPERSIZE=a4 for latex, dvips and ps2pdf, how should i do it? ...
user avatar
  • 103
4 votes
1 answer
427 views

Biblatex remakes bcf and bbl files despite no change to bib files

Any change to my project tex files, even those that do not involve bib files or citations, result in biblatex recompiling the bcf and bbl files. How to prevent this behavior in order to save time ...
user avatar
3 votes
1 answer
394 views

Make utility deletes PDF when Ctrl-C'ing out of continuous preview

I am using a Makefile together with the latexmk utility to build PDFs from LaTeX files. My question is at the bottom. Here is some background: The relevant parts of my Makefile are the following: ...
user avatar
1 vote
0 answers
153 views

Using Make to Compile Latex with external packages [closed]

I am using make to compile my LaTeX files (make is the REQUIRED tool) and am running in to some trouble when trying to build on a 'fresh' computer. By this I mean the documents contain many \...
user avatar
1 vote
0 answers
598 views

\lstinputlisting interprets special characters from included file

I'm writing a report with multiple programming languages. At the moment I'm trying to include a Makefile. When I do: \lstinputlisting[language=make]{./Kodeeksempler/makefile} I get the following ...
user avatar
  • 11
2 votes
1 answer
364 views

GNU Makefile for compiling each chapter with its own reference

My book structure is like: book.tex chapter/ch1.tex /ch2.tex ref/ch1.bib /ch2.bib As each chapter of my book is required to has its own reference thus I used chapterbib package and fed ...
user avatar
  • 163
3 votes
1 answer
776 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 ...
user avatar
  • 123
1 vote
0 answers
911 views

Why does \cite work but \citep and \ref do not?

I'm using a Makefile that was working which looks: # partly autogenerated, that's why it's so ugly! # say 'make V=1' to see the full build output ifndef V Q = @ Q_LATEX = sh -c 'echo -e " " `echo $...
user avatar
  • 111
4 votes
0 answers
474 views

Makefile in packages with UNIX commands and latexmk?

What are the rules regarding writing Makefiles to be part of CTAN packages? I would like to include a Makefile in a package I wrote. The package is in .dtx format with its .ins file embedded. When I ...
user avatar
2 votes
0 answers
99 views

Call GNU Make from AucTeX [duplicate]

In most Emacs major modes targetting compiled programming languages, C-c C-c invokes make. In AucTeX, it lets me choose between any of BibTeX Biber Check ChkTeX Clean Clean All File Index ...
user avatar
  • 3,914