{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

9
votes
2answers
1k 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 ...
2
votes
1answer
64 views

Running latexmk on tex-file with errors does not report any errors on second run

I am using latexmk for compiling a large amount of tex-files to PDF's on a Jenkins server, some of the tex-files are known to have errors in them. I would like to reduce build time as much as ...
2
votes
2answers
85 views

Create a service using Automator to compile .tex file in Mac

I'm using Mac OS 10.9.3, TeXLive-2013 and Scrivener to write my papers. I'd like to use Apple's Automator in order to create a service (available from the Finder's right-click menu over a file) called ...
21
votes
1answer
456 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?
1
vote
1answer
102 views

Sublime Text LatexTools fail

I am using Sublime Text 2 with LatexTools on OS X 10.6. When I build, I get "TraditionalBuilder: Invoking latexmk... done." Yet Skim does not open the PDF. The problem might be related to the result ...
8
votes
1answer
391 views

Configuring latexmk to use a preprocessor (lhs2TeX)

I want to preprocess an input file before compiling it with, say, pdflatex. I found one way to do this using the "internal" specification described in the latexmk manual, but I expected there to be a ...
3
votes
1answer
35 views

Why can't I get annotations in the bibliography here?

Funny, I feel like I had it going before. I can't seem to figure out what's wrong. MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[danish]{babel} ...
1
vote
1answer
71 views

latexmk vs texi2dvi?

I am wondering what the differences between latexmk and texi2dvi are. To my surprise I haven't found this here nor via google (apart from a post back in 2004 which I am not sure how accurate it is). I ...
1
vote
0answers
59 views

Configure latexmk in TeXworks (TeX Live 2013)

I am trying to configure latexmk in TeXworks 0.4.5 accompanied by TeX Live 2013. I followed the instructions on the TeXworks site, as noted in the picture below: My code is very simple as follows: ...
19
votes
1answer
1k 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 ...
2
votes
1answer
79 views

How to create the .latexmkrc file

I only started with latexmk & I feel ridiculous because I can't create the .latexmkrc file… I'm using TeXShop on OSX 10.9 & when I try to create the file, Mac says : "It is impossible to use a ...
2
votes
1answer
51 views

kpathsea: “I can't find file `ptmr8t+10'.”

Using latexmk 4.39 on Arch Linux, I get a compile error regarding "ptmr8t+10". tlmgr search --global --file ptmr8t gives me the "times" package which is already installed but tlmgr search --global ...
1
vote
1answer
78 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
0answers
85 views

Makefile using latexmk not syncing between ST3 and Skim

I am busy writing my dissertation. I am using Sublime Text 3 to edit the documents and Skim as the PDF viewer. There are several reasons why I am not using LaTeXing/LaTeXTools to compile: The ...
2
votes
1answer
83 views

How to use pdfx with latexmk?

Is there a way to use the really nice way to produce latex-pdfs using latexmk in combination with the packages pdfx to produce pdf-A documents? When I run following simple code on my Mac Texlive2013 ...
1
vote
0answers
108 views

AucTeX: run latexmk + viewer in one command

Question 1: I would like to have a single key combo (C-c C-a) which compiles the file (with latexmk) and displays it. This answer solves the first part. I tried adapting the answer to also call ...
0
votes
0answers
29 views

Invalid dependencies with latexmk when using includeonly, hyperref and unnumbered sections

Latexmk compiles outputs even when source files have not changed in a specific case. My use case is the following: I generate several PDFs for a single document that contain either the complete ...
3
votes
1answer
58 views

latexmk with xelatex xdv mode

I want to know how to use latexmk with xelatex and tell it to write to xdv file a number of times until all the references are correct, then use xdvipdfmx once to generate the final output. This is ...
0
votes
0answers
154 views

Setting latexmk or arara on Windows 7 and MikTeX to be used with TeXworks [duplicate]

I am using Windows 7, MikTeX and TeXworks. I would like to set up either latexmk or arara to achieve xelatex processing continuous preview of pdf removal of intermediate file. Kindly explain ...
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 ...
3
votes
1answer
90 views

Generate .1 files from MetaUML .mp files automatically with latexmk

I'm currently creating a personal LaTeX package and base .tex document that I can use to typeset my Computer Science reports at my university. One of the features I would like to have is to make UML ...
1
vote
0answers
35 views

How to hide auxilliary files under Linux? [duplicate]

pdflatex generates a lot of files that are of no use to me but are important to pdflatex (.aux, .fls, .log, .nav, .toc etc). How can I hide these files, e.g by putting them in some other, global ...
1
vote
2answers
3k views

LaTeX Warning: There were undefined references. - path is correct

