{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

1
vote
0answers
31 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
31 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 ...
0
votes
0answers
14 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 ...
1
vote
0answers
50 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 ...
3
votes
1answer
35 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
125 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 ...
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 ...
3
votes
1answer
70 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 ...
4
votes
0answers
55 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 ...
4
votes
1answer
84 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
91 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 ...
4
votes
1answer
238 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. ...
4
votes
2answers
258 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 ...
1
vote
2answers
2k 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
84 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
67 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 ...
0
votes
0answers
42 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 ...
2
votes
1answer
99 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 ...
8
votes
1answer
314 views

Configuring latexmk to use a preprocessor

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
186 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 ...
5
votes
1answer
226 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 ...
4
votes
2answers
499 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
163 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 ...
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 ...
2
votes
1answer
252 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 ...
7
votes
1answer
286 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 ...
3
votes
1answer
220 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 ...
5
votes
1answer
370 views

can't get latexmk to work in TeXShop

I'm trying to add a glossary to my book. I wanted to use latexmk to execute makeglossaries for me. I'm using TeXShop on my Mac. So I went to the TeX Live Utility and activated the latexmk package. ...
3
votes
1answer
409 views

TikZ: compiling a standalone picture

I am not sure if this is recreate-able through a MWE. Whenever I compile a standalone TikZ picture, it compiles all my standalone figures in the same folder. I am using Ubuntu 13.04 and Emacs with ...
4
votes
1answer
740 views

Emacs and latexmk setup for --shell-escape

If I want --shell-escape, do I just need to add it to my .latexmkrc file as $pdf_mode = 1; $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode %O %S -file-line-error -synctex=1'; ...
8
votes
1answer
816 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 ...
6
votes
2answers
335 views

Make latexmk ignore errors and finish compiling

I like to use latexmk in command line this way: latexmk -pvc -pdf -xelatex foo.tex In the event of an error in the translation, I have to manually terminate the compilation in the command line (the ...
5
votes
1answer
128 views

Recompile main LaTeX document with latexmk when an associated m4 circuit macro file changed?

I've a main LaTeX document with an associated \input{file} in it. This file is generated by the combination of the m4 macro processor and dpic (m4 file.m4 | dpic > file.tex) in order to take the ...
10
votes
1answer
890 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 ...
0
votes
1answer
98 views

latexmk pointing to a line of code with an error that I don't see [closed]

When trying to compile my code, latexmk keeps hitting me with an undefined control sequences. I have checked above, below, and the line it says is causing the issue, but I don't see anything wrong. ...
3
votes
1answer
2k views

Perl Interpreter could not be found [duplicate]

I downloaded MikTeX and got TeXworks. I try to follow the manual and create an example document. But I get an error message in the "Console output" window: "Latexmk.exe: The Perl intetpreter could not ...
1
vote
2answers
600 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 ...
5
votes
1answer
396 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 ...
0
votes
0answers
34 views

latexmk: generated tex file (via custom add_cus_dep) not found in first pass [duplicate]

I have a latexmk-based project that uses some generated tex files included via \input. I'm generating these files using a latexmkrc file. # latexmkrc $cleanup_includes_cusdep_generated=1; ...
3
votes
0answers
535 views

Problem with un-clear error messages (using LaTeXmk[fls file] and XeLaTeX[bad file descriptor]) [closed]

More or less out of the blue, I've gotten the following: xelatex: Bad file descriptor Latexmk: fls file doesn't appear to have been made I've no clue about the first and the second is confusing in ...
6
votes
1answer
206 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 ...
1
vote
1answer
416 views

pdflatexmk compiles \glossaries fine but neglects \glsaddall

I'm using TeXShop and the pdflatexmk script. When I link at least one entry of the glossary with \gls{label} the glossary compiles fine and all works well (working code example). However I want to use ...
5
votes
1answer
228 views

exceltex dependencies in latexmk

I'm working on getting exceltex and latexmk communicating by adding custom dependencies to .latexmkrc. As far as I understand, exceltex works by writing an entry for each \inctab/inccell command to ...
10
votes
1answer
1k 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 ...
3
votes
2answers
549 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 ...
10
votes
3answers
744 views

Most efficient method to strip all of the LaTeX code from a document?

Can some people please give me some suggestions for the most efficient method to strip all of the LaTeX code from a document? The best method that comes to my mind, which I have no clue about how to ...
0
votes
1answer
175 views

texlatexmk and mVersion problem

I've just run into a problem with mVersion and by extension latexmk. As users of mVersion know, it updates a file version.dat with each run of the pdf/xe/lua/whatever engine. Until I reached the point ...
3
votes
1answer
63 views

Command line equivalent of “$preview_mode = 1”?

I'm setting up variants of running the latexmk command, and need some help writing a command line that will be used whenever I do not want to use the .latexmkrc file (i.e., -norc). On Mac, it is ...
4
votes
1answer
148 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 ...
7
votes
1answer
280 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 ...