LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

Find bib file in output folder for reference completion

Open tobiasdiez opened this issue 8 years ago • 2 comments

I have the following situation:

  1. The content of a bib file is embedded in the tex file using a filecontents environment.
  2. I build the tex file with output directory set to "Output". Thus the bib file is created upon compilation under Output\database.bib
  3. 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.

tobiasdiez avatar Oct 21 '17 04:10 tobiasdiez

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.

r-stein avatar Oct 21 '17 07:10 r-stein

This seems like something we can straight-forwardly address in find_bib_files(). It would likewise probably be useful to expand the \jobname macro.

ig0774 avatar Oct 21 '17 10:10 ig0774