问题描述

如果你在figure环境的\caption\captionof中使用\cite,但是参考文献的顺序仍然不正确,可能是因为LaTeX的处理流程导致了这个问题。

比如图片在第二章节但里面引用了参考文献,在文章末尾的参考文献第二章图片的参考文献顺序,却比第一章的要靠前,latex优先处理的图标题里的bibtex。

解决办法

在这种情况下,可以尝试使用notoccite宏包来防止\cite命令影响引文的排序。

在导言区添加以下命令:

\usepackage{notoccite}

这个宏包会禁止在文本中使用的\cite命令影响参考文献的排序。请确保它在其他biblatex宏包之前加载。

如果这个方法仍然不能解决问题,可以尝试重新编译文档多次。有时候,LaTeX 需要多次运行以正确处理引用和参考文献。

如果问题仍然存在,你可能需要检查你的文档结构和使用的宏包,确保它们没有引起引用顺序混乱的冲突。

正文里引用如下:

\begin{figure}
    \centering
    \includegraphics[width=0.8\textwidth]{imgs/ch2/preload-rivet.pdf}
	\caption[The variability of the clamping stress as a function of the grip length for carbon steels.]{The variability of the clamping stress as a function of the grip length for carbon steels. (figure cite from \cite{a}, experimental data from Åkesson \cite{b},Wilson and Thomas \cite{Wilson1938FatigueJoints}, and Zhou \cite{c}. Also the average trend from Baron \& Larson \cite{d}, and upper and lower bounds from van Maarschalkerwaart \cite{e} are reported.)}
    \label{fig-preload-rivet}
\end{figure}

在这里插入图片描述

List of Figure

当像上面的例子图标题太长的时候,会出现 list of figure 也会出现很长一串,但是后面的备注是不希望出现的,因此可以采用以下办法来使list of figure里面的只参照这个[short-name] 以达到简略的方法。1

\caption[short-name]{Long-name}

![[Pasted image 20231114195046.png]]

#latex #figure


  1. https://www.ntnu.no/wiki/display/imtsoftware/Figures+in+LaTeX ↩︎

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