LaTeX Longtable 错误:生成了仅有标题的页面:我该如何修复?

LaTeX Longtable 错误:生成了仅有标题的页面:我该如何修复?

这是我的 LaTeX:(如何格式化它?):[编辑:] 减少示例

\documentclass{article}
\usepackage{longtable}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\noindent 
\begin{longtable}{ll}
\caption[]{Decomposition } \\ 
  &   \\ \endhead\hline
 & 
$ \begin{array}{l}
1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ +1 \\ 
\end{array}$
\end{longtable}
\end{landscape}
\end{document}

以下是我得到的结果: 最新简化示例

原始示例 .pdf

提前感谢您的帮助!

答案1

很明显,你的问题标题有误(我的软件包只有未记录的功能绝不错误:-)

您可以使用array包来制作 longtable 列数学模式,然后摆脱内部,array以便表格可以按照您的意愿分解:

\documentclass{article}
\usepackage{longtable,array}
\usepackage{lscape}
\begin{document}
\begin{landscape}

\begin{longtable}{l>{$}l<{$}}
\caption[]{Decomposition } \\ 
  &   \\ \endhead\hline
&1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1 \\& +1
\end{longtable}
\end{landscape}
\end{document}

相关内容