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.

How can I put some introductory text before the references in BibTeX, but after the bibliography title? I have found some reference to \bibintro, but it does not compile. I have tried with a fake reference, but it obviously has to start with many As ;)

share|improve this question
3  
Do you ask about a bibtex solution or one for biblatex? In your question you only mention the former, but you used the biblatex tag. –  Simifilm May 9 '12 at 9:03

1 Answer 1

Since you mentioned BibTeX in your question but tagged it with I will provide solutions for both:

Solution with BibTeX

Assuming you're using the article class you could redefine the thebibliography environment like this:

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc {foo,
    author = {Foo, Francis},
    title = {All about Foo},
    year = {2011},
}
\end{filecontents}

\newcommand{\myprenote}{Here goes my text.}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \myprenote
      \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

\begin{document}
\bibliographystyle{plain}
\bibliography{\jobname}
\nocite{*}
\end{document}

enter image description here

Solution with biblatex

\documentclass{article}

\usepackage[
    style=authortitle,
    backend=biber,
]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book {foo,
    author = {Foo, Francis},
    title = {All about Foo},
    year = {2011},
    location = {Footown},
}
@book {bar,
    author = {Bar, Bernie},
    title = {Barstory},
    year = {2000},
    location = {Barcity},
}
\end{filecontents}

\addbibresource{\jobname.bib}


\begin{document}
\defbibnote{myprenote}{Here goes my text.}
\printbibliography[prenote=myprenote]
\nocite{*}
\end{document}

enter image description here

share|improve this answer
    
Thanks Thorsten!! Very useful. I just modified it slightly to uniform it with the book style. It was pretty hard to find a solution to this problem! (and sorry for wrong tagging..I meant bibtex in any case) –  Umberto Grandi May 9 '12 at 16:24
    
@UmbertoGrandi I'm glad that my answer helped you :) You can accept my answer by clicking on the checkmark (on the left side of my answer). When you register to this site and gain at least 15 reputation points you are also able to upvote it. –  Thorsten May 9 '12 at 16:53

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.