Biblatex allows multiple bibliographies to be printed. How do I make one bilbiography use author-year style while make another use a numerical style? I've heard that this is bad typography but I want to do it to distinguish between actual references to literature (author-year) and image credits (which I hope to do numerically).

I've read through the Biblatex documentation and it doesn't seem to help.


After much searching on Tex.StackExchange, I put together a hack that produced this:

enter image description here

I hope my code will be of use to others who want to do something similar.


\usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
  style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
  defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.

%Copied from numeric.cbx to imitate numerical citations.
\newbibmacro*{citenum}{%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "\renewbibmacro*{cite}" would have caused all the author-year citations to become numeric too.
  \printtext[bibhyperref]{%If you ever want to use hyperref

%Copied from numeric.cbx to define a new numeric citation command for @online entries.
   \usebibmacro{citenum}}%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.

Cite books, \parencite{Book} \parencite{Book2}

Cite online stuff, \conline{Online} \conline{Online2}

%Print the normal author-year bibliography

%Redefine the bibliography environment to imitate the numeric citation style

The file Bibliography.bib contains:

  author    = {Author},
  title     = {Title},
  publisher = {Publisher},
  year      = {2014},

  author    = {Author2},
  title     = {Title2},
  publisher = {Publisher2},
  year      = {2015},

  author = {Author},
  title = {Title},
  titleaddon = {titleaddon},
  subtitle = {subtitle},
  url= {http://tex.stackexchange.com/},

  author = {Author2},
  title = {Title2},
  titleaddon = {titleaddon2},
  subtitle = {subtitle2},
  url= {http://tex.stackexchange2.com/},

Talking about distinguishing between literature and credits, I need something similar.

So, an experiment: (not in mixing two styles, but in having two streams of information)

Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom \photocite), and a corresponding bib driver (\DeclareBibliographyDriver{photo}), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:

image credits separate from references




\DeclareDatamodelFields[type=field, datatype=literal]{


\ProvidesFile{photo.bbx}[2006/04/09 v1.0 biblatex bibliography style]




\ProvidesFile{photo.cbx}[2019-04-09 v1.0 biblatex citation style]

% fieldformats: photo

% bibmacros
%======================= photoname

%======================= photographer
%======================= photoby-caption

%======================= photoby-bib


% citecommands
%======================= photocite
%@@@@@@@@@@@@@@@@ prenote
%@@@@@@@@@@@@@@@@ item
{%photo ==================================
%@@@@@@@@@@@@@@@@ delim
%@@@@@@@@@@@@@@@@ postnote


  \ProvidesFile{english-photo.lbx}[2019/04/09 english with additions for photo citations]
    inherit   = {english},
    photoby = {{photo by}{photo by}},



photoname={The Woods},
photographer={M Woods},

photoname={The Sky},
photographer={A B Skier},
photoname={The Air},
photographer={O Ayre},
photoname={The Lake},
photographer={N Lakes},
photoname={The Sea},
photographer={R Seasons},


\setmainfont{Noto Serif}

\defbibnote{abibnote}{Plain bibliography}
\defbibnote{photobibnote}{List of photos}



Some plain cites: 

Some photo cites: air: \photocite{ph3}, sky: \photocite{ph2}, and sea: \photocite{ph5}. 




Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of \ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.

Printing the citations rotated sideways (and/or as part of captions) is also possible.

On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.

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.