将文本置于参考书目页面顶部

将文本置于参考书目页面顶部

我想在我的参考书目部分第一页的顶部添加一条引文。

\newenvironment{wittyquote}
{\color{darkgray} \begin{addmargin}[6cm]{0cm} \begin{footnotesize}}
{ \end{footnotesize} \end{addmargin} \bigskip }

但是,参考书目会自动在新页面上开始。我该如何实现呢?

% Bibliography

\label{app:bibliography} % Reference the bibliography elsewhere with \autoref{app:bibliography}

\manualmark
\markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}}
\refstepcounter{dummy}

\addtocontents{toc}{\protect\vspace{\beforebibskip}} % Place the bibliography slightly below the rest of the document content in the table of contents
\addcontentsline{toc}{chapter}{\tocEntry{\bibname}}

\bibliographystyle{alpha}

\begin{wittyquote}
You can stand on the shoulders of giants. Or a big enough pile of dwarfs. Works either way.
-- Discordian wisdom
\end{wittyquote}

\begin{footnotesize}
\bibliography{Bibliography}
\end{footnotesize}

答案1

因为你没有告诉我们你使用的文档类别,所以我只能猜测。

根据所使用的文档类别以及您想要使用 BibTeX 的情况,有两种可能性:

  1. 您可以使用包natbib。然后您可以使用命令\bibpreamble。请参阅以下 MWE-1。
  2. 如果您使用KOMA-Script,例如 class scrartcl,则可以使用KOMA-Sript命令\setbibpreamble。请参阅以下MWE-2。
  3. 使用biblatex是第三种可能性,由@Daniel 的回答显示。

因此您不需要您的环境wittyquote,只需使用上面命名的预定义命令。

对于以下两个 MWE,我使用包filecontents将 TeX 代码和 Bib 文件连接成一个可编译的 MWE。

MWE-1:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@misc{mozart:KV183,
  author  = {Mozart, Wolfgang Amadeus},
  title   = {Sinfonie g-Moll},
  year    = {1773},
  address = {Salzburg},
  note    = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25; 
             Erster Satz: Allegro con brio, Zweiter Satz: Andante, 
             Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}


\documentclass[10pt,a4paper]{article}

\usepackage[numbers]{natbib}
\renewcommand\bibpreamble{\itshape This is the preambel for the bibliography\par\normalfont}


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

结果如下:

mwe-1 的结果

KOMA 脚本的 MWE-2:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@misc{mozart:KV183,
  author  = {Mozart, Wolfgang Amadeus},
  title   = {Sinfonie g-Moll},
  year    = {1773},
  address = {Salzburg},
  note    = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25; 
             Erster Satz: Allegro con brio, Zweiter Satz: Andante, 
             Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}


\documentclass{scrartcl}

\setbibpreamble{\itshape This is the preambel for the bibliography with KOMA-Script\par\normalfont}


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{plain}
\bibliography{\jobname}

\end{document}

结果:

mwe-2 的结果

答案2

prenote使用 bibtex 是强制性的吗?如果不是,您可以使用 biblatex,它允许使用命令的可选选项在参考书目开头打印任意文本\printbibliography

\documentclass{book}

\usepackage{biblatex}
\addbibresource{Bibliography}

\defbibnote{wittyquote}{<your code here>}

\begin{document}

\cite{<cite something>}

\printbibliography[prenote=wittyquote]

\end{document}

相关内容