[Tex/LaTex] Custom abbreviation for citation in bibtex

biblatexbibtex

When writing, I like to introduce an abbreviation for the whole citation. On the first instance, I would write "This is true as shown in (nbren12, et. al. 2012) (hereafter NB12)". In the subsequent usages, I would just say "This fact is true (NB12)". How can I implement this automatically using bibtex (or biblatex)?

This is similar but not identical to this question.

Best Answer

It is described clearly in the manual of natbib on page 3.

Use command:

\defcitealias{nbren12}{NB12}

After that, in addition to classic citing \citet{} or \citep{}, you can also use:

\citetalias{nbren12}
% or
\citepalias{nbren12}

Example

In example.tex I have:

\documentclass{article}
\usepackage{natbib}
\bibliographystyle{apalike}

\begin{document}

\defcitealias{jd14}{JD14}

In text \citet{jd14}. Or in brackets \citep[][hereafter JD14]{jd14}.

Now I cite it in text as \citetalias{jd14} and in brackets \citepalias{jd14}.

\bibliography{mybib}

\end{document}

and in mybib.bib I have:

@article{jd14,
  author={Doe, J. and Smith, J. and Bar, F.},
  title={Some title},
  journal={Some journal},
  year={2014},
}

and the output is:

enter image description here

And if you want the alias to appear in e.g. italics, but not page numbers etc. you can write e.g. \defcitealias{jd14}{{\itshape JD14}}.

Related Question