向参考书目添加文本

向参考书目添加文本

我想知道是否有简单的如何将一行文字添加到参考书目中?

假设我使用书目环境制作了一个内联书目,并希望在两个书目项目之间添加一条线,例如,

BIBLIOGRAPHY
[1] AAA
[2] BBB
Here text comes in.
[3] CCC
etc.

我见过许多类似的主题,但它们似乎处理一些特定的问题,例如,当编号发生变化时等等。有没有办法只添加一行文本?

编辑:我尝试了@David 提出的方法(据我理解),但它产生了两个单独的参考书目部分:

\documentclass[11pt]{report}
\begin{document}
XXX

\begin{thebibliography}{99}
\bibitem{A1}
  Ref A1
\end{thebibliography}
Text
\begin{thebibliography}{99}
\setcounter{enumiv}{1}
\bibitem{B1}
  B1
\end{thebibliography}
\end{document}

关于我想要实现的目标:我希望通过一些分隔文本行将嵌入的参考书目分成 2 个部分,最多 3 个部分。

答案1

在此处输入图片描述

环境的定义report

\newenvironment{thebibliography}[1]
     {\chapter*{\bibname}%
      \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
....

因此,对于重新启动的版本,您想保留列表但丢失章节标题,例如:

\documentclass[11pt]{report}
\begin{document}
XXX

\let\savedchapter\chapter % just if you need real chapters later
\begin{thebibliography}{99}
\bibitem{A1}
  Ref A1
\end{thebibliography}
\renewcommand\chapter[2]{}% eat * and the title in \chapter*{\bibname}
Text
\begin{thebibliography}{99}
\setcounter{enumiv}{1}
\bibitem{B1}
  B1
\end{thebibliography}

\let\chapter\savedchapter
\end{document}

相关内容