Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [latexmk]

{latexmk} is a Perl script to automatically run latex and related commands as many times as needed to build the final document.

1
vote
1answer
75 views

How to automatically create multiple versions of a document with different paper sizes & reflecting this in the generated PDF filename?

I am using the moderncv class to prepare my resume for applying to jobs in the US (where the standard paper size is letter), and in UK (where the standard paper size is A4). Here is a MWE file called ...
2
votes
1answer
42 views

Endless compilations when SourceCodePro is loaded, target PDF absent but aux file present

For some time now I witnessed latexmk compiling my documents 5 times in a row. I thought that was because I was doing very complicated things with beamer. But consider the following code : \...
2
votes
1answer
34 views

Conditional output dependent on --shell-escape option value

I would like to print the git revision of the document with the latexgit package, which requires the --shell-escape option to work. As this feature is very optional for building the document, I would ...
2
votes
2answers
85 views

How to suitably configure the TEXINPUTS variable in latexmkrc for detecting the sty and cls files present in a custom folder in the project directory?

I am working on a project where in the .cls and .sty files installed by the TeX distributions are too old, but they have been patched by other users on github. I wish to use these updated versions of ...
6
votes
1answer
217 views

Unicode -(U+301) error in biblatex, but not in main text: {\'{\i}}

When compiling my document embedding references using biblatex, I get the error message: Package inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX With the help of ...
1
vote
2answers
76 views

latexmk “not registered”, looking for java?

I've recently installed Visual Studio Code's LaTeX Workshop to evaluate as a replacement for TeXworks. A document which compiles as expected using TeXworks fails in VSC, and initial troubleshooting ...
4
votes
1answer
64 views

Cleaning intermediate files from custom latexmk dependencies without deleting the final PDF

I am using latexmk to compile my document, and have written a custom dependency rule to generate some files to include. The processing involves creating some intermediate files which I'd like to clean ...
0
votes
0answers
33 views

Can I infer the name of the format file if it is missing?

This answer adds a custom dependency to create a format file .fmt from an .ltx file when it's missing. It assumes that the preamble is separated from the main .tex file in a file with the same ...
0
votes
0answers
21 views

Get latexmk's warning summary without rerunning pdflatex (more than once)?

I want to use latexmk to obtain a warningsummary, but for quick updates I don't want it to run multiple passes of pdflatex. The related discussion Make latexmk just run pdflatex once mentions the ...
3
votes
1answer
65 views

latexmk with xelatex and pdfx does not converge

Given the following minimal example: \RequirePackage{filecontents} \begin{filecontents*}{\jobname.xmpdata} \Title{Minimal Example} \Author{John Doe} \end{filecontents*} \documentclass{article} \...
1
vote
1answer
2k views

Error “latexmk: The script engine could not be found” in VS Code using MikTeX 2.9

LaTeX-Workshop on VS Code keeps printing this error: latexmk: The script engine could not be found. latexmk: Data: scriptEngine="perl.exe", scriptName="latexmk" I installed 'latexmk' via MikTeX ...
2
votes
1answer
48 views

output_dir from latexmk breaks makeglossaries

I've got a problem with a custom latexMK.rc file and makeglossaries using xindy. The document: \documentclass{article} \usepackage[nomain,acronym,xindy]{glossaries-extra} \makeglossaries \...
4
votes
1answer
508 views

Why is pdflatex outing itself as pdftex?

I'm running latexmk -pdf in my GitLab-CI environment to render *.tex files into a PDF. As I checked the outputs I found, that latexmk is calling pdftex instead of pdflatex: Checking out d4c1eceb as ...
1
vote
0answers
47 views

latexmk preview xdv file?

This question introduced a idea that instead of generating pdf file every time, we may use xdv file as the target for intermediate processes, and only convert to pdf file once with xdvipdfmx at the ...
0
votes
1answer
40 views

Errors with latexmk -c (cleanup) option

I am using latexmk and calling it from within python, with the following command: latex_params = ' -pdf -interaction=nonstopmode -gg -silent' latexmk_string = str("latexmk -cd " + '"' + str(path/...
0
votes
1answer
60 views

`latexmk` with cleanup and `-pvc`

I am unable to put the -pvc (preview continuously) and -c (clean up) options together for latexmk. latexmk -pdf -pvc -c file.tex My observation: After giving -c option, the file gets compiled, (...
1
vote
2answers
42 views

Timestamp for LaTeXmk output

I am running latexmk in a silent and preview continuous mode. latexmk -pdf -silent -pvc myfile.tex However when I look at the terminal (which has brief log output), then I have no way to figure out ...
1
vote
0answers
49 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 ...
0
votes
0answers
58 views

Get path of (custom) auxiliary file when `-output-directory` flag is given to pdflatex

In short: Say the following is built using pdflatex -output-directory=tmp: \documentclass{article} \newwrite\fileHandle \immediate\openout\fileHandle=outfile.csv \immediate\write\fileHandle{hello ...
2
votes
1answer
69 views

Why PDF-via-PS has heavier font than direct PDF? [duplicate]

I compile the same tex using two commands: latexmk --pvc --pdfps ./main.tex and latexmk --pvc --pdf ./main.tex Then view both pdf files using evince, at the same scale (170%). The result using --...
0
votes
0answers
97 views

Make latexmk just run pdflatex once

As far as I know latexmk automatically defines what to do when running it. So compile it several times that all references are correct. However this takes a loooong time when I just want to check my ...
1
vote
0answers
62 views

latex error tikz.code.tex not found

I have an updated latex installation using texlive (full), but still, on compiling, I am getting warning: /usr/local/texlive/2018/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty|13 error| Could not ...
1
vote
1answer
117 views

latexmk location of PDF output

I am using latexmk and have the $out_dir set to ./build in my .latexmkrc configuration file. This is working as it should. But is there any way of having the generated PDF file put in the main ...
3
votes
1answer
88 views

Compile all latex documents in subdirectories (when documents involve multiple files)

I have a directory containing many separate latex documents, either directly or inside subdirectories; and I want to compile all these documents simultaneously. Some of these documents involve ...
0
votes
0answers
44 views

Using the -c option from latexmk in a .sublime-build file, with a jobname specified by %!TEX root

With LaTeXTools on Sublime Text (using the current prerelease v3.15.1) I'm trying to write a simple .sublime-build file to run latexmk -pdf and then latexmk -c for a given $jobname, specified by %!...
1
vote
1answer
93 views

Footnote without a marker for moderncv documentclass

I have trouble getting the answer from Footnote without a marker to work for my moderncv document and TeX Live 2017, LuaLaTeX 1.0.4 and Latexmk 4.53a. The following document: \documentclass{moderncv}...
2
votes
1answer
115 views

Automated document generation with \tikzexternalize[mode=list and make]

With help of this Question I managed to realize a parallel externalization of multiple tikz picture rendering using the tikzexternalize option mode=list and make. Considering the following example \...
3
votes
0answers
503 views

Vimtex: how to display error messages?

I'm using LaTeX in Vim with plugins vimtex from lervag (GitHub link), latexmk and neovim, and it works just fine as long as I'm making no mistakes. I press \ll and compile by writing (:w) and the ...
2
votes
1answer
179 views

Vim, latexmk and accented filenames

My very first question on StackExchange. I'm using GVim on windows, trying to compile a minimal tex file with accented characters, e.g. "é 3.tex". Inside gvim, with pdflatex, no problem, but there is ...
0
votes
0answers
357 views

tools package - “Installed file does not exist”

After updating all the packages in my MiKTeX 2.9 installation (the last update was 03/2018), the compilation of a document that apparently uses the tools package does not work anymore. The mpm ...
1
vote
0answers
31 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 $(...
0
votes
0answers
63 views

Block in a section for latex

I need help in the following latex document for poster. Mainly my problem is how to make block in each section for in the below example, I want to make block in the introduction section. Can anyone ...
1
vote
1answer
264 views

latex compilation via php's shell_exec

I want to compile a latex file via php. Therefore I use shell_exec("/usr/bin/xelatex --output-directory=output/ --interaction batchmode doc.tex"); The problem I ran into is,that the www-data user on ...
1
vote
1answer
124 views

reference is not generated after compiling with latexmk -f -pdf

I encounter a problem to use latexmk to compile my paper. Story: I have my paper on overleaf online and the generated pdf view contains everything including the references. Then I would like to ...
1
vote
1answer
60 views

Troubles using `standalone` class with subfig

I would like to generate a figure which I want to embed in another document as PDF. For this I would like to use the standalone class, which I've used before. But now I run into great troubles. The ...
1
vote
1answer
317 views

How to specify the absolute path of the output directory with latexmk?

I'm trying to execute latexmk from my web application and need to specify the path of its output directory. (I'm on Linux CentOS 6.9) I have my .tex files in the directory /home/(the path) (this is ...
2
votes
1answer
389 views

latexmk specified output directory

latexmk version is Latexmk, John Collins, 17 Jan. 2018. Version 4.55, OS is Windows with MiKTeX2.9, console emulator I use cmder, which include perl. The perl version is perl5 (revision 5 version 24 ...
1
vote
1answer
620 views

TexLive 2018: latexmk does not work (seems to crash) - How to debug?

I switched to texlive 2018 yesterday. My Build-Environment: Win64, Texstudio, latexmk, lualatex, biber. I tried to compile a test document - it worked fined using my old TL-17 and the new TL-18 ...
0
votes
0answers
103 views

latexmk does not understand white space in \bibliography (and gives no warning)

I have switched to MiKTeX's latexmk. However, this is what I get with a regular document: Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55. Latexmk: applying rule 'bibtex Bug'... ...
0
votes
1answer
266 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 ...
1
vote
1answer
463 views

How to enable shell escape when building with latexmk and xelatex

The title already says the question. I want to clarify that this is not a duplicate, because existing answers are all for plain latex or pdflatex. Building with latexmk and pdflatex with shell ...
0
votes
1answer
265 views

latexmk full build command from SublimeTex and LatexTools

I have a document that I've been working on for a long time using Sublime Text 3, LatexTools, and TexLive. Both on Windows 10 and Mac. Everything there works great. I tried to compile it from the ...
0
votes
2answers
99 views

Trouble compiling locally due to \include{directory/file.text}, but works in browser

I am struggling to compile a file locally either in TexMaker or Atom that nevertheless compiles fine on ShareLatex.com (where I originally made it). My file is of the form... \documentclass{article} ...
1
vote
0answers
49 views

latexmkrc custom dependency code to generate syi file

I am using the excellent latexmk build tool to build a PhD thesis based on the template: https://github.com/holgern/TUB_PhDThesisTemplate Project requires me to manually specify a makeindex command ...
0
votes
1answer
565 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. ...
1
vote
1answer
1k views

latexmk - “(Pdf)Latex failed to generate the expected log file” when using -auxdir flag

I'm using latexmk Version 4.41. Calling latexmk -pdf document_template.tex compiles fine without any errors. However when I attempt to output all the aux files into a folder tmp with the following ...
2
votes
2answers
143 views

Determine within LaTeX how many times latexmk have run

Backround So I've gathered that latexmk runs pdflatex until "all files are up to date". Problem and motivation Say that I have some dynamic content that should only be run once. By dynamic I mean a ...
1
vote
0answers
250 views

Pythontex and latexmk

The compilation works fine if I use LaTeX, Python, and then LaTeX, with the command for Python : python "C:\Program Files (x86)\MiKTeX 2.9\scripts\pythontex\pythontex.py" But I can't use latexmk ...
2
votes
1answer
143 views

lualatex bug confuses latexmk dependency tracking

The described issue has been confirmed as a bug in luatex that can be expected to be solved in TeXLive 2018. Also latexmk itself has been extended to deal with this issue in version 4.55d. For a ...
3
votes
1answer
104 views

latexmk : Clean multiple files created by custom dependency

I am using latexmk with a custom dependency that is used to create .tex files from .svg files. The problem that arises is, that the conversion actually creates two files, the .tex file and a .pdf ...