acro 패키지에 약어 및 명명법 정렬

acro 패키지에 약어 및 명명법 정렬

아호이,

관련해서 약간의 문제가 생겼습니다.아크로패키지. 약어와 명명법을 정렬하고 싶습니다.

다음 코드가 있다고 가정해 보겠습니다.

\documentclass{article}
\usepackage{acro}

\acsetup{first-style=short}

\DeclareAcronym{ihp}{
short = IHP,
long = Inner Helmholtz Plane,
class = abbrev
}

\DeclareAcronym{ohp}{
short = OHP,
long = Outer Helmholtz Plane,
class = abbrev
}

\begin{document}

The layer of water dipoles and ions with hydrogen envelope, which forms
in this way at the boundary surface, is called the Helmholtz layer and
extend into an inner Helmholtz plane (\ac{ihp}) and an outer Helmholtz
plane (\ac{ohp}).

\printacronyms[include-classes=abbrev,name=Abbreviations]

\end{document}

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

하지만 약어의 긴 이름은 정렬되어야 합니다. 정렬하는 방법이 있나요?

답변1

(기본값) \printacronyms에서 사용되는 환경을 다음 으로 변경할 수 있습니다.descriptionlongtablelongtable패키지. \ac-setup옵션 제어 에서는 list-style이를 longtable간단히 사용할 수 있는 환경 에 배치합니다 list-style=longtable(또는 여러 가지 대체 옵션이 있습니다).

\DeclareAcroListStyle에 설명된 대로 추가 사용자 정의를 위해 목록을 배치할 수 있는 자신만의 스타일을 개발할 수도 있습니다 .acro수동.

With list-style=longtable(정렬을 강조하기 위해 약어에 O를 추가함)

\documentclass{article}
\usepackage{longtable}
\usepackage{acro}

\acsetup{first-style=short,list-style=longtable}

\DeclareAcronym{ihp}{
short = IHP,
long = Inner Helmholtz Plane,
class = abbrev
}

\DeclareAcronym{ohp}{
short = OOHP,
long = Outer Helmholtz Plane,
class = abbrev
}

\begin{document}

The layer of water dipoles and ions with hydrogen envelope, which forms
in this way at the boundary surface, is called the Helmholtz layer and
extend into an inner Helmholtz plane (\ac{ihp}) and an outer Helmholtz
plane (\ac{ohp}).

\printacronyms[include-classes=abbrev,name=Abbreviations]

\end{document}

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

답변2

간격과 위치를 미세 조정할 수 있는 다른 옵션은 다음과 같습니다.

% Abbreviations setup
\usepackage{acro}
\usepackage{longtable}

\setlength\LTleft{18pt}  % Adjust the left margin
\setlength\LTpre{-6pt}   % Adjust the space above the table

\acsetup{
  list/template = longtable,
  list/heading = none,
  templates/colspec = {l@{\hspace{2cm}}l} % Adjust the space as needed
}

\DeclareAcronym{ihp}{
short = IHP,
long = Inner Helmholtz Plane,
class = abbrev
}

\DeclareAcronym{ohp}{
short = OOHP,
long = Outer Helmholtz Plane,
class = abbrev
}


\begin{document}

The layer of water dipoles and ions with hydrogen envelope, which forms
in this way at the boundary surface, is called the Helmholtz layer and
extend into an inner Helmholtz plane (\ac{ihp}) and an outer Helmholtz
plane (\ac{ohp}).

\chapter*{\centerline{List of Abbreviations and Terms}}\label{ch:terms}
\printacronyms[include-classes=abbrev,name=none]

\end{document}

관련 정보