自訂符號列表

自訂符號列表

我有興趣創建一個我希望能夠自訂的變數或其他符號列表,因此我對術語表或術語等套件不感興趣。除了使用表格之外,我不知道如何做到這一點,所以我編寫了以下程式碼:

\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}

這是輸出:

在此輸入影像描述

相關內容