latexrun
latexrun copied to clipboard
Fails on finding the logfile when using synctex with lualatex
When running
latexrun --latex-cmd lualatex --latex-args '-shell-escape -interaction=nonstopmode -synctex=1' --bibtex-cmd biber main.tex
latexrun is not able to find the log file and outputs
failed to extract job name from latex log
.
It is probably due to the fact, that lualatex outputs
SyncTeX written on main.synctex.gz.Transcript written on main.log.
instead of the usual line when synctex is enabled.
Using
latexrun --latex-cmd lualatex --latex-args '-shell-escape -interaction=nonstopmode' --bibtex-cmd biber main.tex
works correctly.
I noticed that now the syntax for adding extra arguments is --latex-args='--synctex=1'
I can run it, but it doesn't seem to generate the *synctex.gz
file
The file is written into the output directory (obj_dir
default latex.out
).
If you need it in the top directory for synching the pdf, pass flag -O .
.