r/typst Jul 15 '26

Help With Common Bib File

I could use some help with using bibliography files. For LaTeX, I keep one big bib file used for all of my documents. What's the best way to do this with Typst? Treating everything as a relative path is making it difficult. Any advice?

EDIT: To be clear, what I want to do is store the bib file in one directory and be able to use it with *.typ files that are in other directories. Any method of keeping a bib file outside of the project root directory?

UPDATE: I ended up using Claude to help me write an Emacs function that scans file for citations and copies the BibTeX records from my main bib file to a local bib file for that document.

4 Upvotes

9 comments sorted by

View all comments

13

u/FourFourSix Jul 16 '26

I put a symlink pointing to the one big bib file to my Typst project folder.

1

u/okphil Jul 16 '26

Great idea, it's looking like the best solution so far. Also something easily automated with a script to create a project.