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.

0
votes
0answers
16 views

latexmk with external references in both directions

I am aware of the question below about how to refer, in file1, to labels from file2. latexmk with external references However, I must also refer, in file2, to labels from file1. I am able to do it ...
1
vote
0answers
43 views

latex with vim irritatingly opening new buffer window [duplicate]

I edit my Latex in (g)vim. Now, when I am getting any error in compiling, vim is irritatingly opening the file in a new buffer, and moving to that buffer. For example, say, if I am getting an warning ...
1
vote
1answer
26 views

How do I set a label on a propagator using tikz-feynhand?

I'm trying to draw a Feynman diagram using the tikz-feynhand package, but I'm having trouble setting labels on the lines it draws. The following works fine to draw the lines with no labels: \...
0
votes
0answers
34 views

How to fix undefined references when using latexmk with `auxdir`

I'm having a hard time figuring this out. Using a very simple document, compiling with the auxdir option results in an undefined reference (latexmk report --pdf -auxdir=export). Without the auxdir ...
0
votes
0answers
180 views

Why latex does not tell me which command is undefined?

From the beginning, took me a lot of time to come with the following minimal example: \PassOptionsToPackage{main=brazil,english,spanish,french}{babel} \documentclass[ 10pt, a5paper, ]{memoir} \...
2
votes
1answer
52 views

Clean comment.cut file with latexmk

latexmk -C does not remove the temporary auxiliary comment.cut file created by the comment package. How can this functionality be achieved? MWE: $ latexmk --version Latexmk, John Collins, 25 ...
0
votes
0answers
24 views

Where to put .sty file, using Linux Sublime LatexTools

I am using sublime LatexTools on a Linux machine and I Cannot find the correct directory of Tex stuff. Any help is appreciated...
0
votes
0answers
26 views

Reporting LaTeX error at custom location

I'm familiar with \PackageError as a way to cause LaTeX to report a custom error message when the command is run. But I'm wondering, is there a way to cause LaTeX to report an error, with a custom ...
0
votes
1answer
49 views

pdflatex command-line options with latexmk and TeXShop

How does one specify command-line options (such as -shell-escape) to pdflatex while using pdflatexmk engine in TEXShop other than in the Source file? Is there a way to specify that in Preferences? ...
1
vote
1answer
91 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
49 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
45 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
166 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
419 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
86 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
83 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
35 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
26 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
107 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} \...
4
votes
1answer
4k 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
57 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
838 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
58 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
47 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
75 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
45 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
74 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
62 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
70 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
148 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
71 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
142 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
99 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 ...
1
vote
1answer
125 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
152 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 \...
6
votes
0answers
895 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
208 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
421 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
37 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 $(...
1
vote
1answer
321 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
176 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
80 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
380 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 ...
3
votes
1answer
473 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
681 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
131 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
322 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 ...
2
votes
1answer
612 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
316 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
117 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} ...