Skip to main content

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

Overleaf does not find cls file using latexmkrc

Currently, I try to use my own class file in an overleaf project. My minimal example consists of main.tex, latexmkrc and the needed cls-file template/mybook.cls. For the minimal example, I just took ...
Pangaeanain's user avatar
0 votes
0 answers
75 views

Latex compiler issue [closed]

I am a mac user. This is my python code to generate a pdf file: from pylatex import Document, Section, Subsection, Command from pylatex.utils import NoEscape # run in terminal: cd to scraper folder, #...
SupersonicMan12's user avatar
0 votes
0 answers
33 views

Can you use latexmk on Overleaf to generate multiple latex files?

I'm trying to shuffle multiple choice exams and choices. I've got python code but want to be able to run it on Overleaf.com. Tried with latexmkrc file below but couldn't generate multiple outputs. You ...
Gokce Mehmet AY's user avatar
0 votes
0 answers
27 views

Beamer: Latexmk Warnning about Package CTex for Package hyperref

When I try to compile my own tex file by latexmk, this warnning in topic has occured. I use the following configuration: \documentclass[11pt]{beamer} \usepackage{lmodern} \usepackage{multicol} \...
Jing Kong's user avatar
1 vote
0 answers
51 views

latexmk doesn't rebuild when date changes using `\today`

