Take the 2-minute tour ×
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.

I'd like to get rid of the bibliography heading: enter image description here

Please note that I'm using the thebibliography environment.

share|improve this question
    
Honestly, I do net really understand your question. My guess is GoogleTranslate or similar. Could you, even with insufficient english, try to rephrase your problem? –  Thilo Jul 8 '11 at 21:59
    
Regis, the wording is really confusing. It would be good if you tried to explain better what you want, perhaps with the help of google translate or similar. –  Vivi Jul 8 '11 at 21:59
    
Regis, my guess is that you are trying to remove the bibliography heading. Maybe you could also provide a minimal working example (MWE). OFF: Nice to see another brazilian around. =) –  Paulo Cereda Jul 8 '11 at 22:09
2  
I would guess locally redefining \section to simply remove it's argument should do it. –  Martin Scharrer Jul 8 '11 at 22:29
1  
Duplicate of tex.stackexchange.com/questions/33316/…, but the accepted answer here is better IMO as it does not require \vspace. –  SabreWolfy Aug 7 '12 at 19:39
show 15 more comments

3 Answers

up vote 28 down vote accepted

The thebibliography environment uses \section*{\refname} (article class and similar classes) or \chapter*{\bibname} (book and report and similar classes) internally. Redefining that macro locally to take and discard two arguments (one for *, one for the actual argument) will remove the headline.

Example:

\documentclass{article}

\begin{document}

\begingroup
\renewcommand{\section}[2]{}%
%\renewcommand{\chapter}[2]{}% for other classes
\begin{thebibliography}{}
\bibitem{ano05}
    A. Nonymous et al.\ 2005
\bibitem{oe04}
    A.N. Other \& S.O.M. Ebody 2004
\end{thebibliography}
\endgroup

\end{document}

This also works for BibTeX's \bibliography{..} because it uses thebibliography internally. For this use:

\begingroup
\renewcommand{\section}[2]{}%
%\renewcommand{\chapter}[2]{}% for other classes
\bibliography{mybibfile}
\endgroup
share|improve this answer
    
Resolved. Thank you @Martin Scharrer! Thanks for @Vivi and other colaborators. –  Regis da Silva Jul 8 '11 at 23:35
    
And @Martin saves the day! We owe you a caipirinha. =P –  Paulo Cereda Jul 8 '11 at 23:38
1  
@Paulo: Prost! :-) –  Martin Scharrer Jul 8 '11 at 23:40
    
@Martin to the rescue! –  Vivi Jul 8 '11 at 23:45
    
Building on @Martin's answer, if you want to use a subsection or other header instead change the line \renewcommand{\section}[2]{}% to \renewcommand{\section}[2]{\subsection#1{#2}}% or equivalent. –  ihuston Jul 26 '11 at 13:43
show 1 more comment

If you use biblatex you can use the bibliography heading none which was added in version 1.5 (see the manual, section 3.5.7). I've got an earlier version so I can't try it but I think the following is an example of this option in use:

\documentclass{article}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents*}{database.bib}
@book{texbook,
    author  = {Donald E. Knuth},
    title   = {The {{\TeX}book}},
    publisher   = {Addison-Wesley},
    date    = {1984}
    }
\end{filecontents*}

\bibliography{database.bib}

\begin{document}

\cite{texbook}

\printbibliography[heading=none]

\end{document}
share|improve this answer
    
Although this a good answer for the general case, Regis is just using \begin{thebibliography} ... \end{thebibliography} so this won't help, I don't think. –  Alan Munn Jul 8 '11 at 23:31
5  
@Alan: Yes, but it is good to have also an BibLaTeX solution around. Other people will have the same needs but use it instead. –  Martin Scharrer Jul 8 '11 at 23:42
add comment

Substitute your code with something like that.

\bibliographystyle{abntex2-alf}
\renewcommand{\bibname}{}
\bibliography{references.bib}

This worked using abntex2 style.

share|improve this answer
    
Just redefining \bibname to be empty will likely cause incorrect spacing (from the "empty" section) at the start of the bibliography. –  lockstep May 9 '13 at 8:54
add comment

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.