Generating BibTeX Keys

  Previous Topic Next topic  

A BibTeX key is a unique identifier for a reference in a BibTeX file. To cite a reference in a TeX document, you insert the BibTeX key for the reference in the correct place in the document. When the document is converted to its final output format, the BibTeX keys are replaced with the correct, formatted citations.


Suppose your BibTeX file contains this entry:

author = {Andretta, Susie},
year = {2005},
title = {Information literacy},
publisher = {Chandos},
address = {Oxford},

In your TeX document, you could insert the following citation command:


When the document is converted, the following entry might be made in the bibliography:

Andretta, Susie (2005): Information literacy. Oxford: Chandos.

Generating a BibTeX Key in Citavi

1.On the Tools menu, click Options. On the General tab, select the TeX  support checkbox and click OK.

2.Select which references Citavi should generate BibTeX keys for.

3.Switch to a reference. Edit the BibTeX key if needed.

Customizing BibTeX Key Templates

1.On the Tools menu, click Options. On the General tab, click Customize next to the selected TeX support checkbox.

2.To change the default template for all reference types, click Default.

3.Make the changes you want. You can change what fields are used to build the key, how they are formatted, the punctuation used, and conditional exceptions. If you want the punctuation between two elements to be hidden if an element is empty, insert the not sign (¬) before the punctuation by typing Alt+0172.

4.If you need certain reference types to have special BibTeX keys, you can define additional templates for each of them. Click Add template for reference type and then configure the template.

5.When you are finished making changes, click OK. Citavi asks what you want to do with existing BibTeX keys.

Note: Citavi does not automatically update BibTeX keys in existing references to ensure that BibTeX keys already used in TeX documents continue to be resolvable. If you want to generate BibTeX keys again, you can always click BibTeX key on the Reference tab.


Additional BibTeX Key Options

You can set additional options for your BibTeX keys under Tools > Options > General. Next to the selected TeX support checkbox, click Customize and then the Tools menu:

Select Normalize keys to ensure that only characters in the ANSI character set are used, removing special characters such as umlauts: Münchhausen 1796 becomes Munchhausen.1796.

Select Replace BibTeX keys when importing to replace the BibTeX keys already present when importing BibTeX files with fresh keys generated according to the current template.

Click Restore default to restore the template to name.year.

Click Remove characters to define characters that should never appear in a BibTeX key.

URL for this page: (Last updated: 18.08.2011 14:08:16)
Still have questions? Please visit our Service Portal where you can search our Knowledge Base and send questions to the Citavi team.