我想使用csvsimple软件包在LaTeX中设置一个长表。我认为我包括的所有内容都正确,但是仍然出现“!未定义的控制序列”错误。
我试图仅将下面的代码编译到一个单独的文件中,但是它也不起作用。
我正在使用Texmaker 5.0.3和PDFlatex进行编译。
\documentclass[12pt,a4paper,draft]{article}
\usepackage{csvsimple}
\begin{document}
\csvautotlongtable[separator=pipe]{foo.csv}
\end{document}
完整的错误消息是:
! Undefined control sequence.
\GenericError ...
#4 \errhelp \@err@ ...
l.234 ...tabular[separator=pipe]{foo.csv}
The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
答案 0 :(得分:0)
该命令应为\csvautolongtable
而不是\csvautotlongtable
,并且缺少longtable
软件包。
\documentclass[12pt,a4paper,draft]{article}
\usepackage{csvsimple}
\usepackage{longtable}
\begin{document}
\csvautolongtable[separator=pipe]{foo.csv}
\end{document}