使用 CSV Tools perl 脚本(这是为了删除 CSVTools 命令,以便所有内容都在一个文件中),我收到以下错误。CSV 文件中没有 EOF 字符(文件末尾除外)。其他人遇到过这个问题吗?错误如下:
Bens-MacBook-Pro:Ellison-Glaeser tazz$ /opt/local/share/texmf-texlive-dist/doc/latex/csvtools/csvtools.pl EGstat.tex EGstatFlat.tex
Converting \CSVtotabular{paper_source_tables/HLeastTable.csv}
EOF found whilst scanning for \CSVtolongtable third argument on line 426
以下是相关行的乳胶:
\begin{table}[t]
\caption{Least Concentrated Industries in \citet{HolmesStevens2003}}\label{table:leastcon}
\centering
\scriptsize
\CSVtotabular{paper_source_tables/HLeastTable.csv}{rlrrrr}{
\toprule
97 NAICS &
Name &
Plant Herfindahl &
Plants &
$\gamma$ &
95\% Sig\\\midrule
%\multicolumn{6}{c}{ $\gamma$ That Are Not Statistically Significant At 5\% Level Are Indicated by ``*"}\\\midrule
}{
\insertbyname{NAICS}&
\insertbyname{Name} &
\insertbyname{Herfindahl} &
\insertbyname{Plants} &
\insertbyname{Gamma} &
\insertbyname{Significants}
\ifthenelse{\numexpr 5*(\value{csvrownumber} / 5) \relax = \value{csvrownumber}}{\\\seprule}{\\}
}{
\insertbyname{NAICS}&
\insertbyname{Name} &
\insertbyname{Herfindahl} &
\insertbyname{Plants} &
\insertbyname{Gamma} &
\insertbyname{Significants}
\\\bottomrule
}
或者,可能是这样(上表后面的长表):
\CSVtolongtable{paper_source_tables/SimulationResults.csv}{rccrrr}{
\caption{Simulated Critical Values}\label{tab:simulationresults}\\\toprule
Plants &
$\sigma$ &
\multicolumn{2}{c}{\underline{95\% Herfindahl Range}} &
5\% $\gamma $ Critical Value &
95\% $\gamma $ Critical Value\\\midrule
\endfirsthead
%\caption[]{Simulation Results}\\
%\multirow{2}{*}{\small State}&\multicolumn{2}{c}{2001}&\multicolumn{2}{c}{1997}\\\cmidrule(l{3ex}r){2-3}\cmidrule(l{3ex}r){4-5} EXAMPLE OF COMPLICATED UNDERLINING STRUCTURE
%&\multicolumn{1}{c}{VA}&\multicolumn{1}{c}{Percent}&\multicolumn{1}{c}{VA}&\multicolumn{1}{c}{Percent}\\\midrule
\multicolumn{6}{l}{ \small \tablename\ \thetable{} -- \emph{continued from previous page}}\\
\toprule
Plants &
$\sigma$ &
\multicolumn{2}{c}{\underline{95\% Herfindahl Range}} &
\bfseries 5\% $\gamma $ Critical Value &
\bfseries 95\% $\gamma$ Critical Value\\\midrule
\endhead
\hline
\multicolumn{6}{r}{ \em \small Continued on next page}
\endfoot
\\[-2ex]
\multicolumn{6}{l}{ \small \textit{Source:} Author's calculations. }
\endlastfoot
}{
\ifthenelse{\numexpr 12*( ( \value{csvrownumber} - 1 ) / 12) \relax = \numexpr ( \value{csvrownumber} -1 ) \relax }{\bfseries }{}\insertbyname{Plants} &
\insertbyname{Standard Deviation} &
\insertbyname{Low Herfindahl Range} &
\insertbyname{High Herfindahl Range} &
\insertbyname{Five Critical Value} &
\insertbyname{Ninety Five Critical Value}
\ifthenelse{\numexpr 6*(\value{csvrownumber} / 6) \relax = \value{csvrownumber}}{\\\seprule}{\\}
}{
\insertbyname{Plants} &
\insertbyname{Standard Deviation} &
\insertbyname{Low Herfindahl Range} &
\insertbyname{High Herfindahl Range} &
\insertbyname{Five Critical Value} &
\insertbyname{Ninety Five Critical Value}
\\\bottomrule
}
然而,这些都离第 426 行很远,而且 CSV 甚至没有第 426 行。
这会生成一个完美的 PDF,但它似乎不能与 perl 脚本一起工作。