bibliography in each chapter as a final section

311 views
Skip to first unread message

fabian neuhaus

unread,
Jun 3, 2014, 2:43:19 PM6/3/14
to tufte...@googlegroups.com
I have been working successfully with tufts-book including side notes and bibliography for my thesis. However, for the publication I need to create a bibliography for each chapter, whereas before I only included a complete bibliography at the end of the book.

Standard for this seems to be \{chapterbib} and the option [sectionbib] in order to have the chapter bibliography appear inside the chapter as a section.

If I add a bibliographystyle and bibliography to each chapter that is loaded it creates a separate numbered chapter for each chapter's bibliography.

I am using the {natbib} package and the {chapterbib} package, but adding the option [sectionchapter]{natbib} will give an error 'The package natbib has already been loaded with options'

Adding  [sectionbib] to {chapterbib} seems to have no effect, even though in a standard book class this works perfectly fine for a section bibliography.

Anyone already successfully produced a section bibliography using the tufts-book class, and what is the trick to move the bibliography from the chapter level to the section level both in the ToC and the page layout?

fabian neuhaus

unread,
Jun 4, 2014, 6:47:28 PM6/4/14
to tufte...@googlegroups.com
This bit of code, found on stack overflow at http://stackoverflow.com/questions/1037905/bibliography-as-section-in-latex-bibtex worked for me.

\makeatletter
\renewenvironment{thebibliography}[1]
     {\section*{\bibname}% <-- this line was changed from \chapter* to \section*
      \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother
It should go in before /begin{document} and before defining the bibliography packages.
Reply all
Reply to author
Forward
0 new messages