Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Summary

Can I have custom citation labels while using biblatex?

Discussion

In mathematics it is not uncommon to use custom labels for referring to other books/articles. E.g., "... see [Hart, p196]." when referring to some page in Hartshorne's Algebraic Geometry.

This way of referencing in the end usually becomes a convenient mix of the 'author', 'authortitle' and 'title' citation styles. There is not really a way to predict how something is referred to. For example, the Stacks project is might be referred to as [Stacks], and Grothendiecks EGA as [EGA]. On the other hand, books with multiple authors might be labeled using the first letters of their family names (as in [KM] for Katz-Mazur).

As far as I know, having these custom labels is only possible when setting the bibliography by hand. I have not seen a way how to do this with BibTex or any of its derivatives.


Questions

I really like biblatex since it enables me to tweak lots of things concerning citation styles. I know that there is the possibility to use some custom fields in the .bib file.

It probably is possible to use one of these custom fields to define the custom citation label of the entry. Furthermore, in the biblatex stylesheets this custom field should be employed for the in-text citations as well as for the entry in the bibliography.

This leads to the following questions

  • Does anyone know of a citation style that does this?
  • Is this easy to accomplish?
  • Can anyone provide me with some code for a setup? I don't really know how to do this myself (I've only done some small tweaking of biblatex styles before).
share|improve this question

1 Answer 1

up vote 7 down vote accepted

Just use the shorthand field in your bib file. This field overrides the citation label in all standard biblatex styles. When data forming the citation label are missing you can use the fallback label field. Here's a sample document using the biblatex-examples.bib file from the documentation.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=verbose]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
\null\vfill
One of the entries by \citeauthor{kant:ku}  uses the shorthand ``KU'' \autocite{kant:ku,cms}.
The entry for \citetitle{cms} uses the label ``CMS''  \autocite{cms,kant:ku}.
\end{document}

enter image description here

Here is an excerpt from the same document in the authoryear style.

enter image description here

share|improve this answer
    
Great, that is exactly what I was looking for! Somehow I must have missed this in the manual. Or rather, I did not understand what was meant with this option. Thanks again! –  jmc Mar 24 '12 at 16:51
2  
No problem. Initially I learned more by looking at the examples. These can be found in the same folder as the manual. They're all based on the bib file I mentioned. –  Audrey Mar 24 '12 at 17:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.