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.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Definition numbering colon

I have a problem with theorem numbering colon in LaTeX. I can make it dot after definition like this Definition 1.1. I want to write definition like this Definition 1.1: Help me.
0
votes
0answers
28 views

Latexmkrc to compile several subprojects in a project

We have a project, which consists of several independent documents: - 01-vision - vision.tex - 02-presentation-1 - presentation-1.tex which we would like to compile with Latexmk. "We" are two ...
0
votes
0answers
23 views

scriptEngine=“perl.exe” , scriptName = “latexmk”

I'm using Texlab on Visual Studio (Windows 10). I have already installed Latex Workshop, but when I try compiling Latex document, I get this message: scriptEngine="perl.exe" , scriptName = "latexmk". ...
0
votes
0answers
41 views

Image not showing up in latex

I am trying to insert a diagram in my document, but the image isn't showing up above the caption. Is there something in my code I need to fix? \usepackage{graphicx} \begin{figure}[h!] \centering ...
2
votes
1answer
72 views

latexmk clean (-c): some Beamer-related files are not deleted

I'm trying to use latexmk -c (or latexmk -C) to clean a directory, but when I run any of these two commands, I get the following: Latexmk: This is Latexmk, John Collins, 21 May 2019, version: 4.64a. ...
0
votes
0answers
28 views

How to run a command before compiling (hook script) in latexmk?

I use latexmk to compile a project. It should run some bash commands before starting to compile. I tried to add $compiling_cmd="date >> /tmp/compiled.log"; to the local .latexmkrc file. But ...
1
vote
0answers
57 views

latexmk vs pdflatex, bibtex, pdflatex x 2

What are the advantages and disadvantages of the following two compilation methods: latexmk pdflatex ➞ bibtex ➞ pdflatex` x 2 Is one method faster than the other and which should be preferred on a ...
0
votes
1answer
50 views

Transfer .tex file from LyX into LaTeXmk [duplicate]

Does anyone know the command that could export .tex file from my lyx? I did this because I want to compile tex file with latexmk in terminal since it is really slow to compile in lyx. I feel ...
0
votes
0answers
81 views

xdvipdfmx:warning: Creating ToUnicode CMap failed for FontAwesome5*.otf

I am on latest miktex version with all packages (used by my latex file) installed automatically by miktex during building the project. Building my latex file (which uses fontawesome5) using latexmk ...
1
vote
1answer
41 views

How to diagnose why a latexmk invocation works on one system but not another (Linux vs. Windows)

I am trying to get a build script to run both on Linux and Windows. On Linux we're using TeXLive and on Windows MikTeX. In both cases latexmk is used to rerun pdflatex as often as needed to resolve ...
3
votes
1answer
47 views

latexmk: endless loop with auto-pst-pdf

Here's a MWE: \documentclass{article} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(3,3) \psline(2,1) \end{pspicture} \end{document} I'm using MikTeX on Windows 10, all ...
0
votes
0answers
49 views

Problem generating large PDF files with pdfpages

Using xelatex, I generate a large PDF file (in terms of size and number of pages) by combining a quite high number of files with pdfpages plus other text in Latex. It takes considerable time to ...
0
votes
0answers
30 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
46 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
36 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
48 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
259 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
69 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
27 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
27 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
70 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
94 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
54 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
55 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
239 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 ...
7
votes
1answer
541 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
97 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
92 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
30 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 ...
1
vote
0answers
87 views

Can't execute jar from directory with umlaut

Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here. I have written a Java program that I am calling from inside ...
3
votes
1answer
119 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
6k 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
66 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
951 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
74 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
62 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
80 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
49 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
127 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
65 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
73 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
188 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
78 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
156 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
115 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
155 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
182 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
1k 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
229 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 ...