{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
1answer
54 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 ...
4
votes
0answers
104 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
0answers
148 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. ...
3
votes
0answers
48 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
36 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
0answers
60 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
0answers
25 views

in texworks under windows, latexmk hangs

I have a windows 8 installation of texworks. Texlive is located at: c:\bin\texlive\2014\bin\win32 When I run the command: latexmk -pdf $fullname (see previous question) texworks gives the ...
1
vote
0answers
60 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 ...
1
vote
0answers
66 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 ...
1
vote
0answers
393 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
0answers
75 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
0answers
196 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
0answers
264 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: ...
1
vote
0answers
194 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 ...
1
vote
0answers
296 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 ...
1
vote
0answers
118 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
29 views

latexmk compiling the wrong file in texworks

I added the tool latexmk with the argument -pdf as shown in the screenshot below. However, when it compiles, it is building the wrong file. I assume there should be a parameter in here to pass in the ...
0
votes
0answers
22 views

LatexMK in DVI Mode does not import PNG

LatexMK doesn't import PNG File(running in DVI Mode) as it cannot find bounding box. As solution's I tried the following: I found bounding box using extractbb but the bounding box is not the ...
0
votes
0answers
25 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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
74 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 ...
0
votes
0answers
62 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 ...
0
votes
0answers
417 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 ...