Latex:章节标题中的引用首先放入目录中

发布于 2024-07-23 00:17:53 字数 326 浏览 6 评论 0原文

我在章节标题中引用了文档中的一些部分:

\section{标题 \cite{abc}, \cite{def}} 文本

我也使用目录功能,但 Latex 必须首先查看标题(目录)中的引用,并为它们分配第一个引用排名,无论它们在整个文档中的位置如何。

因此,\section 或 \subsection 内的任何引用都将被分配为 [1]、[2] 等,后面是该节文本内的引用。

以前有人遇到过这个问题吗? 除了简单地将 \cite 命令放在段落内的某个位置之外,还有其他方法可以解决此问题吗? 如果可能的话我想避免这种情况。

提前干杯!

I have some citations for sections of my document that I have put in the section heading:

\section{The title \cite{abc}, \cite{def}}
Text

I am also using the table of contents function, but Latex must look at the citations in the headings (for the table of contents) first and assign them the first citation rankings, regardless of their place in the overall document.

So, any citations inside of \section or \subsection will be assigned [1], [2], and so on, and the citations within the text in the section follow after.

Has anyone encountered this problem before? Is there any way of getting around this other than simply putting the \cite command somewhere inside the paragraph? I'd like to avoid this if possible.

Cheers in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

难忘№最初的完美 2024-07-30 00:17:53

我同意 jlouis 关于避免在章节标题中引用的建议。 但如果您坚持,一种解决方案可能是使用以下形式的 \section 命令:

\section[Section title sans citation]{Section title with citation\cite{key}}

目录将包含一个由第一个(可选)参数组成的条目(“没有引用的章节标题”) ),节标题本身将是第二个(必需)参数(“带有引文[34]的节标题”)。

默认情况下,第一个(可选)参数也将用作运行头中的文本。

I agree with jlouis' recommendation of avoiding citations in section headings. But if you insist, one solution may be to use the following form of the \section command:

\section[Section title sans citation]{Section title with citation\cite{key}}

The table of contents will contain an entry consisting of the first (optional) argument ("Section title sans citation") and the section heading itself will be the second (required) argument ("Section title with citation[34]").

The first (optional) argument will also be used as the text in the running heads by default.

兔小萌 2024-07-30 00:17:53

如果您使用 \bibliographystyle{unsrt} 您肯定会在目录和图表列表中遇到引用问题。 为了解决它使用

\caption[caption to be displayed in list of figures]{caption to be displayed under the figure \cite{abc}} 

你的数字

In case you are using \bibliographystyle{unsrt} you would defintely run into this problem of citations in your TOC and List of figures or tables. For solving it use

\caption[caption to be displayed in list of figures]{caption to be displayed under the figure \cite{abc}} 

with your figure

倾城°AllureLove 2024-07-30 00:17:53

我在撰写论文时遇到了类似的问题,但不是标题,而是嵌入在图形标题中的引文。 我通过以下方法解决了标题问题:

\caption{main caption. taken from \cite{abc}}{main caption}

LaTeX 采用图形标题的第一个参数,以及它放入图形列表中的标题的第二个参数。 图列表中缺少引文意味着正文中的顺序是正确的。

我是凭记忆工作的,所以上面的参数顺序可能是相反的。 不管怎样,看看是否可以用同样的方式定义标题。

I ran into a similar problem when writing my thesis, but rather than being with headings it was citations embedded in figure captions. I got around the caption problem with the following:

\caption{main caption. taken from \cite{abc}}{main caption}

LaTeX takes the first argument for the figure caption, and the second argument for the caption that it puts in the list of figures. The lack of citations in the figure list means the ordering in the main body is correct.

I'm working from memory so the order of arguments above may be backwards. Regardless, see if headings can be defined in the same way.

放血 2024-07-30 00:17:53

问题是引用尚未注册。 在任何地方使用 \nocite{abc},例如在 subsection{... \cite{abc}...} 之后。

The problem is that the reference has not been registered. Use \nocite{abc} everywhere, for instance just after subsection{... \cite{abc}...}.

坏尐絯 2024-07-30 00:17:53

您可能不喜欢这个答案,但我认为标题中的引用是一种不好的风格。 我宁愿建议您使用另一个标题,然后在其后面的段落中添加引用参考文献。 我读过很多论文,但我记得没有一篇在标题中使用过参考文献。

同样,我可以建议使用 bibTex 和 bibtool 来管理您的参考书目数据库。 Bibtool 可以标准化引文键,这样您就可以删除其他人的 bibtex 参考文献,运行 bibtool,然后您就拥有了标准化的键。

You may perhaps not like this answer, but I think citations in headings is a bad style. I would rather recommend that you use another heading and then throw your citation references in the paragraphs following it. I've read quite some papers and none of those I recall used references in headings.

In the same vein, may I recommend using bibTex and bibtool for managing your bibliography database. Bibtool can normalize the citation keys so you can just drop other peoples bibtex references, run bibtool, and then you have standardized keys.

落花浅忆 2024-07-30 00:17:53

只需将引用放在属性后面即可。

示例,“\section{结论}\cite{引用}”。

引文标签不会显示在目录中,只会显示在章节标题旁边。

Just place the citation after the attribute.

Exapmle," \section{Conclusion}\cite{citation} ".

The citation label will not show up in table of contents and will show only beside the section title.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文