正如标题所述,我正在尝试在 MWE\todo{...}
上使用longtable
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{longtable}
\usepackage{array}
\usepackage{lipsum}
\usepackage{todonotes}
\begin{document}
\begin{longtable}{|l|>{\arraybackslash}p{10cm}|}
\hline
\multicolumn{2}{|c|}{\textbf{Title}: Test table}\\
\hline
\endhead
\hline
\textbf{Column 1} & \lipsum[1]\\
\hline
\textbf{Column 2} & \lipsum[2]\todo{test}\\
\hline
\caption{Table to test \texttt{todonotes}}\label{tab:test}\\
\end{longtable}
\end{document}
当我编译时,我得到的错误是:
LaTeX Error: Float(s) lost.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.24 \end{document}
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
我确实认为这是由于某些不兼容造成的,但我希望有其他人来帮我解决这个问题。
提前谢谢!