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
0 answers
54 views

Sublime 3 LaTeXTools tries to invoke texify despite TexLive distribution

I am using Sublime 3, the LaTeXTools package, and the TexLive distribution. When I try to compile a PDF, I receive an error TraditionalBuilder: Engine: pdflatex. Invoking texify... COULD NOT COMPILE! ...
user avatar
0 votes
1 answer
29 views

Difference between `latexmk -xelatex` and `latexmk -pdfxe`?

I am using latexmk to generate a set of pdfs using a PowerShell script, and I see there are two options for doing so. I can either use -xelatex or -pdfxe. Both work and give me the same output, and ...
user avatar
  • 305
2 votes
1 answer
39 views

Call two jobs from latexmk automatically

In an answer to a question about compiling two versions of a document from a latex source from stackoverflow the following command is used to get the problem solved: latexmk -pdf -pdflatex="...
user avatar
  • 27.8k
0 votes
2 answers
46 views

Failure to make '/tmp/interview-question.xdv'

When I add the latexmk Latexmk, John Collins, 29 September 2020. Version 4.70b auxdir parameter, the log output like this and could not trigger open the compiled pdf: (/usr/local/texlive/2021/texmf-...
user avatar
  • 253
0 votes
0 answers
15 views

is it possible to make the latex compile aux file to another folder [duplicate]

I am using latexmk to compile the latex document, when using the subfiles, the latexmk compile the intermediate file in the tex file folder and make the folder very chaos. The folder file look like ...
user avatar
  • 253
0 votes
1 answer
31 views

How to set $jobname from within latexmkrc depending on latexmk command-line argument for TeX engine?

I have a pdfLaTeX/XeLaTeX file with iftex for compilation with either engine. I want to use latexmk to compile the source with -pdf/-pdflatex or -pdfxe/-xelatex options. The goal is to get PDF output ...
user avatar
  • 3
0 votes
0 answers
55 views

Latex reported missing or unavailable character(s)

Today when I compile the latex document, the log shows like this: Overfull \hbox (25.45197pt too wide) in paragraph at lines 2479--2480 []\T1/ptm/m/n/10 Performance Schema \TU/SongtiSCLight(0)/m/n/10 ...
user avatar
  • 253
0 votes
0 answers
58 views

Are there recent TeX Distributions for the Mac that DON'T contain latexmk?

The title says it all. I know there are folks using all sorts of TeX Distributions on the Mac (TeX Live [installed by MacTeX or directly from TUG], MikTeX, MacPorts, Fink?, etc.) do recent versions ...
user avatar
  • 3,075
2 votes
1 answer
69 views

Can latexmk generate a DVI file with lualatex or an XDV file with xelatex without generating a PDF?

Background: I am the developer of IguanaTex, a PowerPoint add-in to insert LaTeX displays in Powerpoint. I would like to let my users generate SVG files using dvisvgm via either a DVI file or an XDV ...
user avatar
  • 213
0 votes
0 answers
31 views

How can I inspect what a `latexmkrc` file will do?

Assume I'm writing an editor plugin that uses latexmk to build one (or multiple) PDF files. When a folder that contains a latexmkrc file is opened in the editor, I want to create an editor task for ...
user avatar
  • 1,959
0 votes
1 answer
91 views

I can't install any package

I want to use render some of the online templates in in vscode. But i am getting this error: Rc files read: NONE Latexmk: This is Latexmk, John Collins, 20 November 2021, version: 4.76. Rule '...
user avatar
  • 27
0 votes
0 answers
66 views

Want to build tex file but Recipe terminated with error

error message : The command name is D:\texlive\2021\bin\win32\mktexfmt Latexmk: fls file doesn't appear to have been made. Collected error summary (may duplicate other messages): pdflatex: Command ...
user avatar
0 votes
0 answers
60 views

Latexmk -pvc not working when using pythontex

If I add automatic pythontex execution to my .latexmkrc file, the -pvc option doesn't stop working, i.e. doesn't seem to detect changes in the source file. My .latexmkrc looks like this: $pdf_mode = 1;...
user avatar
  • 1,472
0 votes
1 answer
44 views

is it possible to specify the pdf viewer in latexmk build command

I am using this command in mac bok pro to build the latex document: /Library/TeX/texbin/latexmk -pdfxe -pvc -xelatex -interaction=nonstopmode -output-directory="./output" is it possible to ...
user avatar
  • 253
0 votes
1 answer
202 views

Synctex is not working with pyluatex (using latexmk in TeXworks, MiKTeX, Windows 10)

I have recently started to experiment with the pyluatex package (which lets you include Python 3 code in a .tex document, and have it run during the .tex compilation process). https://www.ctan.org/pkg/...
user avatar
0 votes
0 answers
761 views

Setting up LaTeX in VS Code: error "Recipe terminated with fatal error: spawn latexmk ENOENT"

I know there are similar posts with the same error, but I have been trying to follow up with their solutions and somehow is not working. I am using windows 10, with Ubuntu and ​I downloaded Miktex and ...
user avatar
  • 23
3 votes
2 answers
78 views

What triggers latexmk to invoke makeglossaries?

I've started using the make-glossaries package, and am creating more than one glossary. Unfortunately, my latexmk calls seem to skip calling makeglossaries, so my build doesn't conclude. I'm using a ...
user avatar
  • 11.3k
1 vote
0 answers
57 views

How to exit from a latexmk build?

In the following example, I don't know how to exit from the build process: ? ! Interruption. ^Cl.1917347403 ? ! Interruption. ^Cl.1931472264 ? x ! Interruption. ^Cl....
user avatar
  • 1,059
1 vote
1 answer
52 views

Is it normal for minted to run slow?

I just install minted, but the simple command: latexmk -pdf -shell-escape main.tex with main.tex simply being: \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{r} sprem <...
user avatar
  • 11
0 votes
0 answers
49 views

Texcount error File main.bbl not found in path (in overleaf)

I am trying to add an automatic word count in my overleaf file using Texcount. I have followed the instructions on https://www.overleaf.com/learn/how-to/Is_there_a_way_to_run_a_word_count_that_doesn%...
user avatar
0 votes
0 answers
73 views

latexmkrc config file checking for errors (cleaning & synctex.gz)

Cleaning process has no effect & main.synctex.gz is not generated. I'm trying to clean the folder after compilation, and also I want to have a synctex.gz file to jump from .pdf to the source. It ...
user avatar
  • 580
0 votes
1 answer
60 views

Latexmk setting -pvc and -c in emacs

I am using emacs on mac OS and I have the following setting about .latexmkrc and init.el. Now I want to use -c option to remove files such as aux. So I changed from "latexmk -pvc %t" to &...
user avatar
  • 23
0 votes
1 answer
119 views

latexmk: interaction=nonstopmode not effective

I have this sample LaTeX file and I am using latexmk -f -interaction=nonstopmode -latex Eqn.tex and the nonstopmode is not effective. I understand the actual issue in the equation. My question is how ...
user avatar
2 votes
1 answer
112 views

Running latexmk from PHP server

I am trying to generate a voucher using latexmk through a PHP shell execution command function. I've tried all alternatives, i.e. exec(), shell_exec(), passthru(), popen() without luck. To get a ...
user avatar
  • 221
2 votes
2 answers
152 views

Pass a variable from makefile to latex code

I wrote a simple makefile to compile my latex code. I have some variables in that makefile and I want to pass them to the latex code, but I don't know how to do that. Example 1: in makefile: # set ...
user avatar
  • 327
1 vote
2 answers
101 views

latexmk's (undocumented?) error message "name of destination file is not current one; I'll flag rule as out of date."

I am using latexmk as the pdf-engine for pandoc, that is, I use the command pandoc --pdf-engine=latexmk --pdf-engine-opt=-emulate-aux-dir --pdf-engine-opt=-aux-directory=aux \ test.md -o test.pdf to ...
user avatar
  • 4,590
17 votes
1 answer
506 views

What is the role of the different entities (TexLive, pdlatex, latexmk) in the LaTeX ecosystem?

I used to just compile my tex files using overleaf, which took care of everything under the hood. Now I'm trying to figure out what the different programs do. I know that e.g. Texlive and MikTex ...
user avatar
  • 413
0 votes
0 answers
51 views

is it possible to make latexmk ouput with color

I am using this command to compile latex document in terminal like this: latexmk -pdfxe -pvc -xelatex -interaction=nonstopmode -output-directory="./build" everything goes fine. But I still ...
user avatar
  • 253
3 votes
2 answers
376 views

latexmk: build in another directory and move back file once it's compiled (avoid flickering pdf)

I'm using emacs+latexmk to compile my document, and okular to view it. Okular automatically updates the pdf when it changes, but the issue is that during compilation Okular displays a black document ...
user avatar
  • 5,053
0 votes
0 answers
91 views

High compile time for a simple example using powershell+texlive

I've recently had to move my LaTeX setup from my personal Ubuntu environment to a new business laptop with Windows 10 installed. For this reason I resorted to Powershell which apparently competes ...
user avatar
  • 1,372
0 votes
0 answers
51 views

Unable to produce output (log or PDF file) using latexmk (MikTeX, Windows 10)

I've run into a problem today with (I think) latexmk. I'm unable to get latekmk to produce any output when I try to build a TeX document. In particular, trying to run latexmk in PowerShell to build a ...
user avatar
  • 81
0 votes
1 answer
83 views

Getting and running latexmk using powershellww

I'm trying to replicate my texlive/sumatrapdf setup which I had running on a Ubuntu virtual machine on my windows machine using powershell. I learned that the equivalent of APT in windows powershell ...
user avatar
  • 1,372
3 votes
1 answer
116 views

graphviz automatic compilation

With this file, test.tex: \documentclass{standalone} \usepackage[pdf]{graphviz} \begin{document} \digraph{abc}{ rankdir=LR; a -> b -> c; } \end{document} And this ~/....
user avatar
1 vote
0 answers
436 views

Runtime Error on Compilation when using Latexmk

This morning I was editing a LaTex document when all of a sudden the continuous compilation stopped working. I tried recompiling the file and received this error: 2021/08/07 20:36:53 Rollbar error: ...
user avatar
0 votes
1 answer
139 views

Automatically compiling asymptote on vim, with .asy files in another directory?

I am currently using latex on vim with the vimtex plugin (with mac big sur os), and there are two features I would like to have: Asymptote compiles automatically when I compile latex All auxiliary ...
user avatar
0 votes
0 answers
42 views

Replace lines and compile latex files in loop using python

I have a LaTeX code in which there are multiple chapters that I compile individually. Sometimes I have to compile a lot of these files, and I'm trying to automate this process, instead of uncommenting,...
user avatar
0 votes
1 answer
129 views

VS Code latexmk version mismatch

I have trying to install latex in vscode. I have install Miktex, perl, Latex Workshop extension latest versions. But I can not run the .tex file. Facing version related error. File::Path version 2.08 ...
user avatar
1 vote
0 answers
34 views

ltexmkrc for custom dep warning

I am following the advice in Does hyperref work between two files? since that is also quoted on Overleaf. I have copied the code, as stated, into two files file1.tex and file2.tex. I run latexmk file1 ...
user avatar
  • 111
0 votes
1 answer
151 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 = ...
user avatar
  • 1,959
0 votes
0 answers
30 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 ...
user avatar
2 votes
1 answer
169 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 ...
user avatar
3 votes
2 answers
826 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, ...
user avatar
  • 145
9 votes
1 answer
931 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 ...
user avatar
  • 298
2 votes
1 answer
130 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 ...
user avatar
1 vote
1 answer
67 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 ...
user avatar
2 votes
0 answers
166 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 ...
user avatar
2 votes
0 answers
79 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....
user avatar
1 vote
1 answer
157 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 ...
user avatar
  • 209
2 votes
0 answers
345 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), ...
user avatar
0 votes
0 answers
35 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 ...
user avatar

1
2 3 4 5
11