-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error in document with BibTeX using ‘latexmk’ recipe #1137
Comments
I cannot reproduce the problem. It probably has to do with your
is surprising. |
I’m running The MacTeX-2018 Distribution installed via the Homebrew Cask. I didn’t do anything fancy in configuration—neither in MacTeX nor in VS Code/LaTeX-Workshop. Can you suggest where I should start investigating? |
What is your version of
|
$ latexmk --version
Latexmk, John Collins, 17 Jan. 2018. Version 4.55
$ pwd # Note that in macOS ‘/tmp’ and ‘/private/tmp’ are synonyms
/tmp/bug-report
$ ls
bibliography.bib main.tex |
I have |
Good call. I updated to But it’d be better if LaTeX-Workshop worked out of the box with a fresh MacTeX installation. It seems like a minor modification to the default recipe to invoke |
@leafac I somehow share your feeling on this. Actually, the behaviour of |
@jlelong it really seems that way, since in the original change I tested with |
@James-Yu Looking at this, I have the impression that setting
What do you think? |
I am suffering the same issue and my latexmk version is also 4.55. The compiler says
|
Thanks for the fix and for this project in general—it’s great! |
This fix unfortunately broke latexmk building with Docker. Before, it would do the right thing and place all output in the current working directory which in the container is the |
Nice catch @SamP20 can you please confirm if the above fix does its job? |
Describe the bug
Build error in document with BibTeX using latexmk recipe.
To Reproduce
Steps to reproduce the behavior:
Create a simple LaTeX project using BibTex:
main.tex
bibliography.bib
Open
main.tex
in VS Code, go to the TeX menu on the left, and then Build LaTeX project > Recipe: latexmk.Expected behavior
Compilation should succeed.
Logs
LaTeX Workshop Output
LaTeX Compiler Output
Developer Tools Console
Nothing suspicious.Desktop (please complete the following information):
Additional context
I can reproduce the problem by going to the command line and running the command that LaTeX-Workshop runs:
$ latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=. /private/tmp/bug-report/main
But if I change
-outdir=.
to the absolute path, then compilation succeeds:$ latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=/private/tmp/bug-report /private/tmp/bug-report/main
The other build recipe (pdflatex -> bibtex -> pdflatex*2) works.
The text was updated successfully, but these errors were encountered: