在参考书目开头添加题词

在参考书目开头添加题词

我想在我的参考书目中的所有参考书目前加上引文,就像这样:

\begin{thebibliography}{9}
\epigraph{Awesome quote}{William Shakespeare}
\bibitem{einstein} 
Albert Einstein. 
\textit{Zur Elektrodynamik bewegter K{\"o}rper}. (German) 
[\textit{On the electrodynamics of moving bodies}]. 
Annalen der Physik, 322(10):891–921, 1905.
\end{thebibliography}

有没有简单的方法?似乎只能thebibliography等待\bibitem了。

答案1

\bibpreamble你可以使用纳特比布引文和参考书目管理包。请注意,如果您使用 BibTeX 生成参考书目,或者thebibliography完全手动构建环境,此方法都有效。

在此处输入图片描述

\documentclass{article}
\usepackage{epigraph} % for "\epigraph" macro
\usepackage[numbers]{natbib}
\renewcommand\bibpreamble{%
  \epigraph{Things should be made as simple as possible, but no simpler.}{Albert Einstein}}

\begin{document}
\begin{thebibliography}{9}

\bibitem{einstein} 
Albert Einstein. \textit{Zur Elektrodynamik bewegter K{\"o}rper}. (German) [\textit{On the electrodynamics of moving bodies}]. Annalen der Physik, 322(10):891--921, 1905.

\end{thebibliography}
\end{document}

答案2

如果你使用该memoir课程,那么:

\documenclass[...]{memoir}
...
\renewcommand{\prebibhook}{%
  \epigraph{Awesome quote}{William Shakespeare}%
}
...
\begin{thebibliography}{...}

并且不需要epigraph包,因为它已经有效地内置在类中。

答案3

使用标准设置(没有添加参考书目包);注意\bibepigraph在开始参考书目之前必须先进行。

\documentclass[a4paper,oneside]{book} % oneside just for the example
\usepackage{epigraph} % for \epigraph
\usepackage{etoolbox} % for \patchcmd

\usepackage{lipsum} % for mock text

\patchcmd{\thebibliography}{\list}{\printbibepigraph\list}{}{}
\newcommand{\bibepigraph}[2]{%
  \def\printbibepigraph{\epigraph{#1}{#2}}%
}
\def\printbibepigraph{} % initialize

\begin{document}

\chapter{Title}

\epigraph{%
  F.: What a filthy job!\\
  I.: Could be worse.\\
  F.: How?\\
  I.: Could be raining.
}{Dr.~F.~Frankenstein and Igor}

\lipsum[1-2]


\bibepigraph{If anything can go wrong, it will}{Murphy}

\begin{thebibliography}{9}

\bibitem{cantor}
Georg Cantor, \textit{\"Uber eine Eigenschaft des Inbegriffes aller reellen algebraischen Zahlen},
Journal f\"ur die Reine und Angewandte Mathematik \textbf{77} (1874), 258--262.

\end{thebibliography}

\end{document}

在此处输入图片描述

如果使用 BibTeX,它将像

\bibepigraph{If anything can go wrong, it will}{Murphy}
\bibliographystyle{<style>}
\bibliography{<filename>}

答案4

您应该重新定义参考书目标题并在其中插入题词。像这样:

\documentclass[varwidth,margin = 1mm]{standalone}
\usepackage{epigraph}

\renewcommand\refname{Reference\epigraph{Awesome quote}{William Shakespeare}}
\begin{document}

\begin{thebibliography}{9}
\bibitem{einstein} 
Albert Einstein. 
\textit{Zur Elektrodynamik bewegter K{\"o}rper}. (German) 
[\textit{On the electrodynamics of moving bodies}]. 
Annalen der Physik, 322(10):891–921, 1905.
\end{thebibliography}
\end{document}

相关内容