%OUTDIR% should be used in the default pdftlatex -> bibtex -> pdflatex -> pdflatex
recipe
#3785
-
Pre-checks*
The Missed*
The Solution*After a bit of research it turned out that only some small changes are required to the default tools. Not sure though if this is the best way to go about it. If it is though, I can turn it into a pull request. "latex-workshop.latex.recipes": [
{
"name": "pdflatex + bibtex (OUT)",
"tools": [
"pdflatexOut",
"bibtexOut",
"pdflatexOut",
"pdflatexOut"
]
},
],
"latex-workshop.latex.tools": [
{
"name": "pdflatexOut",
"command": "pdflatex",
"args": [
"-output-directory=%OUTDIR%", // tell pdflatex where the source tex is
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtexOut",
"command": "bibtex",
"args": [
"%OUTDIR%/%DOCFILE%" // tell bibtex where the source is
],
"env": {}
},
], In my project I then have:
And in
Hope this helps. Let me know if this should be a pull request for the defaults of Anything Else?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The bibtex tool does not always work well when it is not called directly from the directory containing the Note that all this is properly handled by |
Beta Was this translation helpful? Give feedback.
-
This can be solved if you set the
And for the tools,
|
Beta Was this translation helpful? Give feedback.
The bibtex tool does not always work well when it is not called directly from the directory containing the
.aux
and.bib
files. So I am not in favour of tweaking the recipe. I am converting this issue into a conversation in case anyone is interested by your solution.Note that all this is properly handled by
latexmk
, which is probably the best way to go.