Closed BaumiCoder closed 4 months ago
Use the recipe latexmk (latemxkrc)
instead.
To set the default recipe see https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-workshoplatexrecipedefault
Use the recipe
latexmk (latemxkrc)
instead. To set the default recipe see https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-workshoplatexrecipedefault
Right, that works, but is that a solution or only a workaround? The most tools are named as the compiler, but calls them over latexmk. For example:
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
So why the tool latexmk
is not called pdflatex
? The naming and behavior contradict each other.
And why there is a separate latexmk (latemxkrc)
even necessary? How could be there a reason to ignore user and project settings?
Pre-checks*
Environment*
Operating System: Linux Mint 21.3 Virginia 64-bit
Visual Studio Code Version: Version: 1.87.2
LaTeX Workshop Version: 9.19.1
TeX Distribution Version: TeX 3.141592653 (TeX Live 2024)
I am using VSCodium whose version is:
The Issue*
The default latexmk
tool
enforce the compilerpdflatex
. This overwrites settings from the.latexmkrc
file.Reproduction Steps
.latexmkrc
with this content:latexmk
.latexmk
and should be triggered by file modifications.Expected Behavior
Settings from the
.latexmkrc
file is used, when I uselatexmk
.Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?
The settings for the tools latexmk has an
-pdf
:Manual page for this option:
But also other sources suggest
-pdf
to make sure to get a pdf file.