Generalformatting author name when it is an acronym

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ramakan
Posts: 1
Joined: Tue Apr 16, 2013 10:03 pm

formatting author name when it is an acronym

Post by ramakan »

Hi. I don't see a 'bibliography' topic, so I'm posting here. I have a reference in my .bib file as such:

Code: Select all

@techreport{ipcc_2007,
	title = {Climate Change 2007: Synthesis Report},
	author = {{(IPCC)} Intergovernmental Panel on Climate Change },
	year = {2007}
},
When I do a parenthetical reference using \citep{ipcc_2007}, the author name is listed as: "(on Climate Change, 2007)", and in the bibliography section at the end, it's listed as: "Climate Change, I. I. P. (2007). Climate change 2007: Synthesis report. Technical report."

I would like the parenthetical reference to be listed as "(IPCC, 2007)", and the bibliography should list the acronym, followed by the full name spelled out. It's obviously treating the IPCC author string as a person's name.

Thanks for any assistance. I am using the memoir document class with natbib and compiling against PDFLatex, if that's useful.
Last edited by cgnieder on Tue Apr 16, 2013 11:01 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

formatting author name when it is an acronym

Post by cgnieder »

Hi ramakan,

Welcome to the LaTeX community!

You didn't say how you create your bibliography nor which style you're using so I assumend natbib with BibTeX and the style plainnat...

The idea is the following: use a command for the long version that is defined to expand to nothing. Just before the bibliography redefine it to be the long version of the acronym. In order to have the command not expanded prematurely it needs to be robust hence the use of \DeclareRobustCommand. Since this command does not check if a command is already defined it can be used twice:

Code: Select all

\documentclass{article}
\usepackage{natbib}
% the filecontents is only here to keep the example self-contained
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@techreport{ipcc_2007,
  title  = {Climate Change 2007: Synthesis Report},
  author = {{(IPCC)\IPCClongname}},
  year   = {2007}
}
\end{filecontents}

\DeclareRobustCommand\IPCClongname{}
\begin{document}

\citep{ipcc_2007}

\DeclareRobustCommand\IPCClongname{ Intergovernmental Panel on Climate Change}
\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}
acrbib.png
acrbib.png (14.82 KiB) Viewed 4666 times
Regards
site moderator & package author
Post Reply