{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

2
votes
1answer
27 views

latexmk option -c not working

I try to use latexmk, version: 4.39, with the -c option, but it does not give any output. \documentclass{article} \begin{document} Hello, world! \end{document} There is no output when I use latexmk ...
1
vote
0answers
39 views

latexmk will compile in Sublime Text, even though the data is missing

I've come across an odd problem. Here is what happens: I run the Sublime Text builder using ⌘-B on a .tex file. This file accesses external data from, say, data.csv. If I now delete that same ...
0
votes
0answers
13 views

Latexmk not found in TexWorks

I am trying to use Latexmk in TexWorks on OSX 10.10. I declared a new Processing tools: Name: Latexmk Program: latexmk Arguments: -e, $pdflatex='pdflatex -synctex=1', -pdf, $fullname The paths are ...
1
vote
1answer
33 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 ...
2
votes
1answer
38 views

Auctex's C-c C-c issue with latexmk

This is my Emacs information. GNU Emacs 24.4.1 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72) of 2015-02-16 I installed Auctex 11.88.2 with package-install. When I open the main tex, and ...
0
votes
0answers
19 views

How to ignore undefined references (e.g. when temporarily commenting out whole chapters)?

I'm working on a fairly large document, and compilation times are somewhat annoying. My general workflow is to use: latexmk in continuous mode to compile the document (pdflatex), and rubber-info on ...
3
votes
1answer
40 views

Using latexmk with multiple tex files in the directory

edit solution to compile : latexmk -pdf mainfile.tex I have left this example up as it might contain language used by others unfamiliar with this area :) At the very least it provides a Minimal ...
0
votes
0answers
8 views

How to add a template to my “global” latex install? [duplicate]

I'm compiling my latex via the command line using latexmk. However, I'm using a template which isn't built-in and I'd like to be able to reuse the template in the future for other documents without ...
2
votes
0answers
39 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 ...
3
votes
0answers
30 views

Latexmk ignore a file

I have a directory of .tex files that I want to build using latexmk by running latexmk in that directory. However, there is one .tex file that is included by all other files, which is not a valid ...
2
votes
1answer
74 views

Latexmk: Stop processing on pdflatex error

If my tex-files contain an error (such as an undefined control sequence), latexmk will present a prompt and ask for manual input before continuing. Now, of course it is possible to force further ...
3
votes
2answers
68 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
9 views

recognizing custom packages in latexmkrc [duplicate]

I have a file, jtc.sty, that houses all the repetitive stuff that normally goes into a latex document (usepackage statments, turning paragraph indent off, and some formatting stuff) that I include in ...
7
votes
1answer
88 views

pdfLatex exitcode when running with timeout

I'm using latexmk for compilation of my document and want to limit time for every compile cycle. In order to do it I use timeout util in following way: latexmk -f -pdf -bibtex \ -pdflatex="timeout ...
0
votes
0answers
62 views

latexmk requires two runs to finish job

I do latexmk --xelatex foo.tex to compile my job, and the program always needs another run to finish. When I run it the first time it ends saying Maximum runs of pdflatex reached without getting ...
2
votes
0answers
54 views

latexmk cd option not working

I'm using latexmk to build my latex files. The command latexmk -cd E:\work\foo.tex used to work fine until I updated my latexmk to ver 4.41 using texlive's tlmgr, and suddenly the -cd option's no ...
1
vote
1answer
123 views

How to configure latexmk to compile tmp file and then replace pdf/synctex files?

history For the reasons explained in this question How can I keep browsing my pdf with synctex at the same time as LaTeX is rebuilding it? I want to modify my latexmk settings. old configuration Up ...
1
vote
0answers
59 views

latexmk difference between linux and windows

I use Texlive and need to comple via tex>dvi>pdf using latexmk, suppress halt on error and enable synctex. The command "latexmk -cd -e \"$dvipdf =\'dvipdfm %O -o %D %S\'; $latex=\'latex %O -synctex=1 ...
5
votes
1answer
68 views

Compile a document as “draft” for the first few times and then non-draft in the final round

I'm working on a big document in which there are many images. Usually, I compile it with latexmk and it works quite well. But: with all these images it's quite slow when compiling. Is it somehow ...
0
votes
0answers
58 views

Why is something like Latexmk needed or why do we sometimes need to compile a file multiple times?

It was my intention to use a makefile or a script to built my latex files when I do a git commit. When looking up for some best practices I came upon this site a few times and was frequently ...
1
vote
0answers
326 views

latexmk and ps2pdf on Mac OS (TextMate)

I just recently came across a TeX file which is working with eps-files, so that latexmk first generates a .dvi file. The conversion to .ps also works great, but after that latexmk is not able to ...
1
vote
1answer
74 views

Message Highlight when compiling LaTeX document by latexmk

It may sound picky, but I'd like to highlight some special messages while compiling LaTeX document by latexmk. For example, these are the first few lines of screen messages when I tried to compile a ...
1
vote
1answer
165 views

latexmkrc, asymptote and subfolders on Mac OS

I just started to learn asymptote (actually because TikZ is not that great for 3D surfaces and curves on these). To set up my system i would like asymptote to work in a subdirectory in order to keep ...
2
votes
1answer
126 views

latexmk and \graphicspath

This is (imho) the same question as this but I'm going to provide more information on how to reproduce. The general problem seems to be that latexmk does not seem to work together with graphicx' ...
2
votes
1answer
119 views

latexmk -outdir with \include

I'm trying to get latexmk to compile a .tex file with external \include{...} references to a specific build directory so I don't pollute my directory tree with .aux files, etc. However, it appears ...
4
votes
1answer
255 views

Can I pass LaTeX commands to latexmk instead of a filename?

This is a follow-up to How can I automate the workflow for producing multiple versions of a document? Here is toy example of my problem. I want to automate the generation of two slightly different ...
1
vote
1answer
61 views

LaTeXTools in SublimeText: quickly open subfiles

I have started using LaTeXTools in SublimeText and think it is amazing! I am wondering if there is a convenient way to open subfiles from a master file, like I can with the Structure sidebar in ...
1
vote
0answers
68 views

Building documents with latexmk: how to do this?

I want to use latexmk to build my documents, in order to stop compiling different things all the time just to get an updated document. However, I have no clue how to do this. I am running OS-X 10.9.4. ...
1
vote
1answer
76 views

suppress output

Would it be possible to make a wrapper script, or does there exist a sequence of flags -XYZ for latexmk (looking at the manual, it appears not), so that the command behaves in the following way: ...
1
vote
0answers
183 views

Vim-LaTeX with latexmk closes .tex at compilation

Problem When I compile a .tex document with \ll and there are no changes, I get a short prompt and then get back to my document. However when there are changes, I get two other files presented and ...
1
vote
1answer
386 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 ...
3
votes
1answer
137 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
85 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
230 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: ...
2
votes
2answers
149 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 ...
2
votes
1answer
234 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 ...
3
votes
1answer
568 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
166 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
254 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
187 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
202 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
280 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
142 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 ...
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
134 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
100 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
208 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
340 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
737 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
699 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 ...