TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The position of Bibliography section is defined by document class, report class is a new page, some articles class no has page break.

How change this witout change the class of the document? So i have a report class but how generate Bibliography without page break.

share|improve this question
    
You can check the report source code, find the macro placing the bibliography, and use \renewcommand in your preamble to remove the call to \pagebreak or similar. – T. Verron Sep 27 '12 at 4:28
    
So you want your bibliography to show like a section instead of like a chapter? – Gonzalo Medina Sep 27 '12 at 4:31
    
@GonzaloMedina yes, rigth – Andrés Ricardo Torres Martínez Sep 27 '12 at 4:32
up vote 16 down vote accepted

Internally, thebibliography environment uses \chapter*; if you want the bibliography to behave like a section, you can patch the \thebibliography command to use \section* instead of chapter*. To do this, add the following lines to the preamble:

\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\section*}{}{}

A complete example:

\documentclass{report}
\usepackage{etoolbox}
\usepackage{lipsum}% just to generate text for the example

\patchcmd{\thebibliography}{\chapter*}{\section*}{}{}

\begin{document}

\lipsum[1]

\begin{thebibliography}{9}
\bibitem{a} Test A.
\end{thebibliography}

\end{document}

enter image description here

If the biblatex package is used to produce the bibliography, one can use \defbibheading to define a heading using \section*:

\documentclass{report}
\usepackage{lipsum}
\usepackage{biblatex}

\addbibresource{biblatex-examples.bib}
\defbibheading{secbib}[\bibname]{%
  \section*{#1}%
  \markboth{#1}{#1}}

\begin{document}

\lipsum[1]
\nocite{*}

\printbibliography[heading=secbib]

\end{document}

enter image description here

share|improve this answer

FWIW, when using the llncs class together with the natbib package, one gets a bibliography on a separate page, listing reference indexed as [1], [2]... instead of 1., 2.... as expected by LNCS.

To avoid that problem, I use:

\usepackage[numbers]{natbib}
% Hack natbib so it matches the LNCS style: reference list in a
% section with small font and no square brackets.
\renewcommand\bibsection
  {\section*{\refname}\small\renewcommand\bibnumfmt[1]{##1.}}
share|improve this answer

If the biblatex package is used to produce the bibliography, you can also use one of the predefined headings, i.e. subbibliography

You can refer to section 3.6.8 Bibliography Headings and Environments in the biblatex manual.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.