Alinhe abreviações e nomenclatura com o pacote acro

Alinhe abreviações e nomenclatura com o pacote acro

Ah,

Eu tenho um pequeno problema em relação aoacropacote. Quero que minhas abreviações e nomenclatura estejam alinhadas.

Digamos que eu tenha este código:

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

insira a descrição da imagem aqui

Mas os nomes longos das siglas devem estar alinhados. Existe uma maneira de alinhá-los?

Responder1

Você pode alterar o ambiente usado por \printacronymsde description(o padrão) para longtabledelongtablepacote. Na \ac-setupopção list-stylecontrola isso, para colocá-lo em um longtableambiente você pode simplesmente usar list-style=longtable(ou há uma série de opções alternativas).

O \DeclareAcroListStylemesmo permite o desenvolvimento de seu próprio estilo para colocar a lista para maior personalização, conforme documentado noacromanual.

Com list-style=longtable(O extra adicionado à sigla para enfatizar o alinhamento)

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

insira a descrição da imagem aqui

Responder2

Aqui estão outras opções com as quais você pode ajustar o espaçamento e a localização.

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

informação relacionada