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.
580
questions
0
votes
0
answers
23
views
XeLaTeX works but xelatexmk returns error: 'moderncv.cls' not found
When I try to compile with xelatexmk it fails with all kinds of "files not found" latex errors, but other engines (e.g. latex, pdflatex, XeLaTex, pdflatexmk, etc.). I found some answers that ...
0
votes
1
answer
135
views
How do I get biblatex and biber to work with MikTex?
I am trying to use biblatex with backend=biber from MikTex and am getting error messages.
If I run with LuaLaTeX+makebib from the MikTex Typeset dropdown menu, I get clean output with no bibliography. ...
0
votes
0
answers
36
views
Priority set for latex manager in VSCode to read sty files
I am kind of new with Visual studio code, the basics that I have understood so far is that path definition, environment setup and installation on host machine is important.
Regarding the use of .sty ...
0
votes
0
answers
30
views
compile similar files in a directory with lualatex - without loading fonts each time
I have a number of tex files (>20) to compile. I use lualatex and observe that lualatex each time starts and loads the same fonts etc. (all the tex files have the same preamble).
Is there a way to ...
1
vote
1
answer
41
views
How to specify a temporary folder for auxiliary files for latexmk using latexmkrc for texlive?
I am using vscodium with the LaTeX Workshop package and the TeXLive 2023 distribution in vscodium on linux to write latex documents. I want to keep my directories clean while preserving the ...
0
votes
1
answer
57
views
Problem "converting" from PDFtex to Luatex, using Latexmk
Following the recommendation of the kind user in this post: PDFLaTeX and Arabic, Farsi and other scripts
I switched compilers, from Pdftex to Luatex in order to be able to print non-Latin alphabets, ...
0
votes
1
answer
29
views
\includeonly{} not Working with Precompiled Preamble
Summary of issue
I followed the guide linked in this answer, and it works perfectly for me. However, I find that if I use a precompiled preamble, and then specify \includeonly{}, the full document is ...
2
votes
1
answer
124
views
latexmk seems to miss the last, required rerun of *latex
I am using TeX Live 2023, TeX 3.141592653, LuaHBTeX 1.16.0, Latexmk 4.79 on Windows 10.
Short description:
I have a MWE that compiles without problems by doing lualatex -> biber -> lualatex ->...
0
votes
0
answers
33
views
Reading from filehandle failed: latexmk
I have been using MacTex/TeXShop/xelatexmk for many years on my personal Mac, and am trying to set my new office Mac up with it.
I have copied the inactive engines to the active engine directory and, ...
1
vote
1
answer
47
views
latexmkrc and subfiles
I have a LaTeX-Project that is split into multiple files using the package subfiles. The project has the following structure:
main.tex
.latexmkrc
lib/custom-class.cls
lib/custom-package.sty
foo/bar....
0
votes
1
answer
57
views
How to configure the Python library latexmake to run with luaLaTeX?
I am working on automated templates, and I want to use latexmake with luaLaTeX, as suggested in a comment on this question, where I attempted a similar setup with XeLaTeX. However, I am facing ...
0
votes
0
answers
43
views
How run XeLaTeX with the latexmake python library?
I am automating the creation of documents with python and I ran into the latexmake library.
However, I have not found any way to make it run with XeLaTeX which I need.
3
votes
1
answer
79
views
TeXShop directive for LuaLaTeX and latexmk
Is there a TeXShop directive (something like % !TEX TS-program = lualatex) that I can place at the top of my document and can tell TeXShop to compile using LuaLaTeX with latexmk?
That is, a TeXShop ...
0
votes
2
answers
75
views
latexmk dependency files and $aux_dir
I am working with custom dependencies in latexmk, but I want the output files to be placed in $aux_dir and $out_dir, respectively.
I managed to do this sucessfully, but latexmk exits with the ...
5
votes
2
answers
81
views
latexmk with precompiled preamble
Problem Description
I am trying to setup latexmk using a .latexmkrc configuration file for "precompiling" the preamble of my documents, and reusing that during reruns.
According to a comment ...
0
votes
0
answers
49
views
Improving a LaTeX CV by moving away from TikZ
A few years ago, I adapted a CV template from Overleaf to fit my needs. However, I think I'm stuck. Changing the data within the CV now takes a whole lot of work. I can see some problems but don't ...
3
votes
1
answer
88
views
Overleaf latexmk with glossaries and output directory
I downloaded the Overleaf file latexmkrc to automate the creation of glossaries and maintain the standardization of the functioning of my projects. This latexmkrc works perfectly on my local machine ...
0
votes
0
answers
43
views
How to use latexmk to obtain dependencies files but without running the compiler?
I am learning latexmk. I found it can generate the list of dependency files using the option -deps.
But it does this after compiling/processing the file. What I'd like is to just use it to obtain ...
0
votes
0
answers
28
views
the CJK support suddenly no longer works when using latexmk to render the pdf
I am using this command to compile the latex(2023 live) document in MacBook Pro with M1 pro chip:
/Library/TeX/texbin/latexmk -pdfxe -pvc -xelatex -interaction=nonstopmode
when I change the document ...
0
votes
0
answers
45
views
latexmk like for tex4ht?
I switched to using latexmk to build my pdf files, since latexmk automatically detects any changes made in files that the file I am compiling depends on.
This is very useful, as then I do not have to ...
1
vote
1
answer
210
views
`latexmk` running in terminal but not in neovim with `vimtex` after switching to native TeXLive installer
I start by giving some Arch-related context, but the question remains about vimtex and latexmk.
Yesterday, I tried updating my computer on Arch. I got an error
installing texlive-core (2023.66587-1) ...
3
votes
1
answer
111
views
write latexmk command line options in latexmkrc
Is there a way to write arbitary latexmk command line options into the latexmkrc file?
For example, I think that instead of calling
latexmk -pdf -halt-on-error file.tex
I can put
$pdf_mode = 1
$...
1
vote
1
answer
29
views
pgfplotstable, externalize and list-and-make with auxiliary output directory
I am setting up a .latexmkrc configuration for my workflow with latexmk, and ran into a dead end regarding a pathing/lookup problem.
my setup so far (use as MWE)
.latexmkrc:
# Set the program used to ...
4
votes
4
answers
477
views
Package biblatex Warning: Please rerun LaTeX
I'm running a minimal, up-to-date TeX Live installation on Windows 11. I am trying to use biblatex and biber for bibliography management.
The problem I am experiencing is that I must run pdflatex ...
0
votes
0
answers
96
views
The Latex PDF is not built on vscode - Problem on Latexmk
I was trying to build a Latex PDF file on vscode, and it always gives me an error. But every time trying to seek out the error vscode, it eventually fails to build, giving the following error logs:
...
1
vote
1
answer
65
views
I can't have latexmk detecting the options I give it
I was compiling my main.tex file fine with latexmk using
latexmk -xelatex -outdir=output -auxdir=auxil main.tex
Until suddenly latexmk stopped detecting the options i gave it:
(venv) PS C:\Users\user\...
1
vote
0
answers
372
views
pdflatex throws bad parameter, unable to compile anything
I am getting the following error message when I try to compile anything on my system:
Initial Win CP for (console input, console output, system): (CP850, CP65001, CP1252)
I changed them all to CP1252
...
1
vote
1
answer
74
views
latexmk: lots of runs caused by files to be created after first latex run
I have a latex file including a lot of files which are initially not present
but which are created in the course of the latexmk run.
\documentclass{article}
\usepackage{functional}
\usepackage{import}
...
1
vote
0
answers
15
views
Abort a multi-file latexmk run entirely, on all files at once?
I usually use a latexmkrc file to specify the default master files of a project, so that I can just invoke latexmk without specifying files. But sometimes I accidentally do the same in a multi-file ...
0
votes
3
answers
108
views
`latexmk`can include files created during the `latexmk` run, except with `lstinputlistings`
My latex file looks roughly like this:
...
\usepackage{listings}
...
\lstinputlisting{F4_01fig2dev.ptx}
...
and the file F4_01fig2dev.ptx is to be created.
In fact I want to build with latexmk.
...
2
votes
0
answers
37
views
Ensure anonymity when using latexmk -view=pdf [duplicate]
I am doing a review for an article where I need to write some equations myself and want/have to stay anonymous.
So far I plan to just LaTeX my notes, compile them with latexmk -view=pdf and send them ...
0
votes
0
answers
76
views
latexmk.pl version error
I am trying to use LaTeX with VSCode, but I cannot seem to get the .tex file to build.
I have installed the latest Perl 5.8.8, installed and updated (both user and admin) MiKTeX and installed the ...
0
votes
1
answer
120
views
latexmk and custom dependencies
My document includes several PDF files generated by PlantUML. These files are stored in different directories underneath the document directory. So far, I've created these files with a combination of ...
1
vote
0
answers
57
views
How to change the \input paths from an initialization file (latexmkrc) to run latexpand and latexdiff on big projects?
I am working on a project to compare, let's say, "Old/main.tex" and "New/main.tex" which are assumed to be two big LaTeX projects with multiple calls to \input{}. To do so, I am ...
1
vote
1
answer
113
views
latexmk with pythontex, lualatex and long name not working
I have the following latex file:
\documentclass{article}
\usepackage[keeptemps, depythontex, runall=false, fvextfile=55]{pythontex}%rerun=always,
\begin{document}
computed by python: \pys[sname]{1+1=!...
0
votes
2
answers
55
views
Depend on the "compilation" of another file with latexmk
I was given a project to build a thesis document which has a cover.tex and a main.tex.
The cover.tex generates the necessary covers to comply with the institution's style.
The main.tex file imports ...
1
vote
0
answers
68
views
Use tectonic with a latexmkrc file? [closed]
Is there a way to tell tectonic to use a latexmkrc file? I could not find anything in the docs.
1
vote
1
answer
44
views
latexmk: does not clean lualatex[number].fls
Running latexmk, I sometimes get files lualatex1234.fls.
Would be interesting where they come from.
Nevertheless, I want to erase
and so aded to .latexmkrc
$clean_ext .= " %R.synctex.gz %R.*.vrb ...
0
votes
1
answer
288k
views
How to clean xxx.<number>.vrb with latexmk
The latex class beamer in a file xxx.tex produces xxx.vrb files in conjunction with fragile frames.
As shown in the manual, also xxx.<number>.vrb can occur.
I ask myself (and above all the ...
2
votes
1
answer
129
views
Nomenclature not showing using vimtex / latexmk compilation set-up
I would like to include a list of symbols in my notes and am trying to do this using the nomencl package. Unfortunately, I can't get it to appear. I don't any error messages, but also no output. My ...
1
vote
0
answers
46
views
latexmk stops during execution
I am using latexmk directly or calling from VS Code via Latex-workshop.
It runs normally from the terminal but seems to be terminated prematurely when running from Latex-workshop.
The output stops ...
0
votes
0
answers
27
views
Custom glossary field in siunitx macro fails latexmk compilation
I am writing on a thesis with a symbols glossary with some custom-defined fields and a custom-defined glossary style. The document also has an abbreviations glossary but it does not use any custom ...
0
votes
0
answers
34
views
latexmk cleanup files with names other than latex file
I want to use latexmk for generating graphics also and in particular to cleanup with latexmk -c.
Currently, I see no way to do this because cleanup refers only to files with names derived from the ...
0
votes
1
answer
38
views
latexmk cannot create document with mpost
I use latexmk 4.77.
The following is my .latexmkrc file
$pdf_mode = 4;# specifies creation of pdf via lualatex
$bibtex_use = "2";# to configure bibtex
$cleanup_includes_cusdep_generated = ...
5
votes
0
answers
186
views
TeXLive 2020-2021-2022 performance
Disclaimer: This post is a bit long… if you have no concerns with the TeX Live ecosystem behavior and LaTeX compile time, just ignore it! :)
I have a “complex” project (thesis template) that uses ...
0
votes
0
answers
251
views
MacOS: problems with latexmk
I'm on a mac m1 running macOS Ventura 13.2. After installing Tex Live I tried to type latexmk in the terminal and it throws me the not found error.
zsh: command not found: latexmk
I've tried to ...
1
vote
0
answers
60
views
How to check source file into version control on successful processing?
I want to git add file.tex and git commit -m ‘successful compile’ (or similar) every time LatexMk successfully completes building a PDF. I'm guessing I can put something in latexmkrc, but my Perl-foo ...
1
vote
1
answer
116
views
LuaTeX: Can I determine if it's the first run?
Is it possible to detect if the current run is the first (preferably from the Lua end)?
I tried to read the log file, but it is apparently already erased when the Lua engine starts.
I can of course ...
1
vote
0
answers
191
views
latexmk cleanup after complile and do not clean synctex files
I am trying to make latexmk cleanup after compiling
But I have 2 problems:
latexmk -pdf -c xx.tex only does the cleaning but not compiling
latexmk -c will delete synctex files which I do not want to ...
2
votes
1
answer
140
views
What do these compile arguments mean?
I see that many people use these settings:
"args": [
"-synctex=1",
"--shell-escape",
"-interaction=nonstopmode",
"%DOCFILE%"
Can anyone explain what ...