! Package array Error: Illegal pream-token (x): `

2019-08-22 15:35发布

表格的格式问题,没有公式时可以正常使用,加入公式后出现! Package array Error:  Illegal pream-token (x): `。求教是哪里出现问题。\documentcla...

表格的格式问题,没有公式时可以正常使用,加入公式后出现! Package array Error:  Illegal pream-token (x): `。求教是哪里出现问题。

\documentclass[review]{elsarticle}


\usepackage{lineno,hyperref}




\usepackage{booktabs} 




\usepackage{tabularx} 


\usepackage{multirow}


\modulolinenumbers[5]


\usepackage{amssymb}


\usepackage{graphicx}


\journal{Journal of \LaTeX\ Templates}


\bibliographystyle{elsarticle-num}




\begin{document}




\begin{table*}

\caption{Parameter values of BS model}

\begin{tabularx}{\textwidth}{@{} llx@{}}

\toprule

Variable & Value & Explanation\\

\midrule

\multirow{2}{*}{$S_0$}  &\$5.3761m     & Discounted value of net cash flow in the first year.\\

&\$35.5995m  & The sum of the present value of the total net cash flow during the economic life of the entire equipment.\\

K                       &\$6.46m      &The execution price is expressed by the initial investment amount of the desulfurization equipment.\\

$\sigma$         &31.44\%   &The volatility of fuel price.\\

Discount rate    &11\%       &Discount rate is weighted average capital cost (WACC).\\ 

T              &15y       &Economic Life of Desulfurization Equipment.\\

$\Delta t$       &1y       &Interval time\\

\bottomrule

\end{tabularx}

\end{table*}


\end{document}


1条回答
E降调
2019-08-22 22:25

\begin{tabularx}{\textwidth}{@{} llx@{}}

这个红色的 x 必须写成大写X。为什么?因为这是 tabularx 环境的语法,而LaTeX代码里大小写是有分别的,所以一定要注意。

一周热门 更多>