Latex-workshop: LATEX toolchain terminated with error

Created on 25 Nov 2017  路  2Comments  路  Source: James-Yu/LaTeX-Workshop

Description


Compile a .tex file with an error discribed above. Texlive is properly installed. However, correct pdf is available. If I use the default setting, there will be no error.

How to reproduce

  1. Open a .tex file
  2. Press ctrl+shift+p
  3. Search for Build LaTeX project and hit enter.

Expected behavior


Creat a pdf file with no error.

Actual behavior


LATEX toolchain terminated with error with correct pdf file available.

Log messages


[18:42:00] Found root file from active editor: c:UsersthinkDocumentstemplatetemplate.tex
[18:42:00] Root file remains unchanged from: c:UsersthinkDocumentstemplatetemplate.tex.
[18:42:02] BUILD command invoked.
[18:42:02] Found root file from active editor: c:UsersthinkDocumentstemplatetemplate.tex
[18:42:02] Root file remains unchanged from: c:UsersthinkDocumentstemplatetemplate.tex.
[18:42:02] Building root file: c:UsersthinkDocumentstemplatetemplate.tex
[18:42:02] Build root file c:UsersthinkDocumentstemplatetemplate.tex
[18:42:02] Toolchain step 1: pdflatex, -synctex=1,-interaction=nonstopmode,-file-line-error,c:UsersthinkDocumentstemplatetemplate
[18:42:02] LaTeX log parsed with 0 messages.
[18:42:02] Toolchain step 2: bibtex, template
[18:42:03] Toolchain returns with error: 2/null.


LaTeX Workshop Output


Developer Tools Console

Additional Information

Most helpful comment

It also occurs when there is no bib file in the project.
For most cases I have set the default building procedure to XeLaTeX -> BibTeX -> XeLaTeX -> XeLaTeX
A bib file is not a must. This should not be treated as an error!

All 2 comments

There are errors in your bib file.

It also occurs when there is no bib file in the project.
For most cases I have set the default building procedure to XeLaTeX -> BibTeX -> XeLaTeX -> XeLaTeX
A bib file is not a must. This should not be treated as an error!

Was this page helpful?
0 / 5 - 0 ratings