附录图标示 A.3 在 A.2 之前

附录图标示 A.3 在 A.2 之前

我在附录中遇到了图表标签问题。一旦我向其中添加一个章节,图表就会被错误地放置。结果不是 A1、A2、A3、A 4,而是 A1、A3、A2、A4。这不仅仅是标签,这实际上是错误的图像。我们需要一个用于 MWE 的虚拟图像,所以我只发布了代码的重要部分。这些图表只是 4 个图表环境,每个环境有 2 个子图表。删除 twoside 并不能解决问题。如果我将 \chapter{Additional Results} 替换为 \chapter*{Additional Results},图表就会正确放置。页码等都没问题,有人有想法吗?

\documentclass[twoside,openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[nottoc]{tocbibind}
\usepackage[title,titletoc,toc]{appendix}
\usepackage{graphics,float}
\captionsetup[subfigure]{labelformat=empty}
%
%
\begin{document}
\tableofcontents
\chapter{dummy}
\begin{appendices}
\chapter{Additional results}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \begin{figure}[H]
\centering
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Ret_dirdiff_s15_Scatterplot}
  \end{subfigure}
  \hfill
   \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{FA_dirdiff_s15_Scatterplot}
  \end{subfigure}
  \caption[Scatterplots of direction angle difference and PLI retardation and DTI FA]{Scatterplots of direction angle difference and PLI retardation (top) and DTI FA (bottom)}
  \label{fig:dirdifffaret}
\end{figure}
\begin{figure}
\centering
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Scatterplot_Direction_Ret}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Scatterplot_Directions_FA}
  \end{subfigure}
  \caption[Scatterplot of direction angles as a function of PLI retardation and DTI FA]{Scatterplot of direction angles as a function of Retardation (top) and FA (bottom)}
  \label{fig:scatterdifffaret}
\end{figure}
\begin{figure}[H]
\centering
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Ret_incl_diff_s15_Scatterplot}
  \end{subfigure}
  \hfill
   \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{FA_incldiff_s15_Scatterplot}               \end{subfigure}
  \caption[Scatterplots of inclination angle difference and PLI retardation and DTI FA]{Scatterplots of inclination angle difference and PLI retardation (top) and DTI FA (bottom)}
  \label{fig:incldifffaret}
\end{figure}
\begin{figure}
\centering
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Scatterplot_Inclinations_Ret}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{0.7\textwidth}
  \centering
  \includegraphics[width=\textwidth]{Scatterplot_Inclinations_FA}
  \end{subfigure}
  \caption[Scatterplot of inclination angles as a function of PLI retardation and DTI FA]{Scatterplot of direction angles as a function of PLI retardation (top) and DTI FA (bottom)}
  \label{fig:scatterinclfaret}
\end{figure}
\end{appendices}
\end{document}

答案1

您将浮动的图形(这是图形环境的重点)与使用 [H] 阻止浮动的图形混合在一起,如果这样做,图形乱序是可以记录的结果。您可能需要\clearpage阻止浮动图形超过 H 图形(或不使用 H)。

相关内容