I found a really strange issue with latexmk. I am using VSCode with the Latex Workshop extension to compile my documents and I use the latexmk (lualatex) recipe (which simply runs latexmk with the -...
Shai Avr's user avatar
  • 909
0 votes
1 answer
42 views

Latexmk: Download a file from the internet

Is it possible to use latexmk to tell it to update the figures from a URL? My idea is to invoke a subroutine that calls system(wget) when I put something in the CLI. Is that possible?
David Davó's user avatar
0 votes
1 answer
92 views

latex on Arch Linux can't see packages installed via tlmgr

I've freshly installed texlive on Arch linux and tried to make it work using VS Code LaTeX Workshop. Unfortunatelly, when building (in VS Code or in CMD with latexmk command), I get this error: LaTeX ...
ms4rkl's user avatar
  • 1
3 votes
1 answer
73 views

Why latexmk doesn't ignore certain input files as dependencies (again)

(This is a follow up of How to make latexmk ignore certain input files as dependencies, and Avoid latexmk rerun forced by new timestamp of lualatex cache where @JohnCollins asked for the work flow ...
Denis Bitouzé's user avatar
0 votes
1 answer
37 views

Does IfPackageLoadedTF neutralize xpatch?

This is an admittedly strange question. The background is the suggestion from StackExchange to use package xpatch to keep latexmk running a TEX file although included graphic files or in this case ...
user2609605's user avatar
1 vote
1 answer
38 views

How to include source tex file name in aux and output directory paths with latexmk?

Let's say I have three directories src, aux-dir, and out-dir, all in the same workspace directory work, and some independent but similarly formatted files bleb1.tex, bleb2.tex, ... sitting in src. I'd ...
Johnny's user avatar
  • 113
5 votes
1 answer
231 views

Error compiling file

Sorry if this is something obvious, as I'm just getting into LaTeX. I installed TeX Live 2024 recently, and I'm using the VSC LaTeX Workshop extension. When I attempted to compile, it returned the ...
Arden's user avatar
  • 51
0 votes
0 answers
56 views

Avoid latexmk rerun forced by new timestamp of lualatex cache

I am trying to setup a GitLab project with CI such that the PDF artifacts would be built in the job only when the source tex files changed. I've already resolved the problem with modification date of ...
Daniel Langr's user avatar
0 votes
1 answer
77 views

Unexpected biber behavior with latexmk in TeXstudio

I am using TeXstudio with latexmk as my default compiler with the following modification to the command:- latexmk -pdf -silent -synctex=1 -pdflatex="pdflatex -shell-escape" % (for svg ...
Vatsal Garg's user avatar
2 votes
0 answers
43 views

Tell latexmk that either of two targets is enough

I have a setup in which running an external program can produce either a pdf file or a png file. Unfortunately, latexmk thinks there is a missing target and stops rather than running latex a second ...
Charles Staats's user avatar
1 vote
2 answers
91 views

Bibtex cannot find bibliography file when it is not in the main file's directory, when using latexmk

I have a project directory ~/Documents/test w/ the contents... test |- refs |- paper |-|- main.tex The contents of main is... \documentclass{article} \usepackage[superscript,nomove]{cite} \begin{...
user41177's user avatar
  • 375
2 votes
0 answers
58 views

How to inject \directlua expansions back into TeX files

Is there a simple way (i.e. a flag to latexmk) to preprocess a source TeX file with LuaLaTeX, so that I get back the same source with just the invokations to \directlua expanded? My usecase is that I ...
Champitoad's user avatar
0 votes
0 answers
38 views

Latexmk: Pass style file to makeindex as an option

We need to pass the -s <our_topelvelsource_directory>/tex/index_style.ist option to makeindex and currently we do that by reading an environment variable that we set prior to executing latexmk $...
Johannes Schaub - litb's user avatar
1 vote
0 answers
59 views

Moved code from overleaf to local latexmx, how to debug? [closed]

I have files that I moved from overleaf, which is set to be very permissive. And better, to have "tex" support whenever I needed it. I compiled using: latexmk -pdf -pv ...
Dov's user avatar
  • 1,543
0 votes
1 answer
60 views

Latexmk: -interaction=nonstopmode

I'm trying to use -interaction=nonstopmode in the Latexmk configuration file. But I can not. Here's the file: $pdflatex = "pdflatex -interaction=nonstopmode $_[0]"; Is there any other ...
cruzcuz's user avatar
0 votes
2 answers
67 views

Drawing a X,Y chart with reversd X axis

I have the following dataset: X= 130, 65, 45, 22, 14, 10 Y= 1.8, 1.5, 1.2, 1.1, 0.9, 0.8 First of all, the code that I wrote looks very strange: \begin{tikzpicture} \begin{axis}[ title={...
DEKKER's user avatar
  • 117
2 votes
1 answer
195 views

Who knows about the format of fdb_latexmk?

The build tool latexmk is widely used. When compiling xxx.tex with latexmk xxx, an intermediate file xxx.fdb_latexmk is created. Although I can figure out some properties of that text file, I want to ...
user2609605's user avatar
2 votes
1 answer
120 views

latexmk with biblatex doesn't raise error for undefined references

I would like latexmk -pdf -Werror to raise an error when there are undefined references remaining on the last run. When using bibtex, this works as expected. However, when using biblatex, I am still ...
elinjerto's user avatar
3 votes
1 answer
132 views

Latexmk says "all targets are up-to-date" though bib file has been changed

When I change something in my bib file, click save and run Latexmk command, it always says: Latexmk: This is Latexmk, John Collins, 4 Apr. 2023. Version 4.80. Latexmk: Nothing to do for './main.tex'. ...
Noto_Ootori's user avatar
0 votes
0 answers
96 views

lambdalatex's tex live installation can't work with cyrillic [duplicate]

Latexmk fails to compile my document with cyrillic symbols. Terminal output: Rc files read: NONE Latexmk: This is Latexmk, John Collins, 6 Nov. 2023. Version 4.81. No existing .aux file, so I'll ...
Ig.Foer's user avatar
0 votes
0 answers
55 views

Latexmk: Automatic creation of aux and output directories seems not working

A function of latexmk, automatic creation of aux and output directories seems not working in my environment. Here is the minimal example that simulates the error. parent-folder - main.tex - sub-...
Genie's user avatar
  • 1
0 votes
2 answers
226 views

latexmk: -draftmode and redefined commands

I have this MWE (test.tex): \documentclass[11pt]{article} \begin{document} Text.\footnote{Footnote text.} \end{document} I want to compile it this way: pdflatex -draftmode \ -output-directory=/tmp \...
Gabriele's user avatar
  • 2,003
0 votes
1 answer
147 views

can `latexmk` process multiple files in parallel?

To compile a number of *.tex files in several subdirectories I use find -name *.tex -exec latexmk -lualatex {} \; as per recommendation here. Works fine, but uses only one core. What must be changed ...
user855443's user avatar
  • 1,120
0 votes
1 answer
91 views

best practise when combining standalone tex-files with latxmk

I am currently not sure how to best define my workflow and would like some advice on how to best proceed. Maybe I am just overlooking something obvious. Assuming the following tinker.tex file: \...
Cube707's user avatar
  • 404
0 votes
0 answers
49 views

A MWE of Santakku that doesn't work

I have aksed a similar question elsewhere, but now I have a MWE of my problem and I've also installed Santakku.ttf on my system. The MWE is here and the error I'm still getting is here: (d:/BitDownlD/...
user2925716's user avatar
  • 1,960
0 votes
0 answers
75 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 ...
massisenergy's user avatar
0 votes
1 answer
522 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. ...
shmuel's user avatar
  • 1,459
0 votes
0 answers
119 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 ...
Violet's user avatar
  • 101
0 votes
0 answers
35 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 ...
user855443's user avatar
  • 1,120
1 vote
1 answer
344 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 ...
user41177's user avatar
  • 375
0 votes
1 answer
116 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, ...
ReaderGuy42's user avatar
0 votes
1 answer
63 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 ...
Joe.S's user avatar
  • 3
2 votes
1 answer
435 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 ->...
e_equals_pi's user avatar
0 votes
0 answers
63 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, ...
K.G. Feuerherm's user avatar
1 vote
1 answer
226 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....
GeF's user avatar
  • 13
0 votes
1 answer
191 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 ...
Balansoire's user avatar
0 votes
0 answers
123 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.
Balansoire's user avatar
3 votes
1 answer
500 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 ...
xFioraMstr18's user avatar
1 vote
2 answers
400 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 ...
marc's user avatar
  • 701
5 votes
2 answers
303 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 ...
marc's user avatar
  • 701
3 votes
1 answer
305 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 ...
Lucas Martins Soares's user avatar
0 votes
0 answers
51 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 ...
Dolphin's user avatar
  • 895
1 vote
1 answer
768 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) ...
Nora NICOLAS's user avatar
3 votes
1 answer
488 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 $...
user313032's user avatar
1 vote
1 answer
50 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 ...
marc's user avatar
  • 701
4 votes
4 answers
1k 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 ...
Richard Reichman's user avatar

1
2 3 4 5
13