自定义符号列表

自定义符号列表

我感兴趣的是创建一个变量或其他符号列表,我希望能够自己定制这些列表,因此我对词汇表或命名法之类的包不感兴趣。除了使用表格之外,我不知道如何做到这一点,所以我写了以下代码:

\newcolumntype{K}[1]{>{\flushleft}m{#1}}
{\renewcommand{\arraystretch}{0.1}
\begin{tabular}[t]{ K{12mm} K{3mm} K{120mm} }
$L_f$ & & Monetary value of the damage caused by a hazard (fire, theft...), against which insurance coverage can be taken up. \tabularnewline
$p_f$ & & Probability of occurrence of that hazard.\tabularnewline
$p_d$ & & Probability that the insurer defaults/does not settle its claims.\tabularnewline
$X_0$ & & Position of the initial endowment of the decision-maker.\tabularnewline
$D$ & & Deductible level of a partial insurance contract
\end{tabular}

结果是这样的: 在此处输入图片描述

但是,我很难找到一种方法来:垂直对齐顶部的文本(如果可能的话,将其对齐),减少行间距和行间距。顺便说一句,出于某种原因:

{\renewcommand{\arraystretch}{0.1}

对我不起作用!

以下是我希望获得的结果的概述:

在此处输入图片描述

感谢您的热心帮助。

答案1

您不必为此重新定义自己的列样式 - 它已在tabular环境中定义为p{column_width}。此外,如果您没有特殊原因以毫米为单位定义列宽,我宁愿使用预定义的长度,例如\linewidth\textwidth

请尝试以下操作:

\begin{tabular}[t]{p{0.1\linewidth}p{0.9\linewidth} }
  $L_f$ & Monetary value of the damage caused by a hazard (fire, theft...), against which insurance coverage can be taken up. \tabularnewline
  $p_f$ & Probability of occurrence of that hazard.\tabularnewline
  $p_d$ & Probability that the insurer defaults/does not settle its claims.\tabularnewline
  $X_0$ & Position of the initial endowment of the decision-maker.\tabularnewline
  $D$ & Deductible level of a partial insurance contract
\end{tabular}

输出如下:

在此处输入图片描述

相关内容