benbrastmckie / .config

NeoVim configuration optimized for writing in LaTeX
318 stars 251 forks source link

Finding .bib library #105

Closed tinyCatzilla closed 1 year ago

tinyCatzilla commented 1 year ago

EDIT: After posting this, I realized in the compiler issue that I surrounded my path in quotes, which biblatex does automatically. Changing this solved the issue. Though, I'm still curious how you source your bibliography without any preamble.


I followed your instructions on youtube to integrate Zotero with my nvim workflow, but I am having issues with the actual citations in .tex

My telescope extension accurately sources .bib from my Zotero database, but I'm not quite sure how to source a .bib file in latex globally to generate my references list. Any assistance would be appreciated.

SCR-20230823-qdnp

benbrastmckie commented 1 year ago

I'm away from my computer but if you have a look at

https://github.com/benbrastmckie/.config/blob/master/nvim/templates/PhilPaper.tex

Look at the very end.

tinyCatzilla commented 1 year ago

FINAL EDIT: Okay, I solved it once and for all. The solution was to nuke all auxiliary latex files lol. Not sure why, but seems like old citation caches might have been causing conflicts. Strange, but behavior is all normal now.


So sorry, but I just can't seem to replicate this. I used your natbib preamble and your bibliography sourcing that you kindly linked. I then tried placing the texmf/bibtex/ folder into both $HOME and $HOME/Library, just in case, with Phil_Review.bst and Zotero.bib files in bst and bib folders respectively. Finally, I ran :VimtexClearCache kspewhich before compile - no dice.

For what it's worth, my .tex is stored in a subdirectory nested deeper than either $HOME or Library, $HOME\work\ to be specific. The only way I can seem to get my document to find the Zotero bibliography is to use the biblatex package and source an absolute filepath. Which is fine, but unexpected behavior after following your integration.

Additionally, checking the value of TEXMFHOME suggests that the .bib files should be found. SCR-20230824-kkbn

benbrastmckie commented 1 year ago

That's great! Glad you got it to work :)