0

When I compile the following latex document the references by \printbibliography don't start from 1 but from 21. What could cause this ? I have allready seen another solved question with a workaround but as I only want it to do the default behaviour I think this should be the last option.

\documentclass{article}
\usepackage[backend=biber, style=alphabetic]{biblatex}
\addbibresource{sources.bib}

\begin{document}\selectlanguage{english} \begin{figure}[H] \centering \includegraphics[width=\textwidth]{../img/nucleo_f303k8} \caption{Nucleo-F303K8} \cite{NUCLEO-F303K8-2021-01-29} \end{figure} \printbibliography \end{document}

Like this:

[21] NUCLEO-F303K8 board information on manufacturer site. englisch. mbed. Jan. 29, 2021. url: https://os.mbed.com/platforms/ST-Nucleo-F303K8/.

  • you mean the first number in the printed list is [21] ? that would be odd, please post a document that can be run that shows that effect (we can not run as posted as we don't have sources.bib or the image (you can presumably delete the \includegraphics line without affecting the bibliography?) – David Carlisle Jan 29 '21 at 17:09
  • 2
    you are using style=alphabetic so I wouldn't expect a number at all. – David Carlisle Jan 29 '21 at 17:11
  • Thank you very much I played around by citing other entries and it seems like the "number" is actually generated from the name and the year. It was my mistake copying the \usepackage line without thinking about it. I now looked up what style=alphabetic does which confirmed my assumption that it is generated from the last name of the author and the year. In the first entry there was no author name so it only returned the year (20"21"). – le_lemon Jan 29 '21 at 17:17
  • Im not sure if I should just delete this question now or if I should answer it. – le_lemon Jan 29 '21 at 17:18
  • I guessed as much. No harm in giving a self answer I think. – David Carlisle Jan 29 '21 at 17:19

1 Answers1

1

The code I was using does not show the default behaviour because I copied the usepackage line from this (german) tutorial.

In it another style is choosen were the reference "number" is generated from the last name of the author and the year. The entry I used did not have an author so the reference number only contained the year (20"21").

If you want the default behaviour, simply remove the style option or explicitly write style=numeric.