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
4 views

Unclear warning when cleaning with `latexmk` and a custom `.latexmkrc`

This is the content of my .latexmkrc, adapted from various recommendations: $ENV{"TEXINPUTS"}="./my/relative/path/to/sty//:" . $ENV{"TEXINPUTS"}; $clean_ext = "...
0
votes
1answer
29 views

How to make latexmk hand over additional argument to lualatex?

My document uses Lua to process additional command line parameters like this: \documentclass{article} \begingroup \catcode`\#=11 \directlua{ local i = 1 while i <= #arg do name = ...
0
votes
0answers
26 views

latexmk command to check if PDF is not encrypted

I am developing a website on PHP where user can uploads pdf and image files. later on I am converting including all PDF files in one pdf file with some custom text in it. I am using this command ...
2
votes
1answer
85 views

latexmk being slow to compile due to an incident with feynmf

I once tried to use the feynmf package in a .tex file. It didn't work, so I never tried it again. But since then, every .tex document I compile using latexmk takes about 10 times longer to finish. My ...
1
vote
1answer
40 views

Overleaf dynamic PDF filenames

I have an Overleaf project that contains multiple .tex files to create different PDF documents. If I compile one of the .tex files and download it, it is named after the Overleaf project. Currently, ...
5
votes
1answer
60 views

About use of \usepgfplotslibrary{external} and \tikzexternalize in Overleaf

I was reading the pgfplots manual today, and I came across the external pgfplots library. It should help decrease the compilation time and avoid regenerating every pgfplots graphics. We (me and two ...
1
vote
1answer
32 views

Run latexmk in background - only replace pdf when it is finished

I have a pretty long latex document which takes more than a few seconds to compile. When using latexmk -pvc and I start scrolling the document, the whole pages turn blank as long as it is still ...
1
vote
1answer
30 views

Integrate coq-tex with latexmk

coq-tex can pre-process LaTeX files with special environments to put Coq interactions in the output files; the result is ready for use with, say, pdflatex. I like latexmk, having only recently ...
2
votes
0answers
61 views

LaTeX build system similar to CMake

Suppose I have a LaTeX repo, which contains main file and lots of image files, also in LaTeX format (with tikz inside). I would like to achieve multiple goals: Separate compilation. All images can be ...
2
votes
0answers
34 views

Having latexmk recompile on file creation

I want to have a main document which inputs files whenever they are present, like this: \documentclass{article} \begin{document} Before. \IfFileExists{bli.tex}{\input{bli.tex}}{\typeout{No file bli....
1
vote
1answer
42 views

How to convert a latex document with Tikz/Pgf images and Latexmk into HTML?

I am hoping this is not a duplicate, but I was googling around so much that I can't remember where I started. But I have a latex document that has some tikz and pgf images in it. I usually use latexmk ...
2
votes
0answers
40 views

VimTeX - latexmk: -reuse-instance bad option. Any suggestions?

I'm trying to set up a Vim and LaTeX system on my Windows machine, but keep running into the same compilation issue. My setup consists of vim (via Git for Windows), lervag's VimTeX (via vim-plug), ...
0
votes
0answers
23 views

Suppress building bibliography with Latexmk

Latexmk apparently forces bibliography build even when no \bibliography command is present. How does one suppress building bibliography? When building the main.tex without the \bibliography command, I ...
4
votes
1answer
68 views

Declare missing unicode characters in a separate file

This question is concerned about writing a non-english document in LaTeX. I compile my Hebrew document with pdfLaTeX. I know, XeLaTex or LuaLaTeX with the polyglossia package are Unicode engines, and ...
0
votes
0answers
21 views

Where to add shellescape in texstudio when using latexmk?

For using svg images in pdflatex, I have to enable shell-escape. I am using texstudio and latexmk. Where to set shell-escape?
0
votes
0answers
53 views

Bibtex vs. biber unstable behaviour [duplicate]

Some strange problem occurred to me, when writing a report. I found some similar questions but none of the solutions work for me. Until today, my bibliography worked fine, today everything crashed. I ...
1
vote
1answer
22 views

Compiling with latexmk; prompted to “Please type another output file name”

I'm currently trying to get my thesis to compile with latexmk. I am running WSL (Ubuntu 18.04) on a Windows 10 Machine. My file structure is as follows: +-- build/ +-- src/ | +-- 01_intro.tex | +...
0
votes
1answer
46 views

How to make latexmk use tex-live 2019 instead of tex-live 2020?

I have both Tex-Live 2020 and 2019 installed (MacTeX 2020 and 2019). Tex-Live 2020 is the default. Once in a while I need to use tex-live 2019 instead of 2020. For this I: i) open the Tex-Live ...
0
votes
1answer
69 views

Undefined citation Using LaTex Workshop in VSCode

I am new to using LaTeX in visual studio code and am having issues with my .bib file while using the LaTeX workshop extension. Everything else works, it just isn't reading my .bib file for some reason....
0
votes
0answers
31 views

Many packages not found

Alot of packages are giving me an error along the lines of "packagename.sty" not found, for example the circuitikz, amsmatrix and pagecolor. Does anyone know what could be causing errors ...
0
votes
0answers
94 views

Faster Compilation for a large latex book

I am working on an application where the user learns a topic by interacting with a chatbot. After the completion of the course, the user can generate a personalized notebook using their interaction ...
0
votes
2answers
47 views

Using gnuplottex causes latexmk to compile forever

Edit: I think I found the issue: GNUplot adds a to the second timestamp to the top of the *.tex file it generates, so of course latexmk thinks it has changed. %% 2021-01-18 11:32:42 AM I usually use ...
1
vote
0answers
58 views

pdfLaTex - do not compile when line too long

I'm trying to compile a .tex file with latexmk -outdir=output -pdf main.tex. I've a long text that should take two line (in the pdf), but when I'm trying to compile I get this error: pdfTeX error (...
0
votes
0answers
17 views

Why latexmk doesn't include index in pdf?

Working command If I use the following command latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode -shell-escape" filename.tex to compile my .tex file everything works well. (...
0
votes
0answers
51 views

segmentation fault when executing xdvipdfmx through latexmk using externalise library of tikz/pgf

I'm using latexmk (calling xelatex with pdfxe) and have a makefile around it, that calls the externalised makefile from tikz/pgf. The code worked fine list year (last time compiled June-2020). ...
19
votes
2answers
487 views

LaTeX \newcommand recursion gets very slow

I am writing a GCD calculator in LaTeX. Here I wrote Euclid's recursive algorithm, which should work with logarithmic time. The code here counts GCD of 377 and 233 (which is 1). The code works fine, ...
3
votes
1answer
295 views

Document compiles with pdfLaTeX, LuaLaTeX, and XeLaTeX, but not with Latexmk

Background My computer OS had to be reinstalled recently, thus wiping out my LaTeX installation. Before this time, my document was compiling successfully using Latexmk. I have a complex document I am ...
0
votes
1answer
31 views

Can someone please help me to generate the glossaries?

I already searched online for solutions. I have a glossaries.tex that is added to my main.tex file. The commands are in this order in my main.tex \documentclass{scrreprt} \usepackage[toc]{glossaries} ...
0
votes
0answers
26 views

Specify a dependency with latexmk and -output-directory

I'm using pythontex and I call \pyc{import * from functions}. This works fine, but when I used -output-directory, I need functions.py to get copied to the specified $out_dir before the build begins. ...
0
votes
1answer
60 views

hyperref links not working with pdfcrop in latexmkrc (in Overleaf)

I like to crop white margins to save screen space while working in Overleaf. I use latexmkrc file with the following code: $pdflatex = 'pdflatex %O %S; pdfcrop --margins "20" %B.pdf %B-c.pdf;...
1
vote
1answer
44 views

why the specify output dir compile failed using latexmk

I am using this command to compile latex file in MacOS: /Library/TeX/texbin/latexmk -pdfxe -pvc -xelatex -interaction=nonstopmode -output-directory="/Users/dolphin/output" but the output ...
2
votes
1answer
202 views

Basic Makefile for LaTeX Using Precompiled Preamble

First, I realise that there are a lot of questions on this topic on TeX.SE. I have read through a lot of these, but have not been able to work out how to set up my current configuration. I am very ...
0
votes
0answers
80 views

MacVim to Skim forward search (without Vim-Latex)

I want to set up forward search from MacVim to Skim. I am using a Mac with Big Sur. It seems like the problem in forward searching (with respect to backward searching, which is fairly simple to set up)...
0
votes
0answers
58 views

Can't build Latex in Atom (even though latexmk works)

I'm having an issue using LaTeX in Atom. Whenever I build, I get Texification failed! Builder executable 'latexmk' not found. I've installed texlive using tug.org. I've added the lines export PATH=&...
0
votes
1answer
191 views

latexmk file not found in a alpine linux docker container

I can for whatever reason not use latexmk in a docker container. The problem itself comes up in my alpine docker container with texlive-full container and in an temporary created ubuntu:latest docker ...
1
vote
0answers
38 views

How to make latexmk show warnings even when compilation is up to date

latexmk is a great tool for many reasons, but one in particular is that it prints out many of the important the latex warnings (such as missing references, duplicate labels, etc.) at the end, so one ...
1
vote
1answer
68 views

Latexmk cannot find pdflatex in TeXworks

I'm attempting to to get Latexmk working on a new computer running OSX Catalina. I've installed MacTeX and TeXworks. As far as I can tell, all of my settings are consistent with the settings on my old ...
0
votes
0answers
298 views

Error while trying to build a Latex project in VS Code

I hope that this is the right place for this question. I am a total beginner in latex. I am trying to make a latex file with notes for my college class and today when I tried to build a latex project ...
0
votes
1answer
52 views

Glossary does not print in Visual Studio Code, but does print on Overleaf.com

I am trying to get my glossary to print in Visual Studio Code, the same files do print a glossary on Overleaf.com. MWE on Overleaf.com: https://www.overleaf.com/read/kztypntcdrvy Visual Studio Code / ...
1
vote
2answers
72 views

latexmk: endless runs with \includestandalone[mode=buildnew]

The following makes latexmk run until reaches the maximum number of runs only if mode = buildnew for \includestandalone Latexmk: Maximum runs of lualatex reached without getting stable files This ...
0
votes
0answers
46 views

What are %O and %S in platex -synctex=1 -halt-on-error -file-line-error %O %S

I installed LaTeX with brew: # macOS MacTex Install $ brew cask install mactex-no-gui # Updating the packages $ sudo tlmgr update --self && sudo tlmgr update --all $ latex --version pdfTeX 3....
0
votes
1answer
548 views

How to run overleaf locally

So far I have been working exclusively online via Overleaf. But now I would like to switch to working offline as well. I would like my compilation process to mimic the one by Overleaf exactly. I tried ...
3
votes
2answers
188 views

Latexmk 4.70a doesn't compile document with bibtex citation

I'm using latexmk for a long time now but since the last update to latexmk 4.70a (from 4.69a) one of my presentations doesn't compile anymore. There seems to be some problem with running bibtex. This ...
0
votes
0answers
173 views

How can I get latexmk to work with pandoc?

Problem and context I have a shell script that downloads markdown files from a Gitlab wiki, does some pandoc filtering and then converts it to a PDF. The conversion to PDF happens with pandoc, which ...
1
vote
1answer
174 views

How can Latexmk compile file that contains Chinese Characters in path in Windows 10?

I can use the following command in Windows without problem: latexmk -lualatex -shell-escape "xxx.tex" But if the filename contains Chinese character then it fails: latexmk -lualatex -shell-...
0
votes
0answers
100 views

Installed texlive 2020 but still cannot install latexmk due to the 2019 local TeX Live

Summary: I cannot install/update latexmk because it says the local tex live (2019) is older than remote (2020), but in fact I already installed texlive 2020 from the official source. Notes: The ...
0
votes
0answers
63 views

Stix Two Math keeps rewriting the cache with lualatex

Tex Live version: TeX 3.14159265 (TeX Live 2020) This MWE is used throughout: \documentclass[a4paper]{article} \usepackage{unicode-math} \setmainfont{Tex Gyre Schola}[Scale=0.97] \setmathfont{Tex ...
0
votes
1answer
318 views

Empty Bibliography using latexmk recipe in vscode

I have read quite a lot of other questinons of this type, and no help at all. I'm using WIN10 PRO as OS text editor: VScode version 1.48.2 LaTeX Distribution: MikTex Recipe used in vscode: latexmk (it ...
1
vote
2answers
111 views

chapterbib fails with subdirectories and latexmk

I've got a rather simple layout that I'm trying to get working with latexmk. What am I doing wrong? EDIT: Changed examples with result of latest headway made. all.bib had to be symlinked to the ...
0
votes
1answer
44 views

latexmk mv logs to /tmp

if I use latexmk --output-directory=/tmp then it moves all outputs, including pdf files to /tmp. What I am trying is to move log, fls, fdb_latexmk etc to be moved, but keeping aux, bbl, pdf to be ...

1
2 3 4 5
10