% 开头加上
\usepackage{chngcntr}
\counterwithin{figure}{section} % 在article中使用section, 其他可能使用chapter
% 图片部分使用 fig:\thesection.\thefigure
\begin{figure}[h]
\centering
\includegraphics[width=0.7\textwidth]{bayes_result.png}
\caption{caption}
\label{fig:\thesection.\thefigure}
\end{figure}
latex: overleaf中想要达到效果:图1.1,图1.2, 图2.1, 图2.2 .....
于 2023-08-12 11:33:03 首次发布