Stack Exchange Network

Stack Exchange network consists of 174 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.

6
votes
1answer
134 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
57 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 ...
3
votes
1answer
48 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
29 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
19 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 ...
2
votes
1answer
37 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} \...
0
votes
1answer
518 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
40 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
351 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
32 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
0answers
27 views

convert (serialize) to single file

I have written a PhD thesis in LaTeX as well as several more articles and presentations. They are all situated in the same directory structure and they all use the same low level files, .tex, .pdf, ....
0
votes
0answers
14 views

Use a variable to set the active language in Babel [duplicate]

I'm playing around with the Babel package and got the idea to set its activelanguage using a newcommand, so it would be possible to decide the language to use when invoking latexmk: latexmk -pdf -...
0
votes
1answer
36 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
42 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
39 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
41 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
50 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
64 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
74 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
46 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
89 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
74 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
37 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
78 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
85 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
348 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
151 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
303 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
28 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
53 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
170 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
85 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
48 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
259 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
321 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
550 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
83 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
176 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
355 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
223 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
90 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
43 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
468 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
785 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
129 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
212 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
135 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
93 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 ...
0
votes
1answer
407 views

Emacs/AUCTeX/LaTeXmk: Default compilation command only on first run?

When I hit C-c C-c to compile a document, my system is set up such that LaTeXmk is default typesetting option, and I just hit Enter to run it. The next time I do C-c C-c (without any changes in the ...
2
votes
1answer
70 views

How to use a linter with latexmk?

How can I configure latexmk to run a linter or two such as lacheck or chktex?