mathiasfrohlich / vscode-LaTeXCompile

An Visual Studio Code Extension, that compiles .tex to .pdf at location
MIT License
24 stars 10 forks source link

bibtex compile #22

Open finalion opened 7 years ago

finalion commented 7 years ago

How can I set the bibtex compile command? Now I am just using the console to execute the commands and generate the references.

zdyang commented 7 years ago

I have the same problem of failing to compiling a bib file.

We may be able to specific a whole pipeline instead of just a compiler in "latexCompile.compiler".

This feature may be similar to the customized build in the "latextools" plugin of sublime.

A pipeline would look like: latex -> bibtex -> latex -> latex (For now, I perform the second step manually.)

"latexCompile.compiler": "script",

"script": [ 
"xelatex -synctex=1 -interaction=nonstopmode", 
"bibtex", 
"xelatex -synctex=1 -interaction=nonstopmode", 
"xelatex -synctex=1 -interaction=nonstopmode" 
]
mzhaox commented 7 years ago

@zdyang, @finalion Could you try out the pull request and provide feedback? It first compiles the document, and if there are undefined citations, it runs "bibtex -> latex -> latex". Otherwise, it stops. In both cases, it opens the document for viewing after all compilation is complete.