1 つの列に記号、もう 1 つの列に下付き文字を含む 2 つの列の命名法を作成するにはどうすればよいですか?

1 つの列に記号、もう 1 つの列に下付き文字を含む 2 つの列の命名法を作成するにはどうすればよいですか?

命名法を使用して 2 つの列を作成しましたが、\multicols列を分割する方法が問題です。 左の列をシンボルにし、右の列を下付き文字にしたいのですが、両方の列にタイトルを付ける方法はありますか? コードは以下のとおりです。

    \section*{ } %Introduction  SECTION
    \begin{multicols}{2} %Add symbols here
    \nomenclature{\textit{P}}{Pressure}
    \nomenclature{\textit{T}}{Ambient or Atmospheric Temperature}
    \nomenclature{\textit{$F_{design}$}}{Design Load on Joint $(N)$}
    \nomenclature{\textit{$\mu_{F_{max}}$}}{Average Maximum Joint Strength $(N)$}
    \nomenclature{\textit{$\rho$}}{Density}
    \nomenclature{\textit{V}}{Velocity}
    \nomenclature{\textit{R}}{Universal Gas Constant}
    \columnbreak %Add subscripts here
    \nomenclature{\textit{atm}}{Atmospheric or Ambient}
    \nomenclature{\textit{1}}{Settling Chamber}
    \nomenclature{\textit{2}}{Test Section}
    \printnomenclature[\nomwidest]
    \end{multicols}
    \pagebreak

答え1

命名法エントリの定義とそれらの印刷を混同しているようです。 は\nomenclatureエントリを定義するだけなので、multicols環境内に置くのは意味がありません。通常、これらは項目が定義されているページに置きます。 また、\columnbreak同じ理由で、 は命名法の印刷に関連することは何も行いません。 書式設定/印刷はすべてコマンド内で行われる\printnomenclatureため、アクションはそこに配置する必要があります。 また、印刷する前に、エントリを で処理する必要がありますmakeindex。これはエントリをソートします。したがって、エントリを 2 つのグループに集める必要がある場合は、ソートによってエントリがこれらのグループに集められるようにする必要があります。これを行うには、\nomenclatureエントリのグループを定義する にオプションの引数を指定します。これらのオプション引数の最初の文字は、2 つのグループで異なる必要があります。私はsyとを選択しましたxuが、何を選択するかはそれほど重要ではありません。最初の文字は異なる必要があり、アルファベット順によって出力内のグループの順序が決まります。次に、最初の文字を大文字 (つまり S と X) としてパラメーターとして取得するマクロ を定義します\nomgroup。次に、これを使用してグループ ラベルをフォーマットします。 S は「シンボル」を印刷するために使用され、X は列区切りと「下付き文字」の印刷に使用されます。また、複数列の要素はプリアンブルとポストアンブルに配置します。ちなみに、エントリの順序を変更したい場合は、オプションの引数に追加の要素を配置できます。これは並べ替えに使用されるためです。

ここに実際の例を示します。

\documentclass{article}
\usepackage{ifthen}
\usepackage{nomencl}
\usepackage{multicol}
\renewcommand{\nomgroup}[1]{%
     \ifthenelse{\equal{#1}{S}}{\item[\large\textbf{Symbols}]}{%
    \ifthenelse{\equal{#1}{X}}{\columnbreak\item[\large\textbf{Subscripts}]}{}}}
\renewcommand{\nompreamble}{\begin{multicols}{2}}
\renewcommand{\nompostamble}{\end{multicols}}
\makenomenclature

\begin{document}

   \nomenclature[sy ]{\textit{P}}{Pressure}
    \nomenclature[sy ]{\textit{T}}{Ambient or Atmospheric Temperature}
    \nomenclature[sy ]{\textit{$F_{design}$}}{Design Load on Joint $(N)$}
    \nomenclature[sy ]{\textit{$\mu_{F_{max}}$}}{Average Maximum Joint Strength $(N)$}
    \nomenclature[sy ]{\textit{$\rho$}}{Density}
    \nomenclature[sy ]{\textit{V}}{Velocity}
    \nomenclature[sy ]{\textit{R}}{Universal Gas Constant}
    \nomenclature[xu ]{\textit{atm}}{Atmospheric or Ambient}
    \nomenclature[xu ]{\textit{1}}{Settling Chamber}
    \nomenclature[xu ]{\textit{2}}{Test Section}

     \printnomenclature

\end{document}

関連情報