약어와 용어집 설명 사이의 간격 조정

약어와 용어집 설명 사이의 간격 조정

나는 용어집 패키지를 사용하고 있으며 위의 명명법 섹션과 일치하도록 약어 설명을 얻고 싶습니다. 용어집의 열 스타일을 사용해 보았지만 그 중 어느 것도 첫 번째 열(약어 포함)을 조정할 수 없습니다. 정렬 불량은 그림을 참조하세요. 이 문제를 해결할 방법이 있나요?

정렬 불량

답변1

이것이 해결책입니다.

발행 시 고정 너비를 사용하십시오 \printnomenclature(예 2cm: ).

\printnomenclature[2cm] % <-- change the value here

mylong동일한 너비를 사용하는 새 용어집 스타일을 정의합니다 ( 2cm).

\newglossarystyle{mylong}{%
  \setglossarystyle{long}%
  \renewenvironment{theglossary}%
     {\begin{longtable}[l]{@{}p{\dimexpr 2cm-\tabcolsep}p{0.8\hsize}}}% <-- change the value here
     {\end{longtable}}%
 }

용어집을 인쇄할 때 위 스타일을 사용하십시오.

\printglossary[style=mylong,type=\acronymtype]

MWE:

\documentclass{article}

\usepackage{nomencl}
\usepackage[nonumberlist,acronym]{glossaries}

\newglossarystyle{mylong}{%
  \setglossarystyle{long}%
  \renewenvironment{theglossary}%
     {\begin{longtable}[l]{@{}p{\dimexpr 2cm-\tabcolsep}p{0.8\hsize}}}% <-- change the value here
     {\end{longtable}}%
 }

\makenomenclature

\makeglossaries

\newacronym{BWB}{BWB}{Blended Wing Body}
\newacronym{DOE}{DOE}{Design of Experiments}
\newacronym{FEA}{FEA}{Finite Element Analysis}

\begin{document}
$t_{wb}$ and $w_{fg}$
\newpage

\nomenclature{$t_{wb}$}{Thickness of Stiffener Web (in)}
\nomenclature{$w_{fg}$}{Width of Stiffener Flange (in)}

\printnomenclature[2cm] % <-- change the value here

\glsaddall

\printglossary[style=mylong,type=\acronymtype]

\end{document} 

산출:

여기에 이미지 설명을 입력하세요

답변2

최소한의 작업 예제를 갖는 것이 도움이 되지만 alttree용어집 스타일을 사용하고 다음을 사용하여 이름이 차지하는 너비를 설정할 수 있습니다 \glssetwidest.

\documentclass{article}

\usepackage[acronym,nopostdot,nonumberlist]{glossaries}

\makeglossaries

\newglossaryentry{twb}{%
  name={\ensuremath{t_{wb}}},
  description={Thickness of Stiffener Web (in)}
}

\newglossaryentry{wfg}{%
  name={\ensuremath{w_{fg}}},
  description={Width of Stiffener Flange (in)}
}

\newacronym{bwb}{BWB}{Blended Wing Body}
\newacronym{doe}{DOE}{Design of Experiments}
\newacronym{fea}{FEA}{Finite Element Analysis}

\setglossarystyle{alttree}
\glssetwidest{BWB}
\renewcommand{\glsnamefont}[1]{\textmd{#1}}

\begin{document}
\glsaddall

\printglossaries
\end{document}

이는 다음을 생성합니다.

결과 용어집 이미지

관련 정보