調整詞彙表空間

調整詞彙表空間

創建數學參數列表後,我有兩個問題:

  • 它們各自的一些定義太長,因此將佔據兩行。正如您從圖片中看到的,這些長定義的第二行(例如 Mjp)從數學符號下方開始。這看起來不太好,因此,我想將定義的第二行放在第一行下面。
  • 列表的最後一個參數(即參數BFC、BTC等)是二進位參數,因此我想將它們稱為:BFC\in{0,1}。但是,如果我這樣寫,Latex 就會出錯。我有辦法修復它嗎?

我把我使用的程式碼留在這裡:

\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{glossaries}


\makeglossaries

\newcommand{\mathgl}[2]{
    \newglossaryentry{#1}{name={#1},description={#2}}
    \begin{description}[labelwidth=2cm]
      \item[\gls{#1}]#2
    \end{description}
}

\subsubsection{Parameters}
The following product flow related parameters are used:\\
\mathgl{D_j_p_y}{Demand of customer $j$ for specific product code $p$ in year $y$.}
\mathgl{Q_i}{Available capacity on facility $i$ [M cans].}
\mathgl{V_i}{Minimum volume required on facility $i$ [M cans].}
\mathgl{Fc_i}{Fixed cost of each facility $i$ [\euro].}
\mathgl{M_j_p}{Minimum volume required per product code $p$ from facility $i$ to customer $j$ [M cans].}
\mathgl{G_o_p}{Minimum volume required per product code $p$ from facility $i$ to OpCo $o$ [M cans].}
\mathgl{Fc_i}{Fixed cost of each facility $i$ [\euro].}
\mathgl{Ec__i_j_p_y}{Ex-works costs per product code p from facility i to customer j in year y [\euro/M cans]. }
\mathgl{Tc_i_j_p}{Unit transportation costs for specific product code p from facility i to customer j [\euro/M cans].}
\mathgl{Lc}{Transportation fixed costs [\euro].}
\mathgl{Vc}{Transportation variable costs [\euro].}
\mathgl{Wc_i_j_p}{Unit warehousing costs for specific product code $p$ from facility $i$ to customer $j$ [\euro/M cans].}
\mathgl{K_i_j}{Distance between facility $i$ and customer $j$ [km].}
\mathgl{Tq_i_p}{Truck capacity of supplier facility $i$ for product code $p$ [M cans].}
\mathgl{Z_i_j_p}{\ce{CO2} emissions for specific product code $p$ from facility $i$ to customer $j$ [kg \ce{CO2}/M cans].}
\mathgl{Zc}{\ce{CO2} costs [\euro/kg \ce{CO2}]. }
\mathgl{BFC}{Binary to indicate whether to include facility fixed costs or not.}
\mathgl{BTC}{Binary to indicate whether to include transportation costs or not.}
\mathgl{BEC}{Binary to indicate whether to include ex-works costs or not.}
\mathgl{BZC}{Binary to indicate whether to include CO2 emissions costs or not.}
\mathgl{BWC}{Binary to indicate whether to include warehouse costs or not.}

我的乳膠的結果

答案1

\newcommand{\mathgl}[2]{
    \newglossaryentry{#1}{name={#1},description={#2}}
    \begin{description}[style=multiline, labelwidth=1cm]
        \item[\gls{#1}]#2
    \end{description}
}

我認為這可以解決你的問題,經過 3 個問題你就得到了你最終想要的。

答案2

我可以透過使用表格或長表輕鬆解決問題(如果清單佔用一頁以上,則為長表)。如果表格超出了文字的邊距,您可以使用 9cm 並調整表格的寬度(請參閱程式碼)。

\subsubsection{Parameters}
The following product flow related parameters are used:\\

    \begin{longtable}{lp{9cm}}
    $D_j_p_y$ & Demand of customer $j$ for specific product code $p$ in year $y$ [M cans]. \\
    $Q_i$ & Available capacity on facility $i$ [M cans].\\
    $V_i$ & Minimum volume required on facility $i$ [M cans].\\

\end{longtable}

相關內容