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.

I have several sources in my reference list that I need to abbreviate for citing them (e.g. (IEA 2005)). I do this with biblatex and {shortauthor}, which works great. Still, how can I show the abbreviation also in the reference list, making it look something like:

IEA (2005): International Energy Agency. World Energy Outlook 2005....

or maybe even better:

IEA - International Energy Agency (2005): World Energy Outlook 2005....

instead of:

International Energy Agency (2005). World Energy Outlook 2005....

share|improve this question
    
Please provide a minimal example. –  Marco Daniel Mar 9 '12 at 13:54
    
Which bibliography style are you using? –  ienissei Mar 9 '12 at 14:00
    
domwass answer is already perfect, thank you guys! –  Ben Mar 9 '12 at 14:22
add comment

1 Answer

You could redefine the bibmacro begentry:

\documentclass[ngerman]{scrartcl}
\listfiles
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{iea,
author = {{International Energy Agency}},
title = {World Energy Outlook},
shortauthor = {IEA},
date = {2005}
}
\end{filecontents}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel,csquotes}

\usepackage[
    style=authoryear,
  backend=biber
]{biblatex}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\renewbibmacro*{begentry}{%
    \ifnameundef{shortauthor}
        {}
        {\printnames{shortauthor}%
         \addspace\textendash\space}}
\begin{document}
\cite{companion,iea}

\printbibliography
\end{document}

enter image description here

share|improve this answer
    
Sir, this does not only work perfectly well, you were also incredibly fast! Thank you very, very much! –  Ben Mar 9 '12 at 14:21
4  
Might want to change the sorting scheme as well. The same problem but with shorthand was covered in a previous question. –  Audrey Mar 9 '12 at 14:29
1  
@Ben, if this solves your problem, please consider to accept my answer (this is not the same as upvoting). –  domwass Mar 9 '12 at 14:35
    
@domwass I have used your solution together with tex.stackexchange.com/q/17905/4483 Now I have a follow-up question: how can I make the shortauthor being replaced by a dash, when multiple entries occur? –  Paul Feb 19 at 18:35
add comment

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.