BibTeX, biblatex and biberMultiple bibliographies sectioning

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
puch7524
Posts: 4
Joined: Tue Nov 03, 2015 9:09 pm

Multiple bibliographies sectioning

Post by puch7524 »

Is it possible to change the bibliography to appear as a section in the main part of a book document and to appear as a subsection in the appendix part of the book? Note that I am using multiple bibliographies, one for each chapter and one for each appendix.

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

Multiple bibliographies sectioning

Post by Johannes_B »

Welcome, that depends mainly on what you are doing. Can you show us a minimal working example that shows us exactly how you are setting up the bibliographies?

I think the most simple way to achieve that is using package biblatex.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
puch7524
Posts: 4
Joined: Tue Nov 03, 2015 9:09 pm

Re: Multiple bibliographies sectioning

Post by puch7524 »

I don't know if it's appropriate to provide the sample as a zip file, Sample.zip. In any case, it's attached. The sample folder contains 6 sources files:

1) Sample.tex - the main document (book document style)
2) One.tex - included file (Ch. 1)
3) Two.tex - included file (Ch. 2)
4) AppA.tex - included file (App. A)
5) AppB.tex - included file (App. B)
6) Sample.bib - the bibliography file

I have also attached the PDF file generate so you can see that to look proper, in the table of contents the bibliography in the appendices should be formatted as subsections. Thus, my question. How do you do it. I have been unable to figure it out.
Attachments
Sample.pdf
The pdf file generated
(32.26 KiB) Downloaded 326 times
Sample.zip
Zip file containing source files
(125.01 KiB) Downloaded 356 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Multiple bibliographies sectioning

Post by Johannes_B »

I found no easy way to do it with chapterbib. You could do a feature request, i doubt that there will be a solution provided though. The appendix is noch a chapter of your work. The appendix is build of the last chapters in your work that hold additional information. You really should use proper chapters after \appendix.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
puch7524
Posts: 4
Joined: Tue Nov 03, 2015 9:09 pm

Re: Multiple bibliographies sectioning

Post by puch7524 »

Unfortunately the chapter formatting is not appropriate for each individual appendix based on my publisher's requirements.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Multiple bibliographies sectioning

Post by Johannes_B »

Alternative approach:

Code: Select all

\documentclass[final,10pt]{book}

\usepackage[title,titletoc]{appendix}
\usepackage[sectionbib]{chapterbib}
\usepackage{titlesec}
\titleformat{\chapter}[display]{\bfseries\Huge}{\thechapter}{10pt}{\Huge\bfseries}


\begin{filecontents*}{\jobname A.tex}
\chapter{Pogo Penguin}
\nocite{Paper1,Paper2}
\bibliographystyle{plain}
\bibliography{Sample}
\end{filecontents*}
\begin{filecontents*}{\jobname B.tex}
\chapter{Dixie-dancing Ducks}
\nocite{Paper3,Paper4}
\bibliographystyle{plain}
\bibliography{Sample}
\end{filecontents*}
\begin{filecontents*}{\jobname C.tex}
\chapter{Walzing Wombat}
\nocite{PaperA,PaperB}
\bibliographystyle{plain}
\bibliography{Sample}
\end{filecontents*}
\begin{filecontents*}{\jobname D.tex}
\chapter{Salsa Snake}
\nocite{PaperC,PaperD}
\bibliographystyle{plain}
\bibliography{Sample}
\end{filecontents*}

\begin{document}

\tableofcontents

\include{\jobname A}
\include{\jobname B}

\appendix
\titleformat{\chapter}{\bfseries\large}{\thechapter}{10pt}{\large\bfseries}
\titleformat{\section}{\bfseries}{\thechapter}{10pt}{\bfseries}
\addcontentsline{toc}{chapter}{Appendices}
\appendixpage
\include{\jobname C}
\include{\jobname D}

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
puch7524
Posts: 4
Joined: Tue Nov 03, 2015 9:09 pm

Re: Multiple bibliographies sectioning

Post by puch7524 »

Thanks. I will consider the alternative.
Post Reply