11

How can I set biblatex to insert "1. " before first bibliography item and so on? The bibliography is sorted by author and the numbers are not meant to be used anywhere else.

  • 1
    Try \usepackage[bibstyle=numeric,citestyle=authoryear-ibid,sorting=nyt]{biblatex}. – lockstep Jul 30 '11 at 19:08
  • It works (only comsetical differences, [1] instead of 1.). Is bibstyle=numeric different form bibstyle=standard in any other way too? – Andres Jul 30 '11 at 19:12
  • It sorts by (author) name - title - year (which may be corrected with sorting=nyt, see edited comment) and doesn't display the year immediately after the author. – lockstep Jul 30 '11 at 19:14
11

Biblatex manual section 3.5.7 actually has a solution for this, I must have missed it the previous time. Changed \list to \enumerate:

\defbibenvironment{bibliography}
  {\enumerate
     {}
     {\setlength{\leftmargin}{\bibhang}%
      \setlength{\itemindent}{-\leftmargin}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}}
  {\endenumerate}
  {\item}
  • 1
    Note that the \setlengths do nothing in this example. Unlike \list from the example from the biblatex documentation (due to some additions it is now in §3.7.7) \enumerate does not take two mandatory arguments. That means that the \setlengths are executed in an explicit group and their effect vanishes immediately. Hence the code is equivalent to \defbibenvironment{bibliography}{\enumerate}{\endenumerate}{\item} – moewe Jan 18 at 15:29

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.