{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
23 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
25 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
17 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
13 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
63 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
38 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
61 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'; ...
0
votes
0answers
27 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
31 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
29 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
2
votes
1answer
28 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
28 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 │   ├── ...
2
votes
0answers
24 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
24 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
110 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
93 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| ...
1
vote
0answers
71 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
118 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 ...
0
votes
0answers
64 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
234 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 ...
0
votes
0answers
40 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 ...
4
votes
1answer
37 views

LaTeXmk and MusiXTeX. Or: adding commands to LaTeXmk workflow

I am working on a songbook in LaTeX using MusiXTeX. For that to work properly, I need to compile the document as follows: pdflatex songbook musixflx songbook pdflatex songbook Is there a way to ...
1
vote
0answers
82 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 ...
3
votes
1answer
54 views

Latexmk and the location of Asymptote's generated files

I am trying out Asymptote with latexmk and I would like to automate the interaction. Consider the following latex document test.tex: \documentclass{minimal} \usepackage{asymptote} ...
0
votes
1answer
43 views

Compiling Latex in Vim Results in Error

I am trying to compile the following LaTeX using vimtex continuous compiling in vim: LaTeX: \documentclass[12pt]{article} \title{Electrolysis of Water and Aqueous Solutions} \author{Carlo Abelli \\ ...
0
votes
2answers
595 views

latexmk - command not found on OS X

I've installed the MacTex bundle on my machine. When I try to run $latexmk I get a 'command not found'. I already reinstalled the latexmk bundle in TeX Live Utility. Both universal-darwin and ...
1
vote
1answer
89 views

latexmk: jobname option and clean up incompatibility?

I'm using latexmk in a Makefile to compile my document. Since I want my output filename to be different from the input filename, I use latexmk's option jobname. The problem is: it seems to be ...
1
vote
1answer
70 views

Delete Chapter, section etc.. titles from pdf body only include them in TOC

I want chapter, section, subsections in TOC but I do not want them in the pdf body as 1 title occupies entire page. I have already put the chapter names, section names etc in headers. So the only task ...
2
votes
1answer
50 views

Add to latexmk black&white output version

I want to generate a colored and a black & white version of my latex document. Is it possible to configure latexmk via a latexmkrc file to do so? Output folder should contain two pdf files. ...
5
votes
1answer
440 views

How sensible is it to use latexmk?

Until recently I always compiled my documents via the steps, pdflatex -> makeindex/biber -> pdflatex -> pdflatex (and the intermediate steps only if necessary). Latexmk does all the ...
1
vote
0answers
136 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 ...
0
votes
0answers
45 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
85 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 ...
3
votes
1answer
86 views

How can one manually add a line to the pdflatex -recorder .fls file?

I'm using a LuaLaTeX package that includes a feature that calls an external executable (i.e. something that requires -shell-escape) to generate a TeX file from a distinct source file, which is then ...
3
votes
1answer
312 views

Latexmk not using pdflatex

I have a .tex file which attempts to \includegraphics with a .pdf file. This is perfectly possible when explicitly running pdflatex but doesn't work with latexmk because latexmk runs with latex and ...
0
votes
0answers
39 views

I'm sick of typing -pdf every darn time [duplicate]

Ok, so latexmk is great. However, you either have to type -pdf or set up a file with that in it. So, on windows, where do I put that file? All the guides are for windows.
1
vote
0answers
106 views

Latexmk, gnuplot and subfolder [closed]

I tried to setup latexmk such that my gnuplot files are generated automatically. Here is what I've done: Folder/file structure: latexmkrc foo.tex graphics/plot.gp latexmk: add_cus_dep('gp', ...
3
votes
1answer
157 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
165 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
184 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 ...
2
votes
1answer
388 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
495 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
90 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
312 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 ...
6
votes
1answer
122 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
108 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
410 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
192 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 ...