Longtable 等宽字体

Longtable 等宽字体

如何将长表格中的所有文本格式化为等宽字体。\texttt{在前面或后面添加\begin{longtable}}在末尾添加 a 会得到

Runaway argument?
{ \begin {longtable}{lll} 
! Paragraph ended before \text@command was complete.

错误。

答案1

最简单的方法:

\begingroup
\ttfamily
\begin{longtable}...
...
\end{longtable}
\endgroup

相关内容