{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

0
votes
1answer
24 views

How can I run a latexmk cleanup for subdirectory?

I'm writing a command line tool that does some work with latexmk. I specify a specific directory with output-directory. However when I run latexmk -c subdirectory nothing happens. Can I do that ...
4
votes
0answers
150 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
203 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
138 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
20 views

use latexmk with jobname option for compilation and rubber for log parsing

I use following command for compiling, so all files created during compilation is stored under build_files: latexmk -pdf -interaction=nonstopmode -jobname=./build_files/thesis thesis.tex Here I've ...
2
votes
0answers
28 views

Installer script for a modern version of latexmk

(Ubuntu 12.04) I installed latexmk with sudo apt-get install latexmk and got version 4.24, which apparently dates back to 2011. It doesn't have some nice features like -aux-directory that I'd like. ...
2
votes
0answers
57 views

LatexMK incorrectly tries to build files used by minted

I am using LatexMK from a Makefile with the -use-make option. A really great tool to automatically compile my document while making sure all images are up-to-date. When trying to compile a document ...
2
votes
0answers
27 views

Is it possible to configure the way latexmk know there is not known cross-reference

When there is a reference not defined in a .tex file, latexmk can find it and send a final message like Reference `B-U:identification' on page 22 undefined on input line 547 It seems latexmk ...
2
votes
0answers
154 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
92 views

Segmentation fault: lualatex -recorder

I installed a 64bit MikTeX on Windows 10 and trying to get my tex-files compiling again. I'm using luatex as compiler together with latexmk and a simple latexmkrc file. $pdflatex = 'lualatex %O %S'; $...
1
vote
0answers
182 views

Installed package is still missing

I need MnSymbol.sty in a template I use. During the build I got this: ! LaTeX Error: File `MnSymbol.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default ...
1
vote
0answers
89 views

How to change the rules for latexmk that biber is not run before pdflatex?

I have settled with latexmk instead of the intrinsic order of commands within texstudio. This works very well. However, running makeindex and biber before pdflatex is not well advised in my case. ...
1
vote
0answers
154 views

vim + knitr + synctex + file watch + sumatrapdf (on windows)

I'm trying to get a task runner watching a directory for changes and then run the following: knit Rnw file pdflatex the resulting tex file (with bibtex) open pdf viewer and have both forward/reverse ...
1
vote
0answers
188 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
185 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 data....
1
vote
0answers
133 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 ...
1
vote
0answers
153 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
928 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
252 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
343 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
556 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
276 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
442 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 TeX-...
1
vote
0answers
185 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
10 views

Error while enforcing number citation using springer journal template

I am using a springer template to write a journal paper. There is bibtex_readme.txt file in the folder which states that: Bibliography style (spr-chicago.bst) novelties. Now, there is a ...
0
votes
0answers
15 views

Adding files to latexmk watchlist

I've set latexmk to compile whenever a source file changes, but it doesn't detect changes to feature files. Can I somehow include these in the watchlist?
0
votes
0answers
16 views

latexmk -pvc to run only if not running

I am trying to run latexmk -pvc from a vim mapping. I only want it to run if there is no current latex -pvc background task running. Is there something easier than this?: [[ $(/usr/bin/pgrep -f "...
0
votes
0answers
75 views

Latexmk and KOMA-Script tocstyle package compile errors

I'm trying to use the KOMA-Script package together with latexmk wich produces folling compile error: Latexmk: Summary of warnings: Latex failed to resolve 20 reference(s) Latexmk: applying rule '...
0
votes
0answers
39 views

Latexmk: How to Use $compiling_cmd, $success_cmd, $failure_cmd

I wish to use the following commands of Latexmk on MacVim (El Capitan): $compiling_cmd, $success_cmd, $failure_cmd. The manual gives the following examples: $compiling_cmd = "xdotool search --...
0
votes
0answers
86 views

Use epstopdf with input files in different folder

I've been looking for hours and I still can't find a suitable solution. My problem is, I have a tex file which I must compile with pdflatex and it uses pstricks, so I use epstopdf and stuff. The issue ...
0
votes
0answers
46 views

LaTeXmk Error - Changing directory

I'm using Atom 1.3.3 with LaTeX-Plus. When suddenly the following error came up. Can you please help me? I did not change any files of the project. Thank you in advance, Sebastian
0
votes
0answers
67 views

Find main.tex file in parent folder when using latexmk

I have the following file structure for my document: document ├── acronym.tex ├── bibliography.bib ├── chapters │   ├── some-chapter.tex │   └── another-chapter.tex ├── figures │   ├── some-figure....
0
votes
0answers
192 views

Latexmk - Non-existent destination files

I try to use latexmk with Texmaker. I put that in the Quick build : "C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/latexmk" -pdf %.tex | "C:/Program Files/Adobe/Reader 11.0/Acrobat/AcroRd32.exe" ...
0
votes
0answers
42 views

latexmk not copiling files

I have the following make that use latexmk to compile my latex project. It work in my personal machine but not in work machine. The files in tikz folder are not compiled. So what's the problem with my ...
0
votes
0answers
58 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
120 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
130 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 ...