如何在参考书目项目之间添加连续文本?

如何在参考书目项目之间添加连续文本?

我想创建一个参考书目(使用环境\thebibliography),我需要在某些元素之间添加一些文本注释(例如,“有关 foo 的更多信息,请参阅以下书籍:”和“这些资源可帮助您更好地理解 bar:”等)。我已经看到了在参考书目中添加序言的解决方案(在参考书目标题和第一个 bibitem 之间添加文本),但是我不知道如何使用该解决方案来满足我的需求。有没有办法解决这个问题,或者手动创建整个书目会更容易?

答案1

窃取并改编自这个问题,这就是我想到的。它为您提供了bibcomment引入注释的环境,这些注释将以段落的形式出现在参考书目项目之间。

\documentclass{article}

\newenvironment{bibcomment}{%
  \item[]%
  \begingroup%
  \par%
  \parshape0%
}{%
  \par%
  \endgroup%
}

\begin{document}

\begin{thebibliography}{1}

\begin{bibcomment}
  Here are two papers on denotational semantics; the first of these
  is the seminar paper on this topic.
\end{bibcomment}

\bibitem{scott-1971-tmscl}
D.~Scott and C.~Strachey.
\newblock Towards a mathematical semantics for computer languages.
\newblock In {\em Proceedings of the Symposium on Computers and Automata},
  pages 19--46, Brooklyn, NY, 1971. Polytechnic Press.

\bibitem{tennent-1976-dspl}
R.~D. Tennent.
\newblock The denotational semantics of programming languages.
\newblock {\em Communications of the ACM}, 19(8):437--453, August 1976.

\begin{bibcomment}
  They are followed by three excellent books on the subject.
\end{bibcomment}

\bibitem{tennent-1991-spl}
R.~D. Tennent.
\newblock {\em Semantics of Programming Languages}.
\newblock Englewood Cliffs, NJ, 1991.

\bibitem{gunter-1992-splst}
C.~A. Gunter.
\newblock {\em Semantics of Programming Languages: Structures and Techniques}.
\newblock Foundations of Computing Series. 1992.

\bibitem{mitchell-1996-fpl}
J.~C. Mitchell.
\newblock {\em Foundations for Programming Languages}.
\newblock 1996.

\end{thebibliography}
\end{document}

您将获得以下内容:

带注释的参考书目

相关内容