我正试着把我的数字编号为1、2、3等等。尽管我使用的是\counterwithout{figure}{section},但LaTeX只使用节号(例如1.1、1.2等)来计算它们。没有错误信息。可能的问题是什么?
\usepackage{chngcntr}
\counterwithout{figure}{section}
\usepackage[pdfborder={0 0 0}]{hyperref}
\begin{document}
\input{chapter/01_introduction}
%the figure is in a subsection as part of the introduction
\end{document}01_introduction文件如下所示:
% !TEX root = ../root.tex
\section{Introduction}
\subsectiction{Title of the subsection}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=\textwidth]{chapter/figures/fig_bsp.png}
\captionof{figure}{caption of the figure}
\label{fig:1}
\end{center}
\end{figure}发布于 2019-07-09 23:14:34
在制作最小的工作示例时,我找出了我的错误:我使用了一个包含:'\renewcommand{\thefigure}{\thesection.\arabic{figure}}‘的模板,它阻止了我的计算为1,2,3。谢谢你的帮助!
https://stackoverflow.com/questions/56853929
复制相似问题