Questions tagged [latexmk]

37 questions
72
votes
4 answers

Don't make me manually abort a LaTeX compile when there's an error

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you're working on a document you'll end up with errors and then latex will panic and wait for user input before continuing. …
dreeves
  • 26,430
  • 45
  • 154
  • 229
32
votes
5 answers

Compile XeLaTeX tex file with latexmk

How can one compile a XeLaTeX tex document using latexmk on Mac OS X? At present I am running latexmk job.tex and getting an error: ! ******************************************** * XeTeX is required to compile this document. * Sorry! …
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
26
votes
3 answers

How to call latexmk in emacs, and jump to next-error

I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error, which is typically called with C-x `, and jumps to the next LaTeX error in the document. I would like to call latexmk either…
Frank
  • 64,140
  • 93
  • 237
  • 324
24
votes
2 answers

Is there a LaTeX command that will log to the output/error console?

I have created a LaTeX \todo{} command which outputs todo notes in the margin: \newcommand\todo[1]{\marginpar{#1}} However, I'd really like to output a list of all my todo notes to the output console. I had written a trivial python script to parse…
kibibu
  • 6,115
  • 1
  • 35
  • 41
16
votes
3 answers

How do I bind latexmk to one key in Emacs and have it show errors if there are any

I'm using AUCTeX and I would like to bind a key, e.g. C-0, that does the following: Saves the active file without prompting me. Runs latexmk on the active file without prompting me. Shows me errors if latexmk encounters any by . My problem is not…
N.N.
  • 8,336
  • 12
  • 54
  • 94
10
votes
2 answers

Emacs latexmk function throws me into an empty buffer

This is a follow up to How do I bind latexmk to one key in Emacs and have it show errors if there are any. I'm using a function in Emacs to compile LaTeX documents with latexmk but it does not behave exactly as I want. The function I use is one…
N.N.
  • 8,336
  • 12
  • 54
  • 94
7
votes
2 answers

How to hide extra/auxiliary files generated by pdflatex in Linux

I have seen answers to this similar question which suggest using latexmk -c or pdflatex -aux-directory=/some/temp/dir . I prefer the latter because you can create a subdirectory without having to remove and generate files…
rasul
  • 1,009
  • 9
  • 14
4
votes
2 answers

How can I force sphinx to end a chapter when making a pdf?

I'm using sphinx, hosted on https://readthedocs.org , to generate documentation in both HTML and PDF formats. The HTML works fine. The PDF also builds successfully, but has a problem with nesting: I would like each of the top-level .rst documents,…
jez
  • 14,867
  • 5
  • 37
  • 64
3
votes
0 answers

Latexmk with xelatex: xdvipdfmx cannot convert the resulting xdv file to pdf

I'm trying to compile a file using latexmk and xelatex, but for the life of me I can't make it work. I honestly have no idea what's going on. I'm using Latexmk Version 4.55 on Ubuntu 16.04 and XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017)…
Vanligvodka
  • 71
  • 1
  • 6
3
votes
2 answers

Font errors with pdfLaTeX microtype package

On Ubuntu 10.4LTS I'm trying to use the microtype package in a memoir class of document, for example like this: \usepackage[final,expansion=true]{microtype} However, when I attempt to compile this (with rubber, latexmk or others) I get an error…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
3
votes
1 answer

One-shot command to knit and latexmk under Emacs + AUCtex

I want to knit AND latexmk Knitr documents using one AUCtex command. I don't know how to code in lisp, and web search didn't turn up anything like this. I have something close. The extension of the file needs to be changed for latexmk. Any help will…
Sang
  • 535
  • 5
  • 14
3
votes
2 answers

latexmk - running bash command to stop Dropbox syncing

I am using latexmk to compile my LaTeX thesis. I keep the thesis on my Dropbox, and as the dozens-to-hundreds of .aux and associated files are created, Dropbox indexing induces a significant overhead. I thus want to insert the following bash script…
arnab
  • 41
  • 5
3
votes
1 answer

How to test if the current file has changed in elisp compatible with latexmk

I am using the following function to run latexmk on my latex-file in emacs: (defun my-run-latex () (interactive) (if (buffer-modified-p) (progn (setq TeX-save-query nil) (TeX-save-document (TeX-master-file)) …
student
  • 1,636
  • 3
  • 29
  • 53
2
votes
1 answer

Recursively execute latexmk -c on folders

I'd like to execute the command latexmk -c on all of the directories inside a directory, e.g., . ./test-dir The effect is to remove all of the auxiliary files created curing latex compilation. I've tried using the find command to tell me about the…
Bernhard
  • 151
  • 5
2
votes
1 answer

python - latexmk: error: no such option: -d

I am getting an error when I want to run a python script: The error is following one: The code is given below: #!/usr/bin/python import subprocess code_dir = "code" title = "Stanford ACM-ICPC Team Notebook" def get_sections(): sections = [] …
1
2 3