在用LaTeX写学术论文时,通常会用术语表(Nomenclature)对文章中的集合、参数、变量进行声明。常见的生成术语表的方法有两种:

  1. 调用Nomenclature包进行术语表的生成(快捷,但是需要一定的操作技巧);
  2. 用表格进行术语表生成(适合LaTeX小白使用,需要提前将所需内容排好版)。

核心思想
以Elsevier的术语表为例,介绍用表格生成术语表的核心思想:

  1. 利用表格框线表示术语表的边框;
  2. 术语表共包含N行,每一行有4列,每列内容可以用’&'进行间隔。即:| 名字 &术语解释 &名字 &术语解释 |;
  3. 每一行结束后,用’\'换行;
  4. ‘\multicolumn{2}’ 用于对参数(Parameters)、变量(Variables)等内容进行突出显示,在使用时需要用到宏包\usepackage{multirow};
  5. \textbf{}表现文字的黑体。

代码
经过上述操作后,表格成型,即可生成想要的术语表。其核心代码如下:

\begin{table*}
    \begin{tabular}{|c p{200pt} c p{200pt}|}
    \hline  %
    \multicolumn{2}{|l}{\multirow{2}*{\textbf{Nomenclature}}}&&\\
    &&&\\  %
    \multicolumn{2}{|l}{\textbf{Indices}}&c&Speed of light in a vacuum\\
    $h$ &index of number&G& Gravitational constant\\
    t&index of hours&\multicolumn{2}{l|}{\textbf{Variables}}\\
    \multicolumn{2}{|l}{\textbf{Sets}}&X&Overall cost (CNY)\\
    $\mathcal{N}$&set of participators& $Y_a$&Cost of  a (CNY)\\
    T&set of time intervals&$Y_b$&Cost of  b (CNY)\\
    \multicolumn{2}{|l}{\textbf{Parameters}}&$C_{N}^{i}$&Operation costs of Pro$_i$ without energy trading (CNY)\\
    $\rho$&Friction index& Z &Decision variables \\
    V&Constant volume&$C_e^{i}$& Net payment  (CNY)\\
    \hline  %
    \end{tabular}
\end{table*}

其代码效果图如下:
在这里插入图片描述
以上代码效果有个问题就是缩写词居中,我们可以采用将上述代码的:

\begin{tabular}{|c p{200pt} c p{200pt}|}

中的c改为l即可,以下代码方式进行左对齐显示,代码如下:

\begin{table*}
    \begin{tabular}{|l p{200pt} l p{200pt}|}
    \hline  %
    \multicolumn{2}{|l}{\multirow{2}*{\textbf{Nomenclature}}}&&\\
    &&&\\  %
    \multicolumn{2}{|l}{\textbf{Indices}}&c&Speed of light in a vacuum\\
    $h$ &index of number&G& Gravitational constant\\
    t&index of hours&\multicolumn{2}{l|}{\textbf{Variables}}\\
    \multicolumn{2}{|l}{\textbf{Sets}}&X&Overall cost (CNY)\\
    $\mathcal{N}$&set of participators& $Y_a$&Cost of  a (CNY)\\
    T&set of time intervals&$Y_b$&Cost of  b (CNY)\\
    \multicolumn{2}{|l}{\textbf{Parameters}}&$C_{N}^{i}$&Operation costs of Pro$_i$ without energy trading (CNY)\\
    $\rho$&Friction index& Z &Decision variables \\
    V&Constant volume&$C_e^{i}$& Net payment  (CNY)\\
    \hline  %
    \end{tabular}
\end{table*}

在这里插入图片描述
参考

  • 菜鸟的能源优化之路,LaTeX——用表格生成术语表(Nomenclature),2021-06-20
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