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.
Asked
Active
Viewed 6,742 times
14
1 Answers
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}
-
2Note that the
\setlengths do nothing in this example. Unlike\listfrom the example from thebiblatexdocumentation (due to some additions it is now in §3.7.7)\enumeratedoes 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 '19 at 15:29 -
Thanks a ton! you saved me .... I was trying to do this for an hour Thankssss again – Aayush Shah Nov 08 '21 at 15:30
\usepackage[bibstyle=numeric,citestyle=authoryear-ibid,sorting=nyt]{biblatex}. – lockstep Jul 30 '11 at 19:08sorting=nyt, see edited comment) and doesn't display the year immediately after the author. – lockstep Jul 30 '11 at 19:14