LaTeX 附录顺序错误

LaTeX 附录顺序错误

我正在用 LaTeX 文档类撰写论文article。在论文中添加附录时遇到以下问题。

\documentclass[11pt,a4paper]{article}

\usepackage[titletoc]{appendix} 

\begin{document}

        \input{9-Appendix.tex}

**9-Appendix.tex**

\begin{appendices}

\section{Tables and figures}\label{appendix:A}

\subsection{...}
\begin{table}[h]
\resizebox{\textwidth}{!}{%
\begin{tabular}{@{}|l|l|l|@{}}
\end{tabular}%
}
\caption{First table caption}
\end{table}

\pagebreak

\begin{landscape}
\subsection{...} 
\begin{longtable}{lllllll} 
\caption{Second table caption}
\label{tab:my-table}\\
\end{longtable}
\end{landscape}

\pagebreak

\begin{table}[h]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
\end{tabular}%
}
\caption{Third table caption}
\label{tab:my-table}
\end{table}

\begin{table}[h]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
\end{tabular}%
}
\caption{Fourth table caption}
\label{tab:my-table}
\end{table}

\begin{table}[h]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
\end{tabular}%
}
\caption{Fifth table caption}
\label{tab:my-table}
\end{table}

\begin{table}[h]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
\end{tabular}%
}
\caption{Sixth table caption}
\label{tab:my-table}
\end{table}

\section{Historical series on ...} \label{appendix:B}
\par Text

\end{appendices}
    
\end{document}

现在的问题是,我的附录 B 出现在附录 A 的第一/第二小节之间的某个位置,而不是出现在最后一小节之后。

有什么办法可以解决这个问题吗?使用\begin{subappendices} \end{subappendices}无法解决问题。

答案1

为了完整性,现在运行:

\documentclass[11pt,a4paper]{article}

\usepackage[titletoc]{appendix}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{float}


\begin{document}

\begin{appendices}

\section{Tables and figures}\label{appendix:A}

\subsection{...}
\begin{table}[H]
\resizebox{\textwidth}{!}{% use resizebox with textwidth
\begin{tabular}{ l | l }
  {\bf Symptom} & {\bf Metric} \\
\hline
This is a & rather small table
\end{tabular}% close resizebox
}
\caption{First table caption}
\end{table}

\pagebreak

\begin{landscape}
\subsection{...} 
\begin{longtable}{lllllll} 
Some & really & really & long & text & goes & here\\
\caption{Second table caption}
\label{tab:my-table}\\
\end{longtable}
\end{landscape}

\pagebreak

\begin{table}[H]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
Some & text & goes & here
\end{tabular}%
}
\caption{Third table caption}
\label{tab:my-table}
\end{table}

\begin{table}[H]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
Some & text & goes & here
\end{tabular}%
}
\caption{Fourth table caption}
\label{tab:my-table}
\end{table}

\begin{table}[H]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
Some & text & goes & here
\end{tabular}%
}
\caption{Fifth table caption}
\label{tab:my-table}
\end{table}

\begin{table}[H]
\scriptsize
\centering
\resizebox{\textwidth}{!}{% 
\begin{tabular}{llll}
Some & text & goes & here
\end{tabular}%
}
\caption{Sixth table caption}
\label{tab:my-table}
\end{table}

\section{Historical series on ...} \label{appendix:B}
\par Text

\end{appendices}
    
\end{document}

带有调整大小框的表格

相关内容