3

I am writing a thesis, where I am using book class.

I use \include to include different chapters in my thesis.

Within each chapter, I have a \bibliography{referenceschapter1} and so on..The bibliography class that I use is: unsrt and I am using BibTex.

Everything goes well, but the bibliography starts on a new page within each chapter.

But, I want to start the bibliography immediately at the end of the chapter, so "Without clearing the page". I tried \let\clearpage\relax, but it seems not to work.

Can anyone help?

4
  • So you want the \bibliography to default to \section* rather than \chapter*?
    – Werner
    Mar 25, 2015 at 19:10
  • @Werner yes, exactly..I now tried changing it in the book class, from chapter* to section* (the bibliography) but that did not solve the problem
    – abhishek
    Mar 25, 2015 at 19:11
  • 1
    You could try {\let\chapter\section\bibliography{<file>}} (note the use of {..}), but we would need more information to address the problem if this doesn't work.
    – Werner
    Mar 25, 2015 at 19:13
  • @Werner Sorry about that. The code indeed works very well and fixes the problem. Thanks for the solution.
    – abhishek
    Mar 25, 2015 at 19:23

1 Answer 1

5

Typically a \bibliography in a class that provides chapters are set as a chapter. Since you're using book, this seems to be the case. A local redefinition to use \section instead of \chapter might be a feasible option.

In your preamble, add

\let\oldbibliography\bibliography% Store \bibliography in \oldbibliography
\renewcommand{\bibliography}[1]{{%
  \let\chapter\section% Copy \section over \chapter
  \oldbibliography{#1}}}% Old \bibliography

which provides a local redefinition of \chapter to \section whenever you call \bibliography.

biblatex provides an easier interface to change this, if you ever need it.

8
  • I noticed that in line with this problem: After doing this, although my references start as a section, but the header that I have are still called References, instead of the name of the chapter. In the Preamble, I define them as \fancyhead[LE]{Chapter \thechapter} \fancyhead[RO]{\nouppercase\leftmark}; How can I change the header of pages with references to not as references, but the chaptertitle.
    – abhishek
    Mar 26, 2015 at 20:23
  • @abhishek: What document class are you using?
    – Werner
    Mar 26, 2015 at 20:25
  • I am using Book class
    – abhishek
    Mar 26, 2015 at 20:25
  • @abhishek: It seems unusual that \section would influence \leftmark. Perhaps you could use \let\oldbibliography\bibliography \makeatletter \renewcommand{\bibliography}[1]{{% \let\chapter\section \let\sectionmark\@gobble \oldbibliography{#1}}} \makeatother I've just added \let\sectionmark\@gobble which should remove any mark inserted by \section. If you're using other titling packages this may not work; regardless, it's ideal if you could supply a minimal working example (MWE), even if it's just temporarily on PasteBin.
    – Werner
    Mar 26, 2015 at 20:42
  • And I should paste the code in preamble?
    – abhishek
    Mar 26, 2015 at 20:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .