2

I have used the following code to create cited/non-cited bibliographies.

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

I want to further subdivide the 'Cited' bibliography called by

\printbibliography[category=cited, prenote={JoPE}]

into two sections. The first section is every cited reference except those for the journal named 'Foobar'. The next section is for cited references in the journal 'Foobar'. Both sections need to have prenotes.

lockstep
  • 250,273
DGarside
  • 839

1 Answers1

3

One method is to use something like this:

\AtEveryCitekey{\iffieldequalstr{journaltitle}{JoPE}
    {\addtocategory{citedjope}{\thefield{entrykey}}}
    {}}

Of course, you may have more complicated conditions.

Another method is to use the check option of the \printbibliography command (see the manual n.3.6.9). For example:

\defbibcheck{JoPE}{%
  \iffieldequalstr{journaltitle}{JoPE}
    {}
    {\skipentry}}
\defbibcheck{noJoPE}{%
  \iffieldequalstr{journaltitle}{JoPE}
    {\skipentry}
    {}}
...
% for all cited except JoPE
\printbibliography[category=cited,check=noJoPE, prenote={noJoPE}]
% for all cited JoPE
\printbibliography[category=cited,check=JoPE, prenote={JoPE}]
Oleg Domanov
  • 1,496
  • Thank you so much. Can you tell me a reference for finding out more about conditional operators such as \iffieldequalstr ? – DGarside Nov 18 '13 at 11:26
  • This is from the biblatex manual, section 4.6.2 'Stand-alone Tests'. The next section is also relevant, it's about complex tests. – Oleg Domanov Nov 18 '13 at 12:54