
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}
Mas os nomes longos das siglas devem estar alinhados. Existe uma maneira de alinhá-los?
Responder1
Você pode alterar o ambiente usado por \printacronyms
de description
(o padrão) para longtable
delongtable
pacote. Na \ac-setup
opção list-style
controla isso, para colocá-lo em um longtable
ambiente você pode simplesmente usar list-style=longtable
(ou há uma série de opções alternativas).
O \DeclareAcroListStyle
mesmo permite o desenvolvimento de seu próprio estilo para colocar a lista para maior personalização, conforme documentado noacro
manual.
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}
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}