LaTeXTools
LaTeXTools copied to clipboard
Find bib file in output folder for reference completion
I have the following situation:
- The content of a bib file is embedded in the tex file using a
filecontentsenvironment. - I build the tex file with output directory set to "Output". Thus the bib file is created upon compilation under
Output\database.bib - However, because of how latex works with the output directory it is enough to reference the bib file in the tex file simply as
\addbibresource{database.bib}.
That works from the tex-side but LatexTools complains that it can't find the bib file.
You can try to use the comment package and add
\begin{comment}
\addbibresource{Output/database.bib}
\end{comment}
I think we should add a possibility to write hints for LaTeXTools in the normal comments for that.
This seems like something we can straight-forwardly address in find_bib_files(). It would likewise probably be useful to expand the \jobname macro.