2

Instead of generating a list of abbreviations, I want the abbreviations to be included in the bibliography as it is done in the following example with ESSJ (this list is not generated by LaTeX):

enter image description here

Using the following code as an example,

\documentclass{article}

\usepackage{polyglossia} \setmainlanguage{american}

\usepackage[style=ext-authoryear-comp,articlein=false,innamebeforetitle=false,dashed=false]{biblatex}

\usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book{Corbett2000Number, author = {Corbett, Greville G.}, date = {2000}, location = {Cambridge}, publisher = {Cambridge University Press}, title = {Number} } @book{BezlajESSJ, author = {Bezlaj, France}, date = {1977/2007}, location = {Ljubljana}, title = {Etimološki slovar slovenskega jezika}, shorthand = {ESSJ} } \end{filecontents} \addbibresource{\jobname.bib}

\begin{document}

Something (\cite{Corbett2000Number}, \cite{BezlajESSJ}).

\printbibliography

\end{document}

I get:

enter image description here

but would like to get:

enter image description here

I'm using XeLaTeX and biblatex with the ext-authoryear-comp style. I would kindly ask for pointers on how this might be achievable.

moewe
  • 175,683
bead-v
  • 97

1 Answers1

1

This is a job for the begentry bibmacro, which can be used to insert arbitrary stuff at the beginning of an entry.

\documentclass{article}

\usepackage{polyglossia} \setmainlanguage{american}

\usepackage[ style=ext-authoryear-comp, articlein=false, innamebeforetitle=false, dashed=false, ]{biblatex}

\renewbibmacro{begentry}{% \printfield{shorthand}% \printunit{\addspace=\space}% }

\begin{filecontents}{\jobname.bib} @book{Corbett2000Number, author = {Corbett, Greville G.}, date = {2000}, location = {Cambridge}, publisher = {Cambridge University Press}, title = {Number}, } @book{BezlajESSJ, author = {Bezlaj, France}, date = {1977/2007}, location = {Ljubljana}, title = {Etimološki slovar slovenskega jezika}, shorthand = {ESSJ}, } \end{filecontents} \addbibresource{\jobname.bib}

\begin{document} Something \autocite{Corbett2000Number,BezlajESSJ}.

\printbibliography \end{document}

ESSJ = Bezlaj, France (1977–2007). Etimološki slovar slovenskega jezika. Ljubljana.

moewe
  • 175,683
  • See also https://tex.stackexchange.com/q/47398/35864, but I prefer the solution with \printunit, which uses the punctuation buffer and thus avoids the \iffieldundef test. – moewe Jul 20 '21 at 15:29