Skip to content

Blog Post

Improving BibTeX export from Zotero

Zotero [zoh-TAIR-oh] is a free, easy-to-use tool to help you collect, organize, cite and share your research sources. I use it as the standard solution to manage references in my scientific documents written in LaTeX.

Research & Academic

Zotero [zoh-TAIR-oh] is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. I use it as the standard solution to manage references in my scientific documents written in LaTeX. Once I have my references in the Zotero library, I can easily sort them into folders and export them directly to BiBTex format. To use the default BiBTex translator (you will find it inside Zotero Installation Folder/translators/BiBTex.js), I normally do the following hacks:

Change cite key format: To export a short format of cited keys, including only the author name and year, I change the line:

var citeKeyFormat = "%a_%t_%y";

To this:

var citeKeyFormat = "%a%y";

Export special characters correctly:

Zotero Preferences dialog, Export tab, with the character encoding options highlightedBecause of the fact that the LaTeX compiler could not recognize special characters, like (ñ), even though Zotero output them into the BibTeX file, you should use the suitable character endoding on export process in order to write it as "\~{n}". To this end, Western character encoding is the most appropriate. Go to Export Options, and check the box Display character encoding option on export. Then from the dropdown menu shows up in the export dialog you should pick Western character encoding. See the image (Windows case, same on Linux systems).

You can download BiBTex.js translator with some other minor modifications, including also the aforementioned changes.

Share LinkedIn

Keep reading

Related articles

Searching...