I think this is the definition of the citecounter option on the biblatex package:


Then, what can I use to know whether the option was enabled?

For example:


\if citecounter=false
    \message{Citecounter is false^^J}

    \message{Citecounter is enabled^^J}


  1. Can I count the number of times each reference is cited?
  2. How to detect whether \PassOptionsToPackage was already called?
  3. Nested \ifdefined statements
  4. Checking if certain package option is declared inside .sty

The quoted definition shows that \blx@citecounter is equal to \relax if and only if the citecounter feature is deactivated. So you can check for that.

One way would be


(Technically, \ifcsvoid{blx@citecounter} tests if \blx@citecounter is \relax or a parameterless macro with empty replacement, but that should be good enough here.)

If you want to stick to TeX conditionals


would also work.


In addition to citecounter, I can also check whether backref was set too. Given the source for the backref option on biblatex package:


I can check whether both citetracker and backref were set with:


  \message{citecounter defined!^^J}
  \message{citecounter not defined!^^J}

  \message{citetracker defined!^^J}
  \message{citetracker not defined!^^J}

  \message{backref defined!^^J}
  \message{backref not defined!^^J}
  • Note that the citetracker bool as tested with \ifcitetracker is activated by several options (citecounter being one of them) and need not mean that the tracking option citetracker has been enabled. – moewe Apr 8 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.