{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
2answers
46 views

latexmk cannot find perl

I have installed latexmk and ActiveState Perl, which is in C:/perl/bin. I also have a .latexmkrc (<- a file with the extension .latexmkrc; I'm not sure if this is what I was supposed to do) file in ...
1
vote
1answer
30 views

pdfcomment highlight doesn't work

I am using MikTex 2.9. I would like my text to be highlighted and I would like a comment to it. But my MWE below doesnot work.PLease help \documentclass{report} \usepackage{graphicx} \usepackage[...
2
votes
0answers
85 views

How to exclude DVI files from the target list of latexmk?

I use upLaTeX, which cannot produce PDF directly, for Japanese document and latexmk for the automation of typesetting sequence. My typical .latexmkrc for upLaTeX is like this (extraction of relevant ...
5
votes
1answer
78 views

How do I repeat an included .tex file multiple times?

I would like to repeat a file in a LaTeX document multiple times: \include{probenahme/sample} \include{probenahme/sample} \include{probenahme/sample} \include{probenahme/sample} \include{probenahme/...
2
votes
1answer
72 views

How to say to latexmk to use makeindex with special parameter (-s -g)

I use makeindex routinely for a German book. A new latex package sanitize-umlaut allows now to write index terms without umlaute for example \index{Östrogene} instead of \index{Oestrogene@{Östrogene}}....
2
votes
0answers
24 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
39 views

'Package pgf Error: No shape named is known' for nodes defined in matrix [closed]

On my local system \graph is not able to recognize nodes defined \matrix \documentclass{article} % say \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds} \usetikzlibrary{...
2
votes
2answers
61 views

Which commands were executed by latexmk

Recently I've discovered latexmk if I understand correct then it can replace several commands needed to compile latex just with one command. Is it possible to show which commands were executed when I ...
1
vote
1answer
23 views

Problem with the -c option and latexmk

Let assume that I want to compile the document doc.tex with latexmk and clear the processing files. When I do latexmk -c doc.tex, it gives me the following output : Latexmk: This is Latexmk, John ...
0
votes
0answers
11 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
17 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?
1
vote
1answer
59 views

Asymptote (XeLaTeX): Use custom-defined colors/Call drawing functions from external file

I'm quite new to Asymptote, although it's great to manipulate vector graphics within LaTeX. Specifically, I'm using XeLaTeX. What I'm trying to do is to change the color of a vector graphic to ...
2
votes
1answer
249 views

How to fix biblatex warning about deprecated option

When I compile my document using latexmk main.tex I get the following warning Package biblatex Warning: 'firstinits' option is deprecated, use 'giveninits' instead. How do I get rid of this? I'...
0
votes
2answers
47 views

Force LatexTools to output pdf only after complete compilation

With one of the recent updates, LatexTools now supports Okular under Linux. This makes it eventually useful for my setup of writing tools. The fact that LatexTools provides the pdf viewer with the ...
3
votes
1answer
95 views

latexmk reaches maximum runs when including new glossaries entries

I have a problem with latexmk and the glossaries package. I have a large `scrbook' document organised with a main file and several chapter files. In my preamble I have a large quantity of acronyms ...
0
votes
0answers
17 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 "...
1
vote
1answer
71 views

XeTeX hangs on article documentclass, while LaTeX-Mk with XeLaTeX works perfectly

I have this code: \documentclass{article} \usepackage{fontspec} \begin{document} \thispagestyle{empty} \pagestyle{empty} äätewää--llll \end{document} XeTeX xetex xetex-acutex.tex produces: (...
2
votes
1answer
133 views

Install latex to work with sublime text 3 on windows

I have been using 'sublime text 3' for a long time and I like it very much. It has limited support for LaTeX. Since I have to write reports in LaTeX I want to do it in 'sublime'. I installed '...
1
vote
2answers
56 views

latexmk: how to continuously update the output pdf but not invoking the pdf viewer?

latexmk -pvc can compile tex files continuously and update the pdf viewer, but how can I stop it from invoking the pdf viewer automatically?
1
vote
0answers
23 views

Latex compilation in Sublime Text [duplicate]

Working in Sublime Text in a Latex Document, i wondered. Is there any way to compile my document look on the right side of my screen? Like Texstudio.
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. ...
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 ...
2
votes
0answers
65 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 ...
1
vote
1answer
42 views

Post compile hook latexmk

Is there something like a "post compile hook" for latexmk. I.e. I want to configure latexmk to run some scripts automatically after a compilation process is completed.
3
votes
1answer
52 views

latexmk -xelatex produces texfile with empty page instead of unicode characters

the code: \documentclass[12pt]{article} \begin{document} ääßöüü \end{document} with the options: latexmk -xelatex test.tex results in a empty page. what is wrong here? logs: Latexmk: This is ...
1
vote
1answer
118 views

Latexmk Command not found after MacOS El Capitan Upgrade

I recently upgraded to El Capitan on my mac, and as a result, terminal no longer recognizes the command "latexmk". For example, I get the following from terminal: Tylers-MacBook-Pro:Dropbox ...
0
votes
2answers
219 views

TeXstudio + Latexmk won't compile (with OS X): “Error: Could not start command: …”

UPDATE: John reported the bug in the TeXstudio forum, and they fixed it. The development version TeXstudio 2.10.9 (hg 5929:7315f2e5eed3) works, when you change the Latexmk command to "latexmk -pdf -...
3
votes
1answer
51 views

copy pdf and .synctex.gz to working directory with latexmk, works on windows, not on os x

I have a problem with latexmk on my Mac. I'm using emacs as my latex editor, and have configured it to use latexmk. I have specified an output directory, but for synctex to work I need the pdf and ....
4
votes
1answer
381 views

Malformed bcf file not recreated by latexmk after error

I'm using latexmk with pdflatex to compile my thesis, with biblatex for references and biber as backend. It compiles fine and creates correct PDF output. If a change to the source files introduces an ...
1
vote
1answer
52 views

latexmk ignore embedded file

I have a TeX file with an embedded file from the command \embedfile{\jobname.org}. I'd like to stop latexmk from running when the embedded file changes. There is no official option for latexmk to ...
1
vote
1answer
159 views

How does latexmk find package files?

I installed TexLive on Arch Linux together with texlive-latexextra in order to use the package todonotes, but latexmk does not find the todonotes.sty file. This is what it prints: $ latexmk -- pdf ...
0
votes
0answers
80 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
41 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 --...
2
votes
1answer
27 views

latexmk drops into pdfTex shell or something

I keep on reading articles on how to use latexmk, but when I try, the command never just exits. It always drops me into some kind of shell like this $ latexmk -pdf latex-preview.tex Latexmk: This is ...
1
vote
1answer
108 views

Biblatex remakes bcf and bbl files despite no change to bib files

Any change to my project tex files, even those that do not involve bib files or citations, result in biblatex recompiling the bcf and bbl files. How to prevent this behavior in order to save time ...
2
votes
2answers
62 views

Compiler-style output for latex errors

I am a programmer who is used to using command line tools to compile source code. One of the must-have features of these compilers is the ability to tell programmers where their errors are so they ...
1
vote
0answers
99 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
94 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
1answer
53 views

Adding custom build step to latexmk sequence

I wonder if I can run, say, a shell script before actually starting latexmk routine? I've found compiling_cmd, but it doesn't seem to work for me. I can write custom shell script to call anything ...
0
votes
0answers
51 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
1
vote
1answer
59 views

Make utility deletes PDF when Ctrl-C'ing out of continuous preview

I am using a Makefile together with the latexmk utility to build PDFs from LaTeX files. My question is at the bottom. Here is some background: The relevant parts of my Makefile are the following: ...
0
votes
0answers
79 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....
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 ...
0
votes
1answer
31 views

thumbpdf support for latexmk

I would like to use thumbpdf in my document and latexmk as build system. When I compile my document, I get following output: Latexmk: Missing input file: 'document.tpt' from line 'Package ...
0
votes
0answers
203 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" ...
1
vote
1answer
161 views

XeLaTex, Biber, XeLaTeX mac terminal mactex2015

Want to compile with terminal. Currently options that work in texmaker are "/usr/local/texlive/2015/bin/x86_64-darwin/xelatex" -interaction=nonstopmode %.tex| "/usr/local/texlive/2015/bin/x86_64-...
1
vote
0answers
193 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
2answers
280 views

latexmk says fontspec/Path is unknown

I have the following document, which uses fonts stored in a fonts/ directory (specifically several subdirectories of fonts/), as well as defined font subfamilies. I'm trying to compile it into a PDF ...
1
vote
0answers
94 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. ...
5
votes
1answer
366 views

How to know if a LaTeX file needs another compilation pass

When preparing a document some LaTeX files need more than one compilation pass. This is for instance the case when the file is using \tableofcontents, \ref, or bibliography file (in which case a call ...