{latexmk} is a Perl script to automatically run latex and related commands as many times as needed to build the final document.

learn more… | top users | synonyms

0
votes
2answers
28 views

Force LatexTools to output pdf only after its complete compilation

With one of the recent updates, LatexTools now supports Okular under Linux. This makes it eventually useful for my setup of writing tools. The fact that LatexTools provides the pdf viewer with the ...
2
votes
1answer
40 views

How to fix biblatex warning about deprecated option

When I compile my document using latexmk main.tex I get the following warning Package biblatex Warning: 'firstinits' option is deprecated, use 'giveninits' instead. How do I get rid of this? ...
0
votes
1answer
21 views

How can I run a latexmk cleanup for subdirectory?

I'm writing a command line tool that does some work with latexmk. I specify a specific directory with output-directory. However when I run latexmk -c subdirectory nothing happens. Can I do that ...
1
vote
0answers
29 views

latexmk reaches maximum runs when including new glossaries entries

I have a problem with latexmk and the glossaries package. I have a large `scrbook' document organised with a main file and several chapter files. In my preamble I have a large quantity of acronyms ...
0
votes
0answers
14 views

latexmk -pvc to run only if not running

I am trying to run latexmk -pvc from a vim mapping. I only want it to run if there is no current latex -pvc background task running. Is there something easier than this?: [[ $(/usr/bin/pgrep -f ...
2
votes
1answer
41 views

Install latex to work with sublime text 3 on windows

I have been using 'sublime text 3' for a long time and I like it very much. It has limited support for LaTeX. Since I have to write reports in LaTeX I want to do it in 'sublime'. I installed ...
1
vote
0answers
34 views

XeTeX hangs on article documentclass, while LaTeX-Mk with XeLaTeX works perfectly

I have this code: \documentclass{article} \usepackage{fontspec} \begin{document} \thispagestyle{empty} \pagestyle{empty} äätewää--llll \end{document} XeTeX xetex xetex-acutex.tex produces: ...
1
vote
2answers
26 views

latexmk: how to continuously update the output pdf but not invoking the pdf viewer?

latexmk -pvc can compile tex files continuously and update the pdf viewer, but how can I stop it from invoking the pdf viewer automatically?
0
votes
2answers
150 views

TeXstudio + Latexmk won't compile (with OS X): “Error: Could not start command: …”

UPDATE: John reported the bug in the TeXstudio forum, and they fixed it. The development version TeXstudio 2.10.9 (hg 5929:7315f2e5eed3) works, when you change the Latexmk command to "latexmk -pdf ...
1
vote
0answers
20 views

Latex compilation in Sublime Text [duplicate]

Working in Sublime Text in a Latex Document, i wondered. Is there any way to compile my document look on the right side of my screen? Like Texstudio.
2
votes
0answers
23 views

Installer script for a modern version of latexmk

(Ubuntu 12.04) I installed latexmk with sudo apt-get install latexmk and got version 4.24, which apparently dates back to 2011. It doesn't have some nice features like -aux-directory that I'd like. ...
2
votes
0answers
47 views

LatexMK incorrectly tries to build files used by minted

I am using LatexMK from a Makefile with the -use-make option. A really great tool to automatically compile my document while making sure all images are up-to-date. When trying to compile a document ...
1
vote
1answer
34 views

Post compile hook latexmk

Is there something like a "post compile hook" for latexmk. I.e. I want to configure latexmk to run some scripts automatically after a compilation process is completed.
3
votes
1answer
36 views

latexmk -xelatex produces texfile with empty page instead of unicode characters

the code: \documentclass[12pt]{article} \begin{document} ääßöüü \end{document} with the options: latexmk -xelatex test.tex results in a empty page. what is wrong here? logs: Latexmk: This is ...
8
votes
2answers
3k views

How to make LaTeXmk work with XeLaTeX and biber

I'm trying to make latexmk works with XeLaTeX and biber for my thesis. The document will have many cross references. What settings do I need to ensure it works correctly? My current settings for ...
1
vote
1answer
66 views

Latexmk Command not found after MacOS El Capitan Upgrade

I recently upgraded to El Capitan on my mac, and as a result, terminal no longer recognizes the command "latexmk". For example, I get the following from terminal: Tylers-MacBook-Pro:Dropbox ...
1
vote
1answer
44 views

latexmk ignore embedded file

I have a TeX file with an embedded file from the command \embedfile{\jobname.org}. I'd like to stop latexmk from running when the embedded file changes. There is no official option for latexmk to ...
3
votes
1answer
34 views

copy pdf and .synctex.gz to working directory with latexmk, works on windows, not on os x

I have a problem with latexmk on my Mac. I'm using emacs as my latex editor, and have configured it to use latexmk. I have specified an output directory, but for synctex to work I need the pdf and ...
3
votes
1answer
190 views

Malformed bcf file not recreated by latexmk after error

I'm using latexmk with pdflatex to compile my thesis, with biblatex for references and biber as backend. It compiles fine and creates correct PDF output. If a change to the source files introduces an ...
1
vote
1answer
89 views

Biblatex remakes bcf and bbl files despite no change to bib files

Any change to my project tex files, even those that do not involve bib files or citations, result in biblatex recompiling the bcf and bbl files. How to prevent this behavior in order to save time ...
1
vote
1answer
86 views

How does latexmk find package files?

I installed TexLive on Arch Linux together with texlive-latexextra in order to use the package todonotes, but latexmk does not find the todonotes.sty file. This is what it prints: $ latexmk -- pdf ...
0
votes
0answers
61 views

Latexmk and KOMA-Script tocstyle package compile errors

I'm trying to use the KOMA-Script package together with latexmk wich produces folling compile error: Latexmk: Summary of warnings: Latex failed to resolve 20 reference(s) Latexmk: applying rule ...
0
votes
0answers
34 views

Latexmk: How to Use $compiling_cmd, $success_cmd, $failure_cmd

I wish to use the following commands of Latexmk on MacVim (El Capitan): $compiling_cmd, $success_cmd, $failure_cmd. The manual gives the following examples: $compiling_cmd = "xdotool search ...
2
votes
1answer
24 views

latexmk drops into pdfTex shell or something

I keep on reading articles on how to use latexmk, but when I try, the command never just exits. It always drops me into some kind of shell like this $ latexmk -pdf latex-preview.tex Latexmk: This is ...
2
votes
2answers
49 views

Compiler-style output for latex errors

I am a programmer who is used to using command line tools to compile source code. One of the must-have features of these compilers is the ability to tell programmers where their errors are so they ...
1
vote
0answers
85 views

Segmentation fault: lualatex -recorder

I installed a 64bit MikTeX on Windows 10 and trying to get my tex-files compiling again. I'm using luatex as compiler together with latexmk and a simple latexmkrc file. $pdflatex = 'lualatex %O %S'; ...
0
votes
0answers
58 views

Use epstopdf with input files in different folder

I've been looking for hours and I still can't find a suitable solution. My problem is, I have a tex file which I must compile with pdflatex and it uses pstricks, so I use epstopdf and stuff. The issue ...
0
votes
1answer
42 views

Adding custom build step to latexmk sequence

I wonder if I can run, say, a shell script before actually starting latexmk routine? I've found compiling_cmd, but it doesn't seem to work for me. I can write custom shell script to call anything ...
0
votes
0answers
39 views

LaTeXmk Error - Changing directory

I'm using Atom 1.3.3 with LaTeX-Plus. When suddenly the following error came up. Can you please help me? I did not change any files of the project. Thank you in advance, Sebastian
1
vote
1answer
49 views

Make utility deletes PDF when Ctrl-C'ing out of continuous preview

I am using a Makefile together with the latexmk utility to build PDFs from LaTeX files. My question is at the bottom. Here is some background: The relevant parts of my Makefile are the following: ...
6
votes
1answer
151 views

How to set latexmk to clean directory?

I know I can tweak $clean_ext setting inside .latexmkrc to clean specific files when invoking latexmk -c. However, it doesn't work for directory. The directory I want to clean is _minted-<main ...
0
votes
0answers
51 views

Find main.tex file in parent folder when using latexmk

I have the following file structure for my document: document ├── acronym.tex ├── bibliography.bib ├── chapters │   ├── some-chapter.tex │   └── another-chapter.tex ├── figures │   ├── ...
6
votes
1answer
394 views

Specify timezone for \today and \currenttime

Is there a way I can specify the timezone LaTeX should use when printing the \today and \currenttime (or the datetime package in general)? I need this because travisCI does build my PDF automatically ...
2
votes
0answers
26 views

Is it possible to configure the way latexmk know there is not known cross-reference

When there is a reference not defined in a .tex file, latexmk can find it and send a final message like Reference `B-U:identification' on page 22 undefined on input line 547 It seems latexmk ...
2
votes
2answers
1k views

latexmk - command not found on OS X

I've installed the MacTex bundle on my machine. When I try to run $latexmk I get a 'command not found'. I already reinstalled the latexmk bundle in TeX Live Utility. Both universal-darwin and ...
11
votes
1answer
3k views

gnuplot in LaTeX, without gnuplottex

I'm using the cairolatex terminal in gnuplot to create some surface plots (pgfplots is failing the task because of its hunger for memory). As the number of plots increase, I would like to include the ...
0
votes
1answer
27 views

thumbpdf support for latexmk

I would like to use thumbpdf in my document and latexmk as build system. When I compile my document, I get following output: Latexmk: Missing input file: 'document.tpt' from line 'Package ...
1
vote
2answers
175 views

latexmk says fontspec/Path is unknown

I have the following document, which uses fonts stored in a fonts/ directory (specifically several subdirectories of fonts/), as well as defined font subfamilies. I'm trying to compile it into a PDF ...
2
votes
2answers
626 views

bibtex does not find bibliography fields when using latexmk and outdir

I compile a document with this command: latexmk -outdir=obj these.tex In these.tex, I specify \bibliography{../Bibliography}. But, when latexmk calls bibtex, the .aux file is one folder deeper ...
1
vote
1answer
123 views

XeLaTex, Biber, XeLaTeX mac terminal mactex2015

Want to compile with terminal. Currently options that work in texmaker are "/usr/local/texlive/2015/bin/x86_64-darwin/xelatex" -interaction=nonstopmode %.tex| ...
0
votes
0answers
156 views

Latexmk - Non-existent destination files

I try to use latexmk with Texmaker. I put that in the Quick build : "C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/latexmk" -pdf %.tex | "C:/Program Files/Adobe/Reader 11.0/Acrobat/AcroRd32.exe" ...
1
vote
0answers
125 views

Installed package is still missing

I need MnSymbol.sty in a template I use. During the build I got this: ! LaTeX Error: File `MnSymbol.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default ...
3
votes
2answers
226 views

latexmk cleanup

When I do latexmk -c foo.tex, latexmk cleans up as expected. I tried to configure latexmkrc so that this would happen automatically. Here's my latexmkrc file: $pdf_mode = 1; $silent = 1; ...
0
votes
0answers
76 views

How to change the rules for latexmk that biber is not run before pdflatex?

I have settled with latexmk instead of the intrinsic order of commands within texstudio. This works very well. However, running makeindex and biber before pdflatex is not well advised in my case. ...
5
votes
1answer
302 views

How to know if a LaTeX file needs another compilation pass

When preparing a document some LaTeX files need more than one compilation pass. This is for instance the case when the file is using \tableofcontents, \ref, or bibliography file (in which case a call ...
0
votes
0answers
42 views

latexmk not copiling files

I have the following make that use latexmk to compile my latex project. It work in my personal machine but not in work machine. The files in tikz folder are not compiled. So what's the problem with my ...
4
votes
1answer
45 views

LaTeXmk and MusiXTeX. Or: adding commands to LaTeXmk workflow

I am working on a songbook in LaTeX using MusiXTeX. For that to work properly, I need to compile the document as follows: pdflatex songbook musixflx songbook pdflatex songbook Is there a way to ...
1
vote
0answers
138 views

vim + knitr + synctex + file watch + sumatrapdf (on windows)

I'm trying to get a task runner watching a directory for changes and then run the following: knit Rnw file pdflatex the resulting tex file (with bibtex) open pdf viewer and have both forward/reverse ...
2
votes
1answer
548 views

latexmk -pv default previewer

I currently use Acrobat as my default pdf viewer for everything other than latex related tasks. So not particularly keen on changing my system default. I would like to get latexmk to use sumatrapdf ...
3
votes
1answer
67 views

Latexmk and the location of Asymptote's generated files

I am trying out Asymptote with latexmk and I would like to automate the interaction. Consider the following latex document test.tex: \documentclass{minimal} \usepackage{asymptote} ...