I am getting the following warnings when building my document: However, there were warnings in your LaTeX source ./100DayIntro.tex:7: LaTeX Warning: Citation `Cook2009' on page 1 undefined on ...
4
votes
0answers
68 views

Configure latexmk to recognize an old file with a new name

When the asymptote package is used, it generates Asymptote source files with sequential names. For instance, if the tex file is called foo.tex, then running LaTeX on it will generate Asymptote source ...
1
vote
1answer
904 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
1answer
116 views

tcolorbox minted library with python3 non-determinism

Later versions of the package tcolorbox allows formatting source code with its minted library (which uses the minted package). When a document is compiled, a temporary file with extension .pyg is ...
4
votes
1answer
171 views

Asymptote: globally define latexmkrc

In section 7 of the Asymptote manual is suggested that for a better use of the LaTeX integration via latexmk one need to put the file latexmkrc into the folder of its own *.tex file. However I was ...
10
votes
1answer
1k views

How to make `latexmk` run the appropriate amount of times

System: Ubuntu 13.04, Texlive2012, Emacs 24.something, I run Emacs from the terminal and not the GUI, and I have server mode on in Emacs. When compiling my latex documents, I use AucTeX in emacs to ...
4
votes
1answer
413 views

Configure Latexmk in TeXworks for automation of bibliography compilation

I've been using LaTeX for almost four years now, so one could perhaps think I would know how to do this. But I don't. I'm at a complete loss here trying to get latexmk and, eventually, BibTeX to work. ...
31
votes
5answers
4k 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 ...
2
votes
1answer
133 views

Latexmk and fontspec

I'm trying to use latexmk with XeLaTeX. When I type: latexmk.pl -xelatex -pvc -cd -auxdir=TeXAux myfile.tex it all works fine. However I would like to use switches with XeLaTeX, such as ...
4
votes
2answers
407 views

Integrating latexmk and TikZ external mode=list and make

I've been looking into using latexmk to create my documents because it automatically handles how many passes the document needs to be fully processed etc. So, for example, a simple run of latexmk -pdf ...
4
votes
0answers
102 views

Using LaTeXmk with mylatexformat

I looked at many posts about the use of latexmk, but wasn't able to find what to write in order to satisfy my requirements. Yet I'm sure it is possible, but my skills in Perl amounts to about nothing. ...
1
vote
0answers
86 views

Run a command at the end of a latexmk run

Is there a way to tell latexmk to run a certain command once it's done compiling everything? I haven't found anything in the documentation. Right now I'm using this latexmkrc: $pdflatex = 'pdflatex ...
8
votes
4answers
412 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 ...
3
votes
1answer
282 views

How to clean auxiliary files within subdirectories with latexmk

Well, the title is pretty much self-explanatory but for sake of clarity, I have latex paper with such structure: . ├── back_matter │   └── some_tex_files.tex ├── bibliography │   └── bibliography.bib ...
0
votes
0answers
56 views

Latexmk and graphicspath

I have a .tex file using graphic files that are in a subdirectory of my .tex file, and the preamble specifies this with this line: graphicspath={{Images/}} It compiles perfectly with pdflatex ...
1
vote
1answer
2k 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 ...
9
votes
1answer
1k views

How do I set up my config file to have latexmk default to making a pdf?

I can't see any situation where I would want to compile a dvi file. Therefore I'd like to have latexmk default to giving me a pdf via pdflatex, so I don't have to type -pdf every time. I've tried ...
5
votes
1answer
360 views

How to compile a document with the pstool package using the pdflatexmk script?

To use psfrag with pdflatex I use the pstool package. Using TeXShop 3.25 I can compile the two minimal working examples given in this and this answer when I use the regular LaTeX typesetter. The ...
1
vote
2answers
690 views

AUCTeX -output-directory + copy *.pdf to working directory

Part I: Could someone please give me an example of how to configure AUCTeX to use the -output-directory option? I've tried inserting -output-directory="/tmp" in a variety of ways at different ...
4
votes
2answers
862 views

How to enable --shell-escape when using pdflatexmk?

I want to use the auto-pst-pdf package and therefore I need the --shell-escape option to be enabled. I did this in my TeXShop preferences as follows: However when I use pdflatexmk (by writing % ...
0
votes
0answers
34 views

citeauthor doesn't yield author name [duplicate]

I would like to generate author citations in my text, and I have been following the information in this question. I've got my includes \usepackage[numbers, sort&compress ...
0
votes
0answers
212 views

pdflatexmk doesn't run makeglossaries for glossaries package (TeXShop, OSX)

I'm trying to get the following document to work with a single run of pdflatexmk: (I've included my entire preamble to be sure) % !TEX TS-program = pdflatexmk ...
2
votes
1answer
311 views

Set up latexmk for pdflatex in texlive

How do I set up for latexmk compilation for pdflatex in texlive? I have the following (see picture) setup for latexmk compilation for xelatex (I just found it somewhere), but I don't know what to ...
3
votes
1answer
296 views

Latexmk says the file is up-to-date, while it's not

For some reason the pdflatexmk typesetter is sometimes not recognising changes in my file and it returns: Latexmk: All targets (main.pdf) are up-to-date while the target is not up-to-date. When I ...
7
votes
1answer
327 views

Continuously compile/watch source files in ConTEXt?

Is there an equivalent to latexmk in Context? I want the script to watch my source files for changes and continuously recompile them. Here is how I would do it with latexmk: latexmk -bibtex -pdf ...
7
votes
1answer
348 views

What is the most elegant way to provide a cross-platform project with automated compilation routine?

There are many different ways to automate the compilation of a LaTeX project. I would like to start a discussion, what would be the most flexible and elegant and omnipotent way to provide a project ...
19
votes
7answers
4k 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
230 views

xelatex vs. xelatexmk compilation – what’s the difference?

I'm using TeX Live 2012 in a Windows environment. I used to compile with xelatexmk, which isn't included in TeX Live's "Processing tools". When I wanted to switch from LaTeX to XeLaTeX, I read ...