14

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.

3
  • 1
    Try \usepackage[bibstyle=numeric,citestyle=authoryear-ibid,sorting=nyt]{biblatex}.
    – lockstep
    Jul 30, 2011 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, 2011 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, 2011 at 19:14

1 Answer 1

14

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}
2
  • 2
    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, 2019 at 15:29
  • Thanks a ton! you saved me 😭.... I was trying to do this for an hour 🥺 Thankssss again 🤩 Nov 8, 2021 at 15:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .