Dans mon exemple réel, j’ai besoin d’imprimer des biblios triées avec un reset du compteur, je dois donc utiliser \documentclass{article} \usepackage[defernumbers=true ]{biblatex} \usepackage{filecontents} \begin{filecontents}{mabiblio.bib} @misc{A-01, author = {Author, A.}, year = {2001}, title = {Alpha}, } @book{B02, author = {Buthor, B.}, year = {2002}, title = {Bravo}, location = {Location}, publisher = {Publisher}, } @article{C03, author = {Cuthor, C.}, year = {2003}, title = {Charlie}, journaltitle = {Journal title}, volume = {1}, } @article{C04, author = {Cuthor 2, C.}, year = {2004}, title = {Charlie}, journaltitle = {Journal title}, volume = {2}, } @article{B03, author = {Buthor 2, C.}, year = {2004}, title = {Charlie}, journaltitle = {Journal title}, volume = {1}, } \end{filecontents} \addbibresource{mabiblio.bib} \begin{document} \cite{authorA-01}% \cite{B02} \cite{C03} \section{Biblio} \nocite{*} \printbibliography \end{document} Posée 03 Mar '23, 21:52 Maxime ♦ |
Réponse obtenue ici : https://tex.stackexchange.com/questions/678992/biblatex-zero-numbering-when-an-unknown-key-is-called-with-nocite-and-defernumb/679077#679077
\documentclass{article} \usepackage[defernumbers=true]{biblatex} \makeatletter \blx@AtEndDocument{% \iftoggle{blx@defernumbers} {\iftoggle{blx@runbiber} {\def\do#1{\blx@auxwrite\@mainaux{}{#1}} \dolistloop\blx@localnumaux} {}} {}} \makeatother \begin{filecontents}{\jobname.bib} @misc{A-01, author = {Author, A.}, year = {2001}, title = {Alpha}, } @book{B02, author = {Buthor, B.}, year = {2002}, title = {Bravo}, location = {Location}, publisher = {Publisher}, } @article{C03, author = {Cuthor, C.}, year = {2003}, title = {Charlie}, journaltitle = {Journal title}, volume = {1}, } @article{C04, author = {Cuthor 2, C.}, year = {2004}, title = {Charlie}, journaltitle = {Journal title}, volume = {2}, } @article{B03, author = {Buthor 2, C.}, year = {2004}, title = {Charlie}, journaltitle = {Journal title}, volume = {1}, } \end{filecontents} \addbibresource{\jobname.bib} \begin{document} \cite{authorA-01}% \cite{B02} \cite{C03} \section{Biblio} \nocite{*} \printbibliography \end{document} Publiée 16 Mar '23, 21:58 Maxime ♦ |