BibTeX, biblatex and biber ⇒ An introduction within the bibliography
-
- Posts: 7
- Joined: Wed Sep 01, 2010 3:58 pm
An introduction within the bibliography
I have certainly badly searched but keywords "latex introduction bibliography" constantly lead me to noise, so forgive me.
I would like my bibliography to be preceeded by an introduction. That is, between the title of the bibliography and the first entry. Is there a command for this ?
I guess I could edit the .bbl file but since it is overwritten at each compilation it would be quite painful…
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
An introduction within the bibliography
- Attachments
-
- Example.zip
- (565 Bytes) Downloaded 158 times
An introduction within the bibliography
Code: Select all
\newcommand\Bibliocomment{This is some text that will appear before the entries in the bibliography.}
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\Bibliocomment
\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
-
- Posts: 7
- Joined: Wed Sep 01, 2010 3:58 pm
An introduction within the bibliography
gmedina's suggestion would work if I would like the same text to be printed in both bibliography sections — however I would like the introduction only on one section (or equivalently, a different one for each).
Anyway, I understand from this reply that there is no out-of-the-box solution. I will try to elaborate from this suggestion when I have time to investigate.
An introduction within the bibliography
-
- Posts: 7
- Joined: Wed Sep 01, 2010 3:58 pm
Re: An introduction within the bibliography
-
- Posts: 7
- Joined: Wed Sep 01, 2010 3:58 pm
An introduction within the bibliography
Code: Select all
FUNCTION {mypreamble}
{
"\item[]" write$ newline$
"Some text." write$ newline$
}
Then, add the command
Code: Select all
EXECUTE {mypreamble}
Code: Select all
EXECUTE {begin.bib}
Finaly, enjoy.

PS : I'll mark this topic as solved, even though one could probably elaborate on that and make things more clean and flexible, as it is sufficient for my purposes.
Re: An introduction within the bibliography
-
- Posts: 7
- Joined: Wed Sep 01, 2010 3:58 pm
An introduction within the bibliography
Apologies accepted, but next time do not bite the newcomers.
