{latexmk} is a Perl script to automatically run latex and related commands as many times as needed to build the final document.
23
votes
4answers
2k views
How to make Latexmk use makeglossaries?
Is there a way to make Latexmk invoke makeglossaries (part of the glossaries package)?
Specifically I want to use latexmk to compile a LaTeX document that uses the glossaries package to produce a ...
13
votes
2answers
2k views
Using Biber with latexmk
With version 4.22, latexmk claims to
[s]upport the use of biber (with the biblatex package) as an alternative to bibtex for generating bibliographies, with automatic determination of whether to ...
9
votes
2answers
2k views
Specify -output-directory when using latexmk
I am using latexmk for the automatic resolution of needed reruns. I would like to put all build files (aux, log, bbl, pdf, etc.) in a subdirectory.
I cannot find an option for latexmk to do this. If ...
6
votes
3answers
1k views
configure latexmk in Texworks 0.2.3
Someone told me "You can configure latexmk in 0.2.3 in texworks". How, please?
(I need it so that compilation is done properly for bibligraphies.)
I'm in Debian 6 and using TexLive.
12
votes
1answer
1k views
Compile using latexmk in emacs
In the accepted answer in for the question it is suggested how to add latexmk support to emacs. If I get it right, compiling the .tex file should be assigned to C-c C-c. However this doesn't work for ...
16
votes
1answer
641 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 ...
14
votes
4answers
1k views
Use MiKTeX option through latexmk
When I use MiKTeX normally, I call this:
pdflatex --aux-directory="C:\Users\doncherry\Documents\LaTeX\AUXI_global" foo.tex
For latexmk outputting pdf (via pdfLaTeX) with continuous previewing, my ...
5
votes
1answer
1k 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 ...
5
votes
1answer
561 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, ...
3
votes
2answers
200 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}
...
18
votes
6answers
2k views
PDF reader on Linux capable of continuous updating
I am using latexmk on a Red Hat 5 machine. I use it as:
latexmk -pdf -pvc
I would like to have my PDF reader automatically update the PDF as it is changed. What PDF reader do I need for this? What ...
6
votes
1answer
814 views
Emacs-org-mode and latexmk
After getting to know org mode here, I tried it out. It seems to be, indeed, very helpful. However, I want it to work smoothly with LaTeX, and as a compiling script I want to use latexmk.
I followed ...
4
votes
1answer
287 views
latexmk not accompanying TexWorks 0.5?
I seem to remember latexmk should be included since ver 0.4 TexWorks. I have ver 0.5 r.930 Debian installed on Deb 6 64 bit. Also I have Texworks 2011 installed in my home folder. So why doesn't ...
3
votes
1answer
1k 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
1k views
Ignore compile errors
How can I set up a permanent compile loop that keeps trying even when there are errors? I'm using latexmk with a remote compile setup as discussed here and here. However, if I save a document with a ...
3
votes
1answer
102 views
How to run LaTeX and lilypond-book in one command?
I was wondering if there was any command which would let me create a PDF from a LyTeX source in one step. Currently, I am first executing lilypond-book:
lilypond-book --latex-program=pdflatex --pdf ...
1
vote
2answers
698 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 ...
38
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?
16
votes
1answer
669 views
Is there latexmk functionality for LuaTeX?
I am a big fan of latexmk and lately I have been looking a bit towards LuaTeX. However I am am yet to find a way to get the functionality of latexmk (mainly recompilation on changes and automatic ...
9
votes
1answer
234 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 ...
6
votes
1answer
454 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 ...
4
votes
3answers
678 views
Automatically start the necessary pdflatex runs if .tex has changed (MacOS X)?
I read about Latex Daemon, which seems to automatically start a new latex run, when the source document (.tex) has changed.
Can somebody recommend me a similar solution for MacOS X (as Latex daemon ...
8
votes
2answers
941 views
Textmate + Latexmk
Textmate for OS X, has a LaTeX bundle (a great bundle indeed). But this bundle packs the latexmk script (version 3.7 or so), I am wondering if anyone was able to update the latexmk version that comes ...
4
votes
1answer
884 views
How to make LaTeXmk work with XeLaTeX and biber
I'm trying to make LaTeX make work 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 ...
12
votes
1answer
626 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.
5
votes
1answer
386 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 ...
4
votes
1answer
346 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 ...
3
votes
2answers
353 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 ...
3
votes
1answer
356 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 ...
3
votes
1answer
873 views
Using BibTeX with latexmk
I'm using MiKTeX 2.9 under Windows XP. I have the following directory structure for my document:
D:\MyTeX
D:\MyTeX\BibTeX
D:\MyTeX\IPMcast
File latexmkrc contains the line:
$bibtex = 'bibtex ...
2
votes
2answers
116 views
latexmk and nomencl
I'm trying to implement the nomencl package in my Master's thesis, but I'm experiensing serious trouble when it comes to make latexmk/makeindex create or update the nls file. I ended up creating the ...
2
votes
1answer
191 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 ...

