CSL Discourse

Subgroups in Bibliography



I would like to edit the style so, that I am able to have two groups below bibliography like:


a list of articles

Additional Literature

a list of books

Is this possible?


No, at the moment this is not supported. I’d also love to see something like that coming.

That being said, I am not sure if a feature like this should be part of CSL itself, or if it is a question of how different applications use CSL. Subdivided bibliographies defined by a citation style don’t make much sense to me. Subdividing bibliographies should perhaps better be done by your reference manager.

In the meantime, you could do something like this: For all items that should end up in the first bibliography section add a field “bibgroup: 1” in Zotero’s extra field, then “bibgroup: 2”, and so on. You can then use this field to sort your bibliography. In the end, you will have to add the headings manually. (Or you use dummy references for that.) Note however, that this is totally hackish and not really supported. At least in Zotero it should work though, at least at the moment. (I have not checked if it also works with other programs, e.g. pandoc.)


If the subgroups are defined by item types as your example suggests, you don’t even need the extra field. You can simply define a sort macro along the lines of

  <if type="book">
    <text value="1">
  <else-if type="article-journal">
    <text value="2">
    <text value="3">

and use that as the sort key