表格的格式问题,没有公式时可以正常使用,加入公式后出现! 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 回答1

0
<p style="box-sizing: content-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 30px; color: rgb(47, 47, 47); font-family: "><span style="box-sizing: content-box; margin: 0px; padding: 0px; white-space: pre;"> </span>\begin{tabularx}{\textwidth}{@{} ll<span style="color: rgb(255, 0, 0);">x</span>@{}}</p><p>这个红色的 x 必须写成大写X。为什么?因为这是 tabularx 环境的语法,而LaTeX代码里大小写是有分别的,所以一定要注意。</p>

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。