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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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