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 😉
[Tex/LaTex] Text before references, but after bibliography title with BibTeX
biblatexbibtex
Related Solutions
You can separate the BibTeX files with commas, so \bibliography{file1,file2,...}
You can put the entire path into the bibliography command, but this is obviously less than desirable.
There is a $BIBINPUTS variable, the parallel of $TEXINPUTS, which you can use to set bibtex's search path.
For the formatting bit, surely you'll need to dig around for a style file that conforms to the guidelines or (gulp) write one yourself.
Have you try biblatex? Biblatex is a complete reimplementation of the bibliographic facilities provided by LaTeX in conjunction with BibTeX.
With biblatex isn't that hard to add pre and post annotations to entries. Like this:
\documentclass[a4paper,10pt]{article}
\usepackage[natbib, % To use natbib commands
style=authoryear, % Style of cites and bib entries
backend=bibtex8] % To use bibtex instead biber
{biblatex}
\addbibresource{bib.bib} % Loading .bib file
\renewbibmacro{in:}{% % To remove "In:" from articles
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}
\DefineBibliographyStrings{english}{pages={pages}} % To change default pp.
\DefineBibliographyStrings{english}{page={page}} % To change default p.
\begin{document}
\citet{easterly2009can,frankel1999does} % Cite as if you were using natbib
\section*{References}
% use \fullcite[prenote][posnote]{bibentrylabel}
\noindent \fullcite[*][Please read sections 32-33]{easterly2009can} \\
\noindent \fullcite[*][Please read sections 2-4]{frankel1999does} \end{document}
If you want to add the same annotations but in your .bib file
you should do something like this:
\documentclass[a4paper,10pt]{article}
\usepackage[natbib, % To use natbib commands
style=authoryear, % Style of cites and bib entries
backend=bibtex8] % To use bibtex instead biber
{biblatex}
\addbibresource{bib.bib} % Loading .bib file
\renewbibmacro{in:}{% % To remove "In:" from articles
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}
\DefineBibliographyStrings{english}{pages={pages}} % To change default pp.
\DefineBibliographyStrings{english}{page={page}} % To change default p.
\begin{document}
\citet{easterly2009can,frankel1999does} % Cite as if you were using natbib
\printbibliography % Equivalent to \bibliography{bib}
\end{document}
with this bib.bib
:
@Article{ easterly2009can2,
Author = "William Easterly",
Title = "Can the West Save Africa?",
Journal = "Journal of Economic Literature",
Pages = "373--447",
year = 2009,
note = "A comment that should be before",
addendum = "A comment after"
},
@Article{ frankel1999does2,
Author = "J.A. Frankel and D. Romer",
Title = "Does trade cause growth?",
Journal = "American Economic Review",
Pages = "379--399",
year = 1999,
note = "A comment that should be before",
addendum = "A comment after"
}
However, I couldn't find how to reorder the block entities in each bibtex entry. May be you have more luck.
I should remark that citation and bibliographic styles may be changed. Check biblatex documentation for this. Here is a question for customizing biblatex styles.
Following the question: How to cite all bib entries that have no annotations in a simple way? (making minor changes to the .bib
file that not affect normal use of the file)
\documentclass[a4paper,10pt]{article}
\usepackage[natbib, % To use natbib commands
style=authoryear, % Style of cites and bib entries
backend=bibtex8] % To use bibtex instead biber
{biblatex}
\addbibresource{biblong.bib} % Loading .bib file
\renewbibmacro{in:}{% % To remove "In:" from articles
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}
\DefineBibliographyStrings{english}{pages={pages}} % To change default pp.
\DefineBibliographyStrings{english}{page={page}} % To change default p.
\begin{document}
\citet{easterly2009can,frankel1999does} % Cite as if you were using natbib
\section*{References}
% use \fullcite[prenote][posnote]{bibentrylabel}
\noindent \fullcite[*][Please read sections 32-33]{easterly2009can} \\
\noindent \fullcite[*][Please read sections 2-4]{frankel1999does} \\
\nocite{*} % Use of \nocite is not necessary if they were cited elsewhere
% The following command only print entries that not have the keyword annotated
\printbibliography[notkeyword=annotated,heading=none]
\end{document}
with this biblLong.bib
:
@Article{ easterly2009can2,
Author = "William Easterly",
Title = "Can the West Save Africa?",
Journal = "Journal of Economic Literature",
Pages = "373--447",
year = 2009
}
@Article{ frankel1999does2,
Author = "J.A. Frankel and D. Romer",
Title = "Does trade cause growth?",
Journal = "American Economic Review",
Pages = "379--399",
year = 1999
}
@Article{ lennon1965help,
Author = "John Lennon",
Title = "Help!",
Journal = "The Beatles",
Pages = "1--14",
year = 1965
}
@Article{ mccartney2003let,
Author = "Paul McCartney",
Title = "Let it be... Naked",
Journal = "The Beatles",
Pages = "1--11",
year = 2003
}
Best Answer
Since you mentioned BibTeX in your question but tagged it with biblatex I will provide solutions for both:
Solution with BibTeX
Assuming you're using the
article
class you could redefine thethebibliography
environment like this:Solution with
biblatex