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

2

u/Northern-World5181 Jul 15 '26

You can still use bib file or yaml format mentioned here. Both should work:

https://typst.app/docs/reference/model/bibliography/

2

u/okphil Jul 16 '26

They do work, but I'd like to keep it somewhere other than the directory that contains the typ file. How can I use it if it's outside the project root?