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

MacVim + Skim + latexmk Setup

How do I setup MacVim + Skim PDF Viewer on macOS? I have searched online for various guides but I end up getting extremely confused. I'm relatively new and have only used Overleaf in the past but due ...
1
vote
0answers
18 views

Tikz externalize doesnt compile pdf when using \tikzset{external/mode=graphics if exists}

Hellow there, I have set up a minimal multifile example to see how the \tikzexternalize command works. The file structure is as show below |-main.tex |-sec/ |--sec1.tex |--sec2/tex |-Graphs/ |--TikZ/...
2
votes
1answer
38 views

how one column can be large in a table

I want to make a table that one of the columns must be fat! could some one fix it? \begin{table}[!h]\label{Table} \caption{random symmetrized instances} \begin{center} \begin{tabular}{...
0
votes
0answers
69 views

Output *.pdf file to a different directory using latexmk

I'm using latexmk in Visual Studio Code and I'd like to output the .pdf file to the current directory (same directory as the .tex file), while outputting all auxiliary files to a different directory. ...
0
votes
0answers
22 views

bibtopic with latexmk

When trying to compile the following document using latexmk, I get the following warning: latexmk -cd -f -pdf -interaction=nonstopmode -synctex=1 minimal.tex Package bibtopic Warning: Please (re)run ...
0
votes
0answers
41 views

latexmk seems incompatible with standalone package

Is this a bug in latexmk, or perhaps the standalone package, or is it expected behaviour? If I start with a file containing an error such as too many closing } characters, and compile my latex file ...
0
votes
0answers
43 views

Pythontex: imported .py file sync

I've managed to make Pythontex working with Latexmk, the problem is that whenever I make changes to an included python file, it's old state persists in Latex unless I delete the auxiliary files and ...
0
votes
1answer
24 views

Can latexmk -pvc re-compile when a dependency is modified?

When I run latexmk -pdf -deps, I get a list of files which are my main .tex depedencies. When I run latexmk -pdf -pvc, I'd like latexmk to re-compile when the main file or a dependency is modified. ...
1
vote
0answers
110 views

Random errors while compiling a large document with LuaLaTeX via Latexmk

I'm working on a rather large (200 pages) document. Once or twice a day, I get a compile error which references a line that does not exist in my code. That is, the line does exist, but the error ...
0
votes
2answers
59 views

latexmk is unable to compile asymptote's sample document

I am trying to compile the following document, a sligtly modified version of the sample document in chapter 7 of the asymptote documentation (https://asymptote.sourceforge.io/doc/LaTeX-usage.html#...
0
votes
0answers
25 views

File letltxmacro.sky not found

How can i fix this problem? \documentclass[11pt]{beamer} \usepackage{datetime} \usepackage[colorlinks=true]{hyperref} \mode<presentation> { \usetheme{Madrid} %\usecolortheme{albatross} } \...
0
votes
0answers
31 views

Force latexmk to rebuild a specific .tex file

A LaTeX file (rebuild.tex) includes external \write18 commands to rebuild another (a.tex) based on external data sources (e.g., SQL). However, since rebuild.tex doesn't change, latexmk won't rebuild ...
2
votes
1answer
54 views

arara/latexmk: How to pass more options of latexmk engine to arara?

In the manual of arara, there are only two options for latexmk: clean and engine. However, as similarly done before in this answer and this one, I need to figure out to pass more options of the ...
1
vote
0answers
77 views

How to get dependent files for ConTeXt file

I would like to automatically compile a context .tex-file whenever any of the files that it depends on are modified, i.e. the behaviour of latexmk's continuous compilation (latexmk -pvc). I could kind ...
0
votes
1answer
58 views

MacOS : Latexmk together with Pythontex

I am a beginner in Latexmk. Pythontex works fine by typesetting with a shell, but I would like to test also with Latexmk. I have installed it with TexLive, and I have a lot of rules preinstalled, ...
3
votes
0answers
65 views

Getting latexmk to work with both .tex and .Rnw files

System information Mint 19.2 latexmk 4.41 pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) Goal I am trying to set up my .latexmkrc configuration so it detects whether the file that is passed ...
0
votes
0answers
20 views

Latex: latexmk -C does not delete temp files created by subfiles

My project at root folder has the following structure: main.tex section/methodology.tex section/discussion.tex .latexmkrc Here is the content of my .latexmkrc: $pdf_mode = 1; @default_files = ('...
1
vote
1answer
79 views

latexmk and the length of file-name?

I had a file and a file-name of 71 characters, no space-character, several digits and some special 'danish' characters as well. The 'latexmk' processed the file but did not run the 'biber' sufficient ...
1
vote
1answer
123 views

Error related to latexmk when compiling with LaTeX Workshop

I work with LaTeX Workshop in VS Code and have just switched from MikTex to TexLive. But it seems that there is something wrong when I compile with the LaTeX Workshop like this: The output is as ...
0
votes
0answers
61 views

xdvipdfmx out of memory problem

I am generating a pretty big PDF file (around 1.6 GB) using xelatex: latexmk -xelatex MyBigTexFile All seems to go well, but the problem is that when xdvipdfmx is executed I get an out of memory ...
0
votes
1answer
37 views

How do I use a latexmkrc file to allow a standalone document to find the file

I am using LaTex in Overleaf to write my Thesis Proposal and eventually the Disseration. I thought it would be good to have all of these documents (and their presentations) in one project so I wouldn'...
0
votes
1answer
79 views

Trying to build a latex document with latexmk and additional tex files in subdirectory

I am trying to build a complex latex document (at least it's complex for me). The directory structure looks like this: - bat.tex - packages.tex - {other tex files}.tex - content -- {chapter folders} -...
1
vote
1answer
94 views

Differing return values for os.execute when called directly from Lua or from LuaTeX

Consider the following LuaTeX file. ################################# foo.tex ################################# \documentclass[12pt]{article} \usepackage{filecontents} \begin{filecontents*}{foo.lua} ...
1
vote
0answers
74 views

How to compile Overleaf LaTeX template in VS code using LaTeX workshop?

I am trying to compile the following template : https://www.overleaf.com/articles/ismail-shaikhs-business-cv/hwqzkdzjtpcb on VS code version with LaTeX workshop version 8.4.1. The .tex file compiles ...
0
votes
0answers
21 views

Include all options in .latexmkrc (or similar)

Is there a way to compile in a similar way than make uses the Makefile with latexmk? What I mean is that I often run latexmk filename -pdf -pvc. Whould there be a way of specifying the filename -pdf -...
1
vote
1answer
29 views

latexmk with glossaries in MS Windows

I am using latexmk and trying to get it to successfully compile the glossaries. I used the script in CTAN (http://ftp.acc.umu.se/mirror/CTAN/support/latexmk/example_rcfiles/glossary_latexmkrc) but it ...
0
votes
1answer
26 views

How do I change the spacing between words in italics/bold/etc?

I have tried to use \fontdimen2\font=0.75ex but that only changes the size of the regular font, while italics and bold retain the same spacing. I know that I can use something like \fontdimen2\italic=...
1
vote
0answers
34 views

Cross referecing two documents to each other

I have two files which I want to cross-reference to each other. following this latexmk with external references this is what I did. I am compiling in overleaf. In file 1 I have the following: \...
1
vote
0answers
59 views

Can I configure latexmk to respect the TS-program directive?

I like latexmk but I use a variety of engines on files in the same folder. I'm trying to write a latexmkrc file that will look in the first few lines of the tex file for something like % !TEX TS-...
2
votes
0answers
38 views

Have two different master files compiled with AucTeX

I use a template for exercises where I have a ex environnement, and then a sol environnement. Theses files are included in one master file called for instance AF1920_serie4.tex, and in another file ...
0
votes
0answers
38 views

View latexmk output using texmaker's viewer

I am running the following command for latexmk, latexmk -e "$pdflatex=q/pdflatex -synctex=1 -interaction=nonstopmode/" %.tex -pvc -pdf But I get the following error, "I have not found a ...
0
votes
0answers
60 views

problem in using \usepackage{pgfplots} package

I think I have a problem with using \usepackage{pgfplots} package since when I compile any file latex using pgfplots, it fails with this error: ! Text line contains an invalid character. l.232 ......
0
votes
1answer
85 views

Passing arguments to xelatex using latexmk

I have a single XeLaTeX source file which can generate two versions of the document depending on whether a certain command sequence testcs exists. I typically have a shell script which generates both ...
2
votes
1answer
103 views

! Missing number, treated as zero. and ! Extra \endcsname Errors using algorithm, algorithmic packages

I have no idea what this error is complaining about or how to fix it. Here is minimum explainable problem: \documentclass{revtex4-2} \usepackage{float} \usepackage{amsmath} \usepackage{subfig} \...
0
votes
0answers
57 views

Can't get the pdf file to be viewed in CodeRunner

I am trying to integrate the latexmk compilation into coderunner on MacOS. However, eventhough it is able to compile it correctly, I can't get the pdf to be previewed in the coderunner app. This is ...
3
votes
1answer
337 views

Latexmk: Disallowing switch of output file as incompatible with file requests

I compile a source code with that command: $ latexmk -pdf main.tex Later, I want to clean the folder (indeed, it is part of the make clean rule, but it does not matter). $ latexmk -C Latexmk: This ...
0
votes
0answers
16 views

latexmk generates oddly spaced letters

In the following text the words sich and kostenlose have oddly spaced letters in them, specifically i, c and e. How can I fix this? I am using latexmk version 4.61 and MiKTeX. Here is my working ...
0
votes
0answers
29 views

latexmk not recording dependent files

I don't know whether I don't understand the working of latexmk's -deps flag or it's not working as supposed. I'm building a Makefile for typesetting several documents from a single main.tex file (I ...
1
vote
1answer
54 views

add_input_ext generates an error in recent versions of latexmk

I am trying to build a document which depends on some SVG files. I want these SVG files to be converted to PDF, and then the resulting PDF used as inputs to the compilation. For this purpose I have ...
5
votes
1answer
101 views

latexmk unhappy with file that only contains filecontents block

Consider the file \documentclass[12pt]{article} \usepackage{filecontents} \begin{filecontents}{stuff.txt} Some stuff \end{filecontents} \begin{document} \end{document} latexmk is unhappy with this ...
0
votes
0answers
140 views

Problem creating pdf output using latexmk

For the last 2 hours I have been struggling to create a pdf output from a .tex file using latexmk. I am following the instructions given in this document for Windows users and all the output files are ...
0
votes
0answers
189 views

Latexmk and missing pdflatex command

Following the guide here and the details provided on the latexmk installation note, I managed to set up a latexmk executable in my bin. Now hopefully this should've meant I was done and ready to ...
0
votes
0answers
36 views

How to get tikzexternalize to typeout the current figure name for use by latexmk?

I am trying to patch tikz-externalize to do a \typeout{figure-0.pdf}(described here) for all figures, so latexmk realizes it is a dependency and runs the following rule add_cus_dep('md5', 'pdf', 0, '...
2
votes
1answer
591 views

latexmk not working after MiKTeX update

I am using MiKTeX/TeXworks and set latexmk up years ago. It's been working well until yesterday when I updated MiKTeX. The typesetting routine for latexmk that I use is: However, now when I try to ...
0
votes
0answers
115 views

latexmk creates multiple .fls files in dropbox

I use the lightweight Gummi Tex editor on Ubuntu 18.04 LTS, and I'm having a very weird problem. It creates multiple .FLS files automatically when I meet these two conditions: 1 - When I'm working on ...
1
vote
1answer
76 views

Citation is undefined

I have the following: \documentclass[a4paper]{article} \begin{document} \begin{titlepage} \vspace*{\stretch{1.0}} \begin{center} \Large\textbf{A Review of Introduction: Ethnicity, Identity and ...
0
votes
1answer
942 views

Tlmgr command not found after install Mac OS

I already looked up all the other questions, which were a bit similar to mine, but it did not help at all. I just installed the Basic Tex for Mac and tlmgr and latexmk dont work. I also added it to ...
2
votes
2answers
368 views

How do I set XeLaTeX as my default engine?

I use Neovim with the vimtex plugin and latexmk but I want to make it use XeLaTeX by default instead of PDFLaTeX because I have to use fontspec quite often for my college papers. I use TeX Live.
0
votes
0answers
24 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
77 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 ...

1 2 3 4 5 9