On 16/06/2012 9:39 AM, julien.babinot wrote:
Hello,I am currently writing my PhD thesis on Lyx, and i have one problem with my bibliography. I am using multiple bibliography, with a separate bib file for each chapter (these are included in a main document thesis.lyx). As advised in the advanced options document, i use \begin{btUnit}and \end{btUnit}at the beginning and end of my chapter to allow the multiple bibliography. I want to use a numbered style, in superscript, and numbered in the order of citation. But my problem is that references are listed in the alphabetical order of authors, thus generating numbering like 5, 23, 6 .... and not 1,2,3 Here is the Latex code generated by Lyx: %% LyX 2.0.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[oneside,english,french]{thl3i} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \setcounter{secnumdepth}{1} \setcounter{tocdepth}{1} \usepackage{array} \usepackage{float} \usepackage{textcomp} \usepackage{multirow} \usepackage{amsthm} \usepackage{amsmath} \usepackage{graphicx} \usepackage{setspace} \usepackage[dot]{bibtopic} \PassOptionsToPackage{normalem}{ulem} \usepackage{ulem} \onehalfspacing \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. \DeclareRobustCommand{\greektext}{% \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}} \DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}} \DeclareFontEncoding{LGR}{}{} \DeclareTextSymbol{\~}{LGR}{126} %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section} \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage[numbers,super,sort&compress]{natbib} \bibliographystyle{unsrtnat} \makeatother \usepackage{babel} \addto\extrasfrench{% \providecommand{\og}{\leavevmode\flqq~}% \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}% } \begin{document} \titreLogoUn{} \titreLogoDeux{} \subject{} \title{} \author{\textbf{\large }\\ } \date{xx/xx/2012} \Rapporteurs{Rapporteur 1&Université 1\\ Rapporteur 2&Université 2} \Examinateurs{Examinateur 1&Université 3\\ Examinateur 2&Université 4} \Directeur{Directeur 1&Université 5} \Encadrant{Encadrant 1&Université 6} \Encadrant{Invité 1&Université 7} \titreBasDePage{} \maketitle \address{% \begin{minipage}[t][1\textheight]{1\columnwidth}% \begin{center} \includegraphics[width=3cm]{Logos/Financeur} \par\end{center} \vspace{1cm} \begin{tabular}{rll} \emph{Thèse réalisée au} & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline & \multicolumn{2}{l}{Web :}\tabularnewline & \multicolumn{2}{l}{}\tabularnewline \emph{Sous la direction de } & \tabularnewline & & \tabularnewline \emph{Co-encadrement} & \tabularnewline & & \tabularnewline \end{tabular} \begin{center} \cleardoublepage \par\end{center} \begin{center} \par\end{center}% \end{minipage}} \frontmatter \include{Remerciements}\include{Résumé} \include{Abstract} \tableofcontents{} \listoffigures \listoftables \include{abreviations} \mainmatter \include{Introduction} \include{Chapitre1} \include{Chapitre2} \include{Chapitre3} \include{Chapitre4} \include{Chapitre5} \include{Chapitre6} \include{Conclusion} \include{Annexes} \backmatter \end{document} What i don't understand is that my bibliography is actually numbered in superscript but not sorted by order of citation?! unsrtnat is not supposed to do so? I would extremely appreciate any help. Thanks, Julien
Did you figure it out? Although unsrtnat won't sort, bibtopic might interfering?
-- Julien
