longtable 没有中断

longtable 没有中断

我正在使用 longtable 环境来放置一些图形图像(在我已经制作的所有其他带有表格环境的图形中完美运行)但是,当进入 longtable 时,页面没有中断,我找不到问题所在。任何帮助都非常感谢。


\begin{figure} [htbp]
\begin{center}
\begin{longtable}{l l}
\endfirsthead
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\endhead
\endfoot
\endlastfoot
\textbf{a)} & \textbf{b)} \\
\includegraphics[width=\figwidth]{images/FAs1} & \includegraphics[width=\figwidth]{images/FAs2}\\
\textbf{c)} & \textbf{d)} \\
\includegraphics[width=\figwidth]{images/FAs3} & \includegraphics[width=\figwidth]{images/FAs4}\\
\textbf{e)} & \textbf{f)} \\
\includegraphics[width=\figwidth]{images/FAs5} & \includegraphics[width=\figwidth]{images/FAs6}\
\newpage

\textbf{g)} & \textbf{h)} \\
\includegraphics[width=\figwidth]{images/FAs7} & \includegraphics[width=\figwidth]{images/FAs8}\\
\textbf{i)} & \textbf{j)} \\
\includegraphics[width=\figwidth]{images/FAs9} & \includegraphics[width=\figwidth]{images/FAs10}\\
\caption{Fatty acids found in \nig in \wt and \crt }
\label{fig:FAs}
\end{longtable}
\end{center}
\end{figure}

非常感谢!

答案1

正如@David Carlisle 所指出的,您不应该将 a 放入longtable环境中figure。这是新代码。我不得不更改宽度,因为不知道您在那里使用了什么。只需将其改回来。我还关闭了标题中的命令。

% arara: pdflatex

\documentclass{article}
\usepackage{longtable}
\usepackage[%
    ,demo
    ]{graphicx}

\begin{document}
\begin{longtable}{l l}
\endfirsthead
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\endhead
\endfoot
\endlastfoot
\textbf{a)} & \textbf{b)} \\
\includegraphics[width=5cm]{images/FAs1} & \includegraphics[width=5cm]{images/FAs2}\\
\textbf{c)} & \textbf{d)} \\
\includegraphics[width=5cm]{images/FAs3} & \includegraphics[width=5cm]{images/FAs4}\\
\textbf{e)} & \textbf{f)} \\
\includegraphics[width=5cm]{images/FAs5} & \includegraphics[width=5cm]{images/FAs6}\\
%
\newpage
%
\textbf{g)} & \textbf{h)} \\
\includegraphics[width=5cm]{images/FAs7} & \includegraphics[width=5cm]{images/FAs8}\\
\textbf{i)} & \textbf{j)} \\
\includegraphics[width=5cm]{images/FAs9} & \includegraphics[width=5cm]{images/FAs10}\\
\caption{Fatty acids found in %\nig in \wt and \crt % commented out for not knowing what that is.
}
\label{fig:FAs}
\end{longtable}
\end{document}

相关内容