두 개의 열 명명법을 만드는 방법은 무엇입니까? 한 열에는 기호가 있고 다른 열에는 아래 첨자가 있습니까?

두 개의 열 명명법을 만드는 방법은 무엇입니까? 한 열에는 기호가 있고 다른 열에는 아래 첨자가 있습니까?

\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같은 이유로 Nimenclature 인쇄와 관련된 작업을 수행하지 않습니다. 모든 서식 지정/인쇄는 \printnomenclature명령 내부에서 발생하므로 작업이 있어야 할 위치가 있습니다. 또한 인쇄하기 전에 항목을 정렬하는 를 사용하여 항목을 처리해야 합니다 makeindex. 따라서 두 그룹으로 수집해야 하는 경우 정렬을 통해 해당 그룹에 수집되도록 해야 합니다. \nomenclature항목 그룹을 정의하는 선택적 인수를 제공하여 이를 수행합니다 . 이러한 선택적 인수의 첫 글자는 두 그룹에 따라 달라야 합니다. 나는 선택했지만 sy당신 xu이 무엇을 선택하는지는 그다지 중요하지 않습니다. 첫 글자는 달라야 하며 알파벳 순서에 따라 출력의 그룹 순서가 결정됩니다. 그런 다음 \nomgroup대문자로 표시된 첫 번째 문자(S 및 X)를 매개변수로 가져오는 매크로를 정의합니다 . 그런 다음 이를 사용하여 그룹 레이블의 형식을 지정합니다. S는 'Symbols'를 인쇄하는 데 사용되고 X는 열 구분을 수행하고 'Subscripts'를 인쇄하는 데 사용됩니다. 그리고 우리는 프리앰블과 포스트앰블에 멀티콜을 넣습니다. 그런데 항목 순서를 변경하려면 선택적 인수에 몇 가지 추가 항목을 넣을 수 있습니다. 왜냐하면 해당 항목이 정렬에 사용되기 때문입니다.

여기 실제 예제가 있습니다.

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

관련 정보