{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

3
votes
1answer
344 views

latexmk separate build directory

I'm trying to use latexmk for the first time in Ubuntu. My project directory is the following: Project src build images In the src directory are the .tex and .bib files. I want the .aux, .bbl, ...
1
vote
1answer
693 views

Latexmk missing in TeXlive 2012

I would like to use latexmk tools together with TeX Live 2012, but I could not find latexmk. Is it extra tools, or did TeX Live stop supporting it? In my case, I have OS Ubuntu 12.10.
4
votes
2answers
136 views

TeXworks and pvc parameter of latexmk

When we use TeXworks as editor is there any point in using -pvc argument of latexmk?
8
votes
4answers
355 views

XeLaTeX - terminal output too verbose

Is it possible to reduce the amount of information you get from running: xelatex texfile.tex The oh so long output: This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/Debian) restricted ...
12
votes
1answer
181 views

What is the name of the bibfile when an extension is given in \bibliography?

When using bibtex, one supplies a command like \bibliography{test} in the document to indicate the use of a bibfile test.bib, and the extension is omitted. However, it is natural for a user also to ...
6
votes
1answer
740 views

Can I use latexmk -C for cleaning up only, and compile with another tool?

Can I compile my document with other tools and use latexmk -C only for cleaning up? One application could be to use it then in the clean: section of a Makefile that uses pdflatex for make pdf.
7
votes
2answers
204 views

latexmk endless loop when non-PDF outputs are specified

My source file is based on the standalone package. The \documentclass command specifically looks like this: \documentclass[preview, convert={density=300}]{standalone} If the source file is named ...
1
vote
0answers
3k views

Sublime Text 2 and bibtex [closed]

I'm using Sublime Text 2 (ST2) with LaTeXTools to build my .tex-documents. But the .bib-file is not found or doesn't build (I believe the last one). The LaTeX log reports undefined citations, and the ...
6
votes
2answers
934 views

Clean .bbl files with latexmk -C

I use TeXLive 2012 and compile with run latexmk -pvc -pdf -quiet test.tex later I clean the directory with latexmk -C But test.bbl remains. How can I help latexmk to find bbl files? test.bbl ...
5
votes
0answers
336 views

Make latexmk and pdfviewer robust against latex errors [closed]

Sometimes latexmk fails because the file was saved premature. For example the user forgets to close a { bevore he saves the .tex file. The user has to get latexmk back on the road again and usually ...
1
vote
0answers
47 views

latexmk and tikz externalize: eternal loop [duplicate]

Possible Duplicate: Too many compiles when using latexmk with mpgraphics I'm trying to set up my TeX builds for optimal performance and would like to use latexmk for optimum ...
19
votes
1answer
1k views

ultrafast pdflatex with precompiling

I try to improve the time pdflatex needs to compile my book. Really working example book.tex %&preamble \begin{document} Hi \end{document} and preamble.tex \documentclass{article} I run ...
10
votes
2answers
299 views

latexmk / imakeidx interoperational efficiency

imakeidx and latexmk are two of my favorite utilities of all TeX-time, especially in the face of book-size compilations (super thanks @egreg and @John Collins!). Apart from ease of producing multiple ...
4
votes
1answer
266 views

How to only output dependencies from latexmk?

I'd like to use latexmk in a Makefile, so I've read the manual section on that. However, the dependency generation step seems less than ideal. Specifically, it seems that latexmk can only show ...
12
votes
1answer
428 views

Errors in latexmk with use of auto-pst-pdf and hyperref

If we compile \documentclass[a4paper]{article} \usepackage[pdftex]{hyperref} \usepackage{pstricks,auto-pst-pdf} \begin{document} \tableofcontents \section{Curves} \begin{postscript} \begin{pspicture} ...
12
votes
3answers
361 views

Arara problem with xelatexmk rule

After many tests in Mac OS X and Ubuntu, I haven't been able to run arara with Brent Longborough's xelatexmk.yalm rule. No matter what I do, arara seems to run latexmk with pdflatex, not with xelatex. ...
8
votes
2answers
309 views

Check if pdf is up to date for git pre-commit hook?

It'd be really nice to do a git commit -m "some stupid broken commit" and get back a refusal from git, because the latest version of the document hasn't been successfully compiled yet (ie. changes ...
9
votes
3answers
561 views

latexmk precompiler options

Are there any precompiler options for latexmk I can use inside my LaTeX source files? (For instance, to tell latexmk to compile using XeLaTeX instead of PDFLaTeX.) I know how to do that with the ...
4
votes
2answers
723 views

Latexmk using -jobname and a command line \def

I am having a problem converting this pdflatex command to use latexmk: pdflatex --file-line-error --shell-escape --synctex=1 \ -jobname=foobar "\def\MyCustomDef{} \input{file-name.tex}" I ...
3
votes
2answers
317 views

Too many compiles when using latexmk with mpgraphics

\documentclass{article} \usepackage{mpgraphics} \begin{document} \begin{figure} . \label{fig:a} \caption{a} \end{figure} \begin{mpinline} draw (20,20)--(0,0)--(0,30)--(30,0)--(0,0) \end{mpinline} ...
7
votes
2answers
448 views

latexmk with external references

Is there a way to make latexmk aware of external references as they are imported via the xr package? My Problem is that I have several files for weekly exercise sheets. Sometimes I have references to ...
9
votes
1answer
402 views

Can my custom dependency for latexmk be improved?

In my answer to this question on how to make latexmk use makeglossaries for generating glossaries, I propose the following custom dependency: add_cus_dep('glo', 'gls', 0, 'run_makeglossaries'); ...
5
votes
1answer
2k views

pdflatex, latexmk, synctex: Adding an option to pdflatex causes synctex to fail

The user "Mike" kindly helped me on Latex, Emacs: automatically open TeX Help buffer on error and close it after correction of the error? to create the following function which makes error detection ...
6
votes
1answer
403 views

How to know that latexmk picks up my configuration file?

I've put .latexmkrc file into my working directory, but it doesn't seem to be doing anything. Is there a way to check that latexmk picks up my configuration file?
5
votes
1answer
666 views

Latexmk with makeglossaries and auxdir and outdir?

How can I use glosseries with latexmk if I use outdir and auxdir parameters? I keep getting the .gls not found... Here is my latexmk build script: latexmk -outdir=out -auxdir=out -g -f -bibtex -dvi- ...
17
votes
4answers
3k views

Override TikZ externalize “up-to-date” flag

I am currently using the TikZ external package in order to avoid recompiling all figures in my thesis. There are more than 50 figures, relying on large data, and a full build without externalizing ...
5
votes
1answer
693 views

How to run latexmk with LuaTeX on Windows?

This is a bit of a follow-up question to: Is there latexmk functionality for LuaTeX? I am trying to setup latexmk on Windows 7 together with LuaTeX but it does not work for some unknown reason. ...
5
votes
1answer
269 views

Why doesn't latexmk handle errors in the preamble?

Today I discovered that if I have an error in the preamble of my tex file then Latexmk produce an error only once. Precisely, for example if my file looks like this \documentclass{article} ...
2
votes
1answer
258 views

AUCTeX write only region file

Since I'm used to use latexmk -pvc I'd like to do the following: Run latexmk -pvc (externally) on the _region_.tex file Use AUCTeX to just write the region file instead of compiling. Is there a ...
2
votes
1answer
2k views

hyperref error when using XeLaTeX and fontspec with LaTeXmk

I have defined a compilation tool for TeXWorks as follows: Program: latexmk Arguments: -e $xelatex=q/xelatex $synctexoption %0 %S/ -pdf $fullname It works fine in ...
5
votes
1answer
581 views

How to use qpdf via latexmk?

In the manual of latexmk I read that [latexmk] can also, if needed, call an external program to do other postprocessing on the generated files. How can I call qpdf with latexmk? I want to ...
16
votes
0answers
311 views

What are the main differences between AutoLaTeX and LaTeXMk?

I stumbled upon AutoLaTeX today and it seems to be very similar to LaTeXMk indeed. Can you summarise the main differences, which might help me choose between the two tools?
9
votes
1answer
2k views

all-in-one-engine for TeXShop

I am trying to write my 'Matura work' for school in LaTeX. Therefore I am using MacTeX and TeXShop and normally it works fine. But I am really annoyed with running all these different engines like ...
3
votes
2answers
699 views

How to clean up .table and .gnuplot using latexmk

I'm using latexmk as my building assistance. I'm also trying to use it as the clean-up contractor... In .latexmkrc I added: $pdf_previewer = "open -a /Applications/Skim.app"; $clean_ext = "rel paux ...
6
votes
2answers
700 views

! Bad space factor (0)

When trying to compile my .tex file using the latexmk -latex=xelatex command, I receive the following error: ! Bad space factor (0). <recently read> \@savsf l.39 \end{seriate} ? Then, if ...
4
votes
2answers
1k views

Latexmk: makeglossaries, Biber and pdfLaTeX / Where to put latexmkrc?

I've got myself seriously confused with latexmk. I have been using latexmk on TeX Live 2011 and I have loved it for making my document with a ToC and references with Biber. I am trying to make it work ...
7
votes
1answer
923 views

latexmk: Multiple custom-generated files and \input

Referring to this question, I found that having multiple custom-generated files in a document generated by latexmk doesn't really work for me. The modus operandi is that latexmk runs pdflatex, ...
10
votes
1answer
756 views

Can I make latexmk quieter?

I'm using latexmk -quiet, and while it suppresses most status messages, there are still a few irrelevant messages that it gives me: $ latexmk -pdf -silent document.tex Latexmk: Run number 1 of rule ...
5
votes
1answer
177 views

Can latexmk be told to ignore specific intermediate files completely?

One latex run suffices to generate the DVI/PDF version of the LaTeX document \documentclass{article} \usepackage{comment} \includecomment{comment} \begin{document} \begin{comment} \noindent ...
5
votes
3answers
2k views

Where should I put a latexmkrc file (using TeXLive 2011 and Windows 7) so that it is available to all my document files?

I spent most of yesterday trying to get LaTeX to create a list of abbreviations using the {nomencl} package , and after a lot of research managed to succeed using latexmk and creating a customised ...
2
votes
0answers
758 views

Latexmk with makeindex and -output-directory [closed]

My current .latexmkrc looks (more or less) like this: $pdflatex = "xelatex -src-specials -synctex=1 -interaction=nonstopmode %O %S"; # for nomenclature add_cus_dep("nlo", "nls", 0, "nlo2nls"); sub ...
6
votes
1answer
596 views

latexmk -pvc doesn't recompile if included files change

My current project layout looks like this: Mainfile.tex with \begin{document} including preamble (\documentclass, packages, newcommands, etc) and chapters, split into separate subfiles. I'm using ...
2
votes
0answers
253 views

xelatexmk and emacs [closed]

For technical reason, I had to set for using emacs as my working environment, as I am able to type directly some Unicode signs that otherwise I cannot code in with Texworks or TeXmaker. At this point, ...
16
votes
1answer
903 views

texify or latexmk?

MiKTeX 2.9 comes with both and they apparently do the same thing. I was wondering what the difference between them is (if any) and which one is preferable for large documents.
6
votes
1answer
669 views

Latexmk can't see a dependency on a .fmt format file

I'm using latex on a small netbook, and with average-sized files (~150 pages at the moment) compilation is already pretty slow. So I am looking for every way to speed up the compilation. In this ...
3
votes
1answer
194 views

Using Latexmk with mpost [duplicate]

Is it possible to tell latexmk to execute mpost paper.mp after each compilation run if paper.mp has changed? I tried to create a custom latexmkrc rule: add_cus_dep('mp', '1', 0, 'mpost'); sub mpost ...
46
votes
3answers
2k views

What are the differences between latexmk and rubber?

I just stumbled on this blog post about rubber and was thinking: "Isn't that exactly what latexmk does?". So, now I wonder: isn't it? Or are there any differences?
6
votes
1answer
511 views

How to use latekmk with feynmf/feynmp?

Background The latexmk tool can be used to automatically process your LaTeX files enough times to generate the output. As discussed here and here, latexmk now supports setting out_dir which passes ...
3
votes
1answer
584 views

latexmk -pvc option breaks when compiling beamer class

latexmk is the tool I'm using to compile my documents, and the -pvc option is the one which is normally on. In this setting, when I save a file which produces a compilation error, then latexmk informs ...
1
vote
2answers
1k views

LaTeXmk, xelatex and Texmaker

I am trying to set up Texmaker, so I can use latexmk with xelatex, as biber seems already supported by latexmk. I confess I do not understand how I should proceed about it. For latexmk, I am actually ...