The natbib
package has a \bibpreamble
hook. You can populate the text with \renewcommand{\bibpreamble}{<text>}
.
\documentclass{amsbook}
\usepackage[numbers]{natbib}
\renewcommand{\bibfont}{\small}
\begin{document}
\renewcommand{\bibpreamble}{First. This and that can be found in~\cite{testa}.
The other stuff is particularly well explained in~\cite{testb}
and~\cite{testc}.}
\begin{thebibliography}{9}
\bibitem{testa} Test A.
\bibitem{testb} Test B.
\bibitem{testc} Test C.
\end{thebibliography}
\renewcommand{\bibpreamble}{Second. This and that can be found in~\cite{testd}.
The other stuff is particularly well explained in~\cite{teste}
and~\cite{testf}.}
\begin{thebibliography}{9}
\bibitem{testd} Test A.
\bibitem{teste} Test B.
\bibitem{testf} Test C.
\end{thebibliography}
\renewcommand{\bibpreamble}{Third. This and that can be found in~\cite{testg}.
The other stuff is particularly well explained in~\cite{testg}
and~\cite{testi}.}
\begin{thebibliography}{9}
\bibitem{testg} Test A.
\bibitem{testh} Test B.
\bibitem{testi} Test C.
\end{thebibliography}
\end{document}
EDIT
For the font \renewcommand{\bibfont}{\small}
changes the font (size) for the bibliography (but not the preamble).
If you use the authoryear
and square
options of natbib
, the keys in your text show up as desired, if you use the \citep
-command
\documentclass{article}
\usepackage{blindtext}
\usepackage[square,authoryear]{natbib}
\usepackage{filecontents}
\begin{filecontents}{library.bib}
@book{Fowler1999,
address = {Boston, MA, USA},
author = {Fowler, Martin},
description = {AOEvolutionchapter short paper},
isbn = {0-201-48567-2},
publisher = {Addison-Wesley},
title = {Refactoring: Improving the Design of Existing Code},
year = 1999
}
@book{Doe2000,
address = {Somewhere},
author = {Doe, John},
title = {Awesome title},
year = 2000
}
\end{filecontents}
\setcitestyle{aysep={}}
\begin{document}
\blindtext\citep{Fowler1999}
\blindtext\cite{Doe2000}
\bibliography{library}
\bibliographystyle{unsrtnat}
\end{document}
Or you could use the alpha
bibliography style.
\documentclass{article}
\usepackage{blindtext}
\usepackage{filecontents}
\begin{filecontents}{library.bib}
@book{Fowler1999,
address = {Boston, MA, USA},
author = {Fowler, Martin},
description = {AOEvolutionchapter short paper},
isbn = {0-201-48567-2},
publisher = {Addison-Wesley},
title = {Refactoring: Improving the Design of Existing Code},
year = 1999
}
@book{Doe2000,
address = {Somewhere},
author = {Doe, John},
title = {Awesome title},
year = 2000
}
\end{filecontents}
\begin{document}
\blindtext\cite{Fowler1999}
\blindtext\cite{Doe2000}
\bibliography{library}
\bibliographystyle{alpha}
\end{document}
Best Answer
As you're "on a deadline", switching to
biblatex
is somewhat risky. Instead, usemultibib
as shown in the following MWE (it works with theunsrt
style). Optionally, use theresetlabels
package option.Note: Unless you're using tools like
latexmk
, compile the example withusing the command line (standard compiling routines of editors like TeXnicCenter won't do).