
Ahoj,
Tengo un pequeño problema con respecto aacróbatapaquete. Quiero que mis abreviaturas y nomenclatura estén alineadas.
Digamos que tengo 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}
Pero los nombres largos de las siglas deberían estar alineados. ¿Hay alguna manera de alinearlos?
Respuesta1
Puede cambiar el entorno utilizado por \printacronyms
from description
(el valor predeterminado) a longtable
from thelongtable
paquete. En \ac-setup
la list-style
opción controla esto, para colocarlo en un longtable
entorno que simplemente puedes usar list-style=longtable
(o hay varias opciones alternativas).
Incluso \DeclareAcroListStyle
permite el desarrollo de su propio estilo para colocar la lista para una mayor personalización como se documenta en elacro
manual.
Con list-style=longtable
(O adicional agregada al acrónimo para enfatizar la alineación)
\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}
Respuesta2
Aquí hay otras opciones con las que puede ajustar el espaciado y la ubicación.
% 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}