BibTeX, biblatex and biberBibTeX, bibtopic and entries ordering

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
SkippyleGrandGourou
Posts: 7
Joined: Wed Sep 01, 2010 3:58 pm

BibTeX, bibtopic and entries ordering

Post by SkippyleGrandGourou »

Hi,

I am using the package bibtopic, which allows to separate the bibliography into distinct sections. However I am encountering some difficulties : I can't manage to sort references in their order of appearance, even using a style like "unsrt". Here is a small example :

Code: Select all

\documentclass[a4paper]{article}

\usepackage{bibtopic}

\begin{document}

Blabla~\cite{ref1} and blabla~\cite{ref2}.

\bibliographystyle{unsrt}
\begin{btSect}[unsrt]{biblio}
\section*{Bibliography}
\btPrintCited
\end{btSect} 

\end{document}
If ref1 and ref2 are defined in the order ref1 then ref2 in biblio.bib, then I obtain the (correct) following result :
Blabla [1] and blabla [2].
But if they are defined in the order ref2 then ref1 in biblio.bib, then I obtain the (wrong) following result :
Blabla [2] and blabla [1].
As you can see in the example, I tried to force the use of unsrt.bst, as indicated in package manual, without success.

Does anybody have an idea ? Thanks.
Last edited by SkippyleGrandGourou on Thu Sep 02, 2010 5:02 pm, edited 1 time in total.

Recommended reading 2024:

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

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

SkippyleGrandGourou
Posts: 7
Joined: Wed Sep 01, 2010 3:58 pm

BibTeX, bibtopic and entries ordering

Post by SkippyleGrandGourou »

I managed to workaround this issue by using the multibib package (which documentation mentions that bibtopic is not compatible with unstorted styles…).

Note which might proves useful : the custom multibib citation command does not work out of the box in \caption environment, it leads to the following error message :
Use of \@citex doesn't match its definition
Unless necessary, instead of wasting precious time trying to fix this problem, just switch multibib custom command with the standard \cite command, and use the custom one outside captions. ;)
Post Reply