子章节中的图片引用编号不对应

2020-06-08 10:51发布

## 编译环境 操作系统 * [x ] Windows 7/8/10 * [ ] macOS * [ ] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [ x] TexLive ...

## 编译环境 操作系统 * [x ] Windows 7/8/10 * [ ] macOS * [ ] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [ x] TexLive `年份` * [ ] MikTeX `版本号` * [ ] CTeX `若需勾选,请把[ ]改成[x]` ## 我的问题 如何把Figure 1.1变成Figure 2? ``` \documentclass{article} \usepackage[pdftex]{graphicx}\usepackage{color} \usepackage{bm,amsfonts,amssymb,amsmath,float}\usepackage{sectsty} \usepackage[section]{placeins} \begin{document} \section{Numerical Experiments} \label{SectionExample} As indicated by Figure \ref{FigRobust}. \par \begin{figure}[H] \label{FigRobust} \centering \includegraphics[width=4in]{trest.png} \caption{Figure pq} \end{figure} \subsection{Robustness with outliers} As indicated by Figure \ref{FigRobust2}. \par \begin{figure}[H] \label{FigRobust2} \centering \includegraphics[width=4in]{trest.png} \caption{Figure lo} \end{figure} \end{document} ```
1条回答
sikouhjw
2020-06-08 10:59 .采纳回答
`\label` 请放 `\caption` 后面,这是常识,去看 lshort-zh-cn

一周热门 更多>