How to set `latexmk` options using it with `AUCTEX`?

Similar question to that of How to set `latexmk` options using it with `polymode`? In order to compile a .tex file I can use C-c C-c (TeX-command-master)(https://elpa.gnu.org/packages/doc/auctex.ht...

Emacs Stack Exchange

RE: https://mastodon.social/@whitequark/115635167578691059

Thank you

- @joeyh for  #gitAnnex
- @matrss for maintaining #forgejoAneksajo
- @simonmic for  #hledger
- John Collins for #latexmk

and many people maintaining other #FOSS projects I rely upon

Jemand eine Idee, was da beim kompilieren mit #latexmk schief läuft? Ich bekomme immer die Fehlermeldung:
"C:\texlive\2025\bin\windows\runscript.tlu:933: command failed with exit code 12:
perl.exe c:\texlive\2025\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=u:/Schule/EFG2 u:/Schule/EFG2/Test_GSM_251009"

Wenn ich das von der Kommandozeile mache geht es

#texlatex

I just discovered #sioyek, a very fast and simple cross-platform PDF viewer that is designed around reading books or scientific papers. I auto-reloads when the file changes, so is well-suited for a #latexmk workflow. Reloading is quasi-instant and also doesn't redraw everything with this dreaded flicker like many other viewers do (looking at you #evince 😑). Right-clicking on an internal link a opens a real, scrollable subwindow preview, nice! 👍

https://github.com/ahrm/sioyek

#TeXLaTeX #PhDLife

GitHub - ahrm/sioyek: Sioyek is a PDF viewer with a focus on textbooks and research papers

Sioyek is a PDF viewer with a focus on textbooks and research papers - ahrm/sioyek

GitHub
@javierarmentia , probablemente debes validar la configuración de TexStudio para saber que parámetros de compilación usa.
Es un error común que al usar referencias bibliográficas (u otras referencias cruzadas) solo se compile una vez, porque en la primera compilación no se actualizan las referencias. Si usas #latexmk para la compilación, esta te ayuda a resolver el número adecuado de compilaciones, o a mano ejecutas varias veces.
https://mgeier.github.io/latexmk.html
Using Latexmk — homepage

After so many people were amazed by #latexmk's capabilities to auto-refresh a LaTeX document preview, check this out:

latex-lsp/texlab: An implementation of the Language Server Protocol for LaTeX https://github.com/latex-lsp/texlab?tab=readme-ov-file

I didn't think there would be a language server for TeX documents but there you go!

In #Emacs/#Eglot, you now get auto-completion of all macros that are loaded by your project, even your own. 🤯

#texlatex #lsp

GitHub - latex-lsp/texlab: An implementation of the Language Server Protocol for LaTeX

An implementation of the Language Server Protocol for LaTeX - latex-lsp/texlab

GitHub

Does anyone have a config to share for
- #TeXLaTeX editing,
- that uses #latexmk
- and #Emacs for editing *and* pdf previewing?

`latexmk` is running fine, but the previewing part is not (yet)

#latexmk is great for auto-compiling your documents.

However, it fails in some cases and I'm currently bitten by a nasty one:

- \includgraphics'ed PDF is corrupt (It's a missing, unlocked #gitAnnex / @datalad file)
- that stops biblatex from properly finishing the .bcf XML file
- *before* fetching the missing PDF (with #DataLad), latexmk runs biber on the now corrupt .bcf (fails and deletes the .bbl)
- vicious cycle repeats literally forever - latexmk is in an endless loop 🙄

#TexLaTeX

Has anyone tried to orchestrate #latexmk in #rstats via #processx? Because I'm running into trouble trying to capture stdout: https://github.com/r-lib/processx/issues/373

I can still fall back to temp files for logging or just reading the (much more verbose) log file latexmk creates anyway, buuut... yknow.

Process hangs when using pipes with `stdout`, `stderr` for `latexmk -pdf` compilation · Issue #373 · r-lib/processx

I am attempting to orchestrate and keep track of dozens of latexmk compilation processes, and noticed that these processes never finish if I attempt to capture stdout or stderr with pipes. It works...

GitHub

@isibell Guess you mean #latexmk.

latexmk --lualatex -pretex=’\newcommand\thecolor{white}' -usepretex foo.tex

You can simplify it by using config files as latexmkrc. Having a look at 'texdoc latexmk' helps a lot here.

#TeXLaTeX