I'm trying to have 2 separate "citation style" in my document, leveraging the customX existing document type (an extension would be to have a separate document type, but I don't want to play with the lbx file for the moment).

So I've used the type customc for my test. In the customc citation, there are no author and the citation should be "title, postnote" with an optional citation mode being "{title} {note}, postnote" if the note field is defined.

I'm having difficulties redefining the "customc:cite" for the document type customc. I thought it would be simply the same as DeclareBibliographyDriver bu I cannot find a way to make them work. How could I achieve this ? Here is what I get so far

enter image description here

And here is my MWE :

author = {Author, Roberto B.},
title = {The Writing of History in Ancient Egypt during the First Millennium BC (ca. 1070-180 BC). Trends and Perspectives},
shorttitle = {A short title},
    title       = {A title},
    note        = {= Un titre},
    title       = {Another title},







\DeclareFieldFormat[customc]{postnote}{\considerant #1}



a first test as demo \ucites[1]{book1}. a second text which also has some references \ucites[\nos 1, 2, 5]{book1}. 

Finally a test using the custom citation style \ucites[2.a \& 2.b]{atf1}[5.1]{atf2}. However the display should be "A title = Un titre, consid. 2.a \& 2.b".
  • The standard styles have no type-specific citation handling. All types are handled the same in citations. So you would have to modify the cite bibmacro. I could write an answer how that would work in the MWE, but I have the feeling that you may already have a highly modified cite bibmacro, in that case it might help if you added its definition to the MWE. In its current form customc:cite won't do anything. – moewe Oct 29 '18 at 9:29
  • Haha, based on my history, you're right. Bu actually, I was planning on using the authortitle version, with the potential goal to use the variation with the authoryear-icomp. So plain authortitle style :-) – XaWin Oct 29 '18 at 9:41
  • Ah OK, with authortitle things should be not that horrible. – moewe Oct 29 '18 at 9:43

Unlike the bibliography output the citation output is not type-dependent in the standard biblatex styles. That means that there is only one cite macro that controls the citation of all types and that there is no convenient macro like \DeclareBibliographyDriver{<type>} or cite:<type> to change the citation format of a particular type.

In this case the straightforward way just redefines the cite macro (as defined in authortitlte.cbx) as


This simply adds a test for the type @customc and prints the note field if we have a @customc entry.

If you are aiming to add more complicated definitions for other entry types as well, you may want to look at a different setup. The following allows you to define type-specific cite macros and falls back to the standard definition.

% save the "default" cite macro in cite:default.
% That means we can overwrite cite later
% and still use the old definition within the new one


  • Works great and I like the approach with the default so much more than the approach I've seen in the swiss-legal files with nested if conditions. I just had an error from Overleaf on an undefined letbibmacro. I guess it's a question of version because copy-pasting the solution from this question works fine, thanks ! – XaWin Oct 29 '18 at 11:32
  • Just out of curiosity, is the reason for a single citation approach a question of unity of citation? I guess it would have been technically possible to have the same mechanism as for bibliography driver ? – XaWin Oct 29 '18 at 11:34
  • 1
    @XaWin Indeed \letbibmacro is fairly new. The biblatex version on Overleaf does not know it yet. I guess there is only one unified citation macro for all types because usually all types have the same citation format. So normally there is little point in having type-specific citations. – moewe Oct 29 '18 at 11:41

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.