BibTeX, biblatex and biberChange references sorting in different bibliography sections

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
OneZ
Posts: 2
Joined: Mon Oct 10, 2016 2:18 pm

Change references sorting in different bibliography sections

Post by OneZ »

Hello,

I have my bibliography organized into sections (Papers, Articles, Technical Reports, Books, Online). For example:
------------------------
Papers:
[4] Paper x
[12] Paper y
etc

Articles:
[2] Article x
[16] Article y
etc

Books:
[1] Book x
[7] Book y
etc

etc

------------------------
Now the problem, as you can see, is that the references are not sorted in each section. What I would like to do is something like:
------------------------
Papers:
[1] Paper x
[2] Paper y
etc

Articles:
[3] Article x
[4] Article y
etc

Books:
[5] Book x
[6] Book y
etc

etc
------------------------
Here is how I'm doing the sectioning:

Code: Select all

\printbibheading
\nobibintoc

\printbibliography[heading=npbbib,type=inproceedings,title={Papers}]
\printbibliography[heading=npbbib,type=article,title={Articles}]
\printbibliography[heading=npbbib,type=report,title={Technical Reports}]
\printbibliography[heading=npbbib,type=book,title={Books}]
\printbibliography[heading=npbbib,type=inbook,title={In Books}]
\printbibliography[heading=npbbib,type=misc,title={Online}]
Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Change references sorting in different bibliography sections

Post by Johannes_B »

Welcome, i cannot test, because you didn't post a working exampe to test, but isn't the log telling you something about defernumbers? You should set it to true, that should help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
OneZ
Posts: 2
Joined: Mon Oct 10, 2016 2:18 pm

Re: Change references sorting in different bibliography sect

Post by OneZ »

Thanks for your reply. The solution is indeed to set defernumbers to true.
For anyone reading this and new to Latex: \usepackage[defernumbers=true]{biblatex}.

Cheers.
Post Reply