Open evandrocoan opened 7 years ago
I had a look at this and its not just pdflatex
that needs be called a few times. It actually only works if bibtex
is also called again. Basically, the minimal sequence that seems to compile this example is:
pdflatex
bibtex
pdflatex
bibtex
pdflatex
pdflatex
This is why the second run clears things up.
If it were merely a question of adding some pdflatex
runs on the end, we could probably do it, but I think this example is just too complex to be adequately captured by the basic
builder which, as its name suggests, is intended to run a basic build sequence. I'd recommend using something like latexmk
or the script
builder to compile this document.
latexmk
handles the document just fine in my testing, and is used by the traditional
builder on TeXLive. If you're using MiKTeX, you'll have to install the latexmk
package and tweak the command
builder setting to look like this:
"builder_settings": {
"command": ["latexmk", "-cd", "-f", "-%E", "-interaction=nonstopmode", "-synctex=1"]
}
And then use the traditional
builder.
To use the script
builder, you need this in your builder settings:
"builder_settings": {
"windows": { // or "linux" or "osx"
"script_commands":
[
"pdflatex -interaction=nonstopmode -synctex=1",
"bibtex",
"pdflatex -interaction=nonstopmode -synctex=1",
"bibtex",
"pdflatex -interaction=nonstopmode -synctex=1",
"pdflatex -interaction=nonstopmode -synctex=1"
],
}
}
When a bibliography has a
\cite{}
to another bibliography,pdflatex
needs to be run 4/5 times, instead of 3 times. For the following document example, if we call LatexTools to build it:It will show the warnings:
We need to call Latex Tools more one time, then all the references are resolved: