I want to add a biblatex entry field that if activated prints how something is being cited. So in the bibliography I'd have something like that: enter image description here

So the idea is, to have a dedicated entry field. "howcited" for example:

    MAINTITLE       = {Beck'scher Online-Kommentar BGB},
    SHORTTITLE      = {},
    EDITOR          = {Bamberger, Heinz Georg and Roth, Herbert and Hau, Wolfgang and Poseck, Roman},
    SHORTHAND       = {BeckOK},
    VOLUME          = {},
    TITLE           = {},
    YEAR            = {2018},
    EDITION         = {45},
    HOWCITED        = {1},

This field would act as a switch. If the entry would be "1", the field would print the following text first:

"(zitiert als:"

Then it would either take the shorthand entry and print it followed by "/Bearbeiter)"

So in the end I would be left with something like "(zitiert als: shorthand/Bearbeiter)"

See attached picture.

Any ideas how I can do it? Thanks a lot in advance!

1 Answer 1


It seems more natural to me to define an entry option instead of a field with a throwaway value.

After we have defined the entry option howcited, you can enable the "howcited" feature with options = {howcited=true}, or the short options = {howcited}, in your .bib entry. Below the option is also implemented per-type and globally, so you enable "howcited" for all entries of type @commentary or for all entries at once without having to set the option in the .bib file. Since the macro checks for a shorthand before it does anything, you can probably set the option on a per-type basis:


That saves you the work of having to add the option to every entry in the .bib file.

The bibmacro-side of things is fairly straightforward and actually a bit of a rip-off of the shorthandintro macro in biblatex.def. Here I hooked the macro into finentry, but since you seem to have a fully customised style anyway, you may find a more elegant place for it.


\usepackage[style=authoryear, backend=biber]{biblatex}




  citedas    = {zitiert als},
  bearbeiter = {Bearbeiter},

  maintitle = {Beck'scher Online-Kommentar BGB},
  editor    = {Bamberger, Heinz Georg and Roth, Herbert and Hau, Wolfgang and Poseck, Roman},
  shorthand = {BeckOK},
  date      = {2018},
  edition   = {45},
  options   = {howcited},



Bamberger, Heinz Georg u.a., Hrsg. (2018). *Beck’scher Online-Kommentar BGB*. 45. Aufl. (zitiert als BeckOK/*Bearbeiter*).

  • If I'd change this bibmacro to also print the author name. I'd use \printnames{labelname}. If I'd already defined the family name format like this: \AtEveryBibitem{% \ifentrytype{incollection}{% \renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}% }{}% } how can I change the format to simpy \emph only for that howcited usage. I didn't want to open another question only for that. Because the rest is mainly the same.
    – texnewbie
    Jul 30, 2018 at 14:58
  • 1
    @texnewbie There is no useful labelname for beck.ok that would be shown in the citations, so what do you want to add where? Since there seems to be additional code involved a new question makes sense to me. Please add a complete MWE with the relevant modifications.
    – moewe
    Jul 30, 2018 at 15:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .