繁体   English   中英

Latex 数字环境:如何从固定数字开始索引数字?

[英]Latex figure ambient: how to start the indexing of the figures from a fixed number?

我正在寻找的是一种从我选择的固定数字开始在 latex 图形环境中建立索引的方法。

查看以下屏幕截图:示例图像我想要的是索引不是从 1 开始,而是从特定数字开始。

在网上我找到了命令\setcounter{figure}{} ,但是将它添加到我的 latex 文件中并没有改变任何东西。 作为证明,这里是相应的 latex 代码:

\begin{figure*}[bth]
\renewcommand*\thesubfigure{\arabic{subfigure}}
\setcounter{figure}{7}
\subfloat[Type 1, correctly classified]
{\label{fig:7corr}
\includegraphics[width=.3\linewidth]{Figures/saliencymaps/correct/1smcorrtype1.pdf}} \quad
\subfloat[Type 2, correctly classified]
{\label{fig:8corr}
\includegraphics[width=.3\linewidth]{Figures/saliencymaps/correct/2smcorrtype2.pdf}} \quad
\subfloat[Int. type, correctly classified]
{\label{fig:10corr}
\includegraphics[width=.3\linewidth]{Figures/saliencymaps/correct/4smcorrtypeint.pdf}} \quad
\subfloat[Type 2, correctly classified]
{\label{fig:11corr}
\includegraphics[width=0.3\linewidth]{Figures/saliencymaps/correct/5smcorrtype2.pdf}} \quad
\subfloat[Type 2, correctly classified]
{\label{fig:12corr}
\includegraphics[width=0.3\linewidth]{Figures/saliencymaps/correct/6smcorrtype2.pdf}} \quad
\subfloat[Int. type, correctly classified]
{\label{fig:13corr}
\includegraphics[width=0.3\linewidth]{Figures/saliencymaps/correct/7smcorrtypeint.pdf}} \quad
\subfloat[Type 1, correctly classified]
{\label{fig:14corr}
\includegraphics[width=0.3\linewidth]{Figures/saliencymaps/correct/8smcorrtype1.pdf}} \quad
\subfloat[Type 1, correctly classified]
{\label{fig:15corr}
\includegraphics[width=0.3\linewidth]{Figures/saliencymaps/correct/9smcorrtype1.pdf}} \quad
\caption[Saliency maps for correctly classified spectra.]{Saliency maps for correctly classified spectra.}\label{fig:sal_maps_corr}
\end{figure*}

我放了\setcounter{figure}{7}以使编号从 7 开始,但结果是您在上图中看到的那个。

您对如何解决问题有什么建议吗? 提前感谢您的帮助!

已解决:在\figure环境中使用的正确命令是\addtocounter{subfigure}{n} ,其中 n 是添加到子图计数器的数字(在我的情况下,n=6 使第一个数字带有计数器(7)) ,代替\setcounter{figure}{7}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM