简体   繁体   English

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

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

What I am searching for, is a method to start the indexing inside the latex figure ambient from a fixed number that I choose.我正在寻找的是一种从我选择的固定数字开始在 latex 图形环境中建立索引的方法。

Looking at the following screenshot: example image what I want is that the indexing does not start from 1, but from a specific number.查看以下屏幕截图:示例图像我想要的是索引不是从 1 开始,而是从特定数字开始。

Online I found the command \setcounter{figure}{} , but adding it to my latex file does not change anything.在网上我找到了命令\setcounter{figure}{} ,但是将它添加到我的 latex 文件中并没有改变任何东西。 As a proof here's the corresponding latex code:作为证明,这里是相应的 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*}

where I put \setcounter{figure}{7} in order to make the numbering start from 7, but the result is the one that you can seen in the above figure.我放了\setcounter{figure}{7}以使编号从 7 开始,但结果是您在上图中看到的那个。

Do you have any suggestions on how to solve the problem?您对如何解决问题有什么建议吗? Thank you in advance for the help!提前感谢您的帮助!

Solved: the right command to use in the \figure environment was \addtocounter{subfigure}{n} , where n is the number added to the subfigure counter (in my case n=6 to have the first figure with counter (7)), in place of \setcounter{figure}{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