Text FormattingConflict between multiple bibliographies in a document

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Noura
Posts: 1
Joined: Sat Feb 18, 2023 12:36 am

Conflict between multiple bibliographies in a document

Post by Noura »

I have a PhD manuscript in which I have to add a main bibliography after the conclusion section and a bibliography in each chapter. I use the natbib package. Each blibliography is saved in a separate .bib file. The main document has following structure:

Code: Select all

\documentclass[PhD,bibsection,english,french]{ulthese}
 \usepackage{chapterbib}`
\usepackage[numbers,square]{natbib}
    ...
    \include{introduction}                          
    \include{chap1-articles}    
    \include{chap2-articles}   
    \include{chap3-articles}   
    \include{discussion}            
    \include{conclusion}                          
    \renewcommand{\bibsection}{\chapter*{\bibname}} 
    \phantomsection\addcontentsline{toc}{chapter}{Bibliography} 
    \bibliographystyle{alpha}                  
    \bibliography{bibliography}   
    \appendix
    ...
\end{document}
The bibliography of the chapters is well inserted. To add a bibliography in each chapter I use :

Code: Select all

\bibliographystyle{alpha}    
\bibliography{referenceChap1}


But the main bibliography does not work in the text. I get ? instead of references.

Some users advised me to switch to biblatex, So I tried :

Code: Select all

\documentclass[PhD,nonatbib,english,french]{ulthese}
\usepackage[style=numeric]{biblatex}
…
\addbibresource{referenceChap1.bib}
\addbibresource{referenceChap2.bib}
\addbibresource{referenceChap3.bib}
\addbibresource{bibliographie.bib}
...
\mainmatter
\include{Introduction}
\renewcommand{\bibsection}{\chapter*{\bibname}}
\include{chapitre1-articles}
\include{chapitre2-articles}
\include{chapitre3-articles}
\include{discussion}
\include{conclusion}
\phantomsection\addcontentsline{toc}{chapter}{Bibliographie}
\printbibliography
\appendix
\include{annexe}
But it didn't solve the problem

Recommended reading 2024:

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

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

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Conflict between multiple bibliographies in a document

Post by rais »

Well, if you switched from natbib to biblatex and you kept the same file name in the same folder, you probably have to delete the .aux file(s), because natbib's known to leave some natbib-specific command(s) in there. Since it's no longer loaded...
Another thing you may not be aware of: biblatex requires the use of biber, not BibTeX (unless specified otherwise).

If neither is of any help to you, please show us an Infominimal working example that actually demonstrates your problem, code snippets with references to files we don't have are of little-to-no use.
And let's have a look at your .blg file.

BTW: biblatex ships with quite a few example files, look for `references-per-section', that should take care of the sub bibliographies. Adding a main bibliography is easy, just keep its \cite* and \printbibliography commands out of any refsection environment.
Post Reply