
Ahoj,
Ich habe ein kleines Problem bezüglich derakroPaket. Ich möchte, dass meine Abkürzungen und Nomenklaturen übereinstimmen.
Nehmen wir an, ich habe diesen Code:
\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}
Aber die langen Namen der Akronyme sollten ausgerichtet sein. Gibt es eine Möglichkeit, sie auszurichten?
Antwort1
\printacronyms
Sie können die von verwendete Umgebung description
(Standard) in longtable
von ändern.longtable
Paket. In \ac-setup
der list-style
Option steuert dies, um es in einer longtable
Umgebung zu platzieren, die Sie einfach verwenden können list-style=longtable
(oder es gibt eine Reihe alternativer Optionen).
Das \DeclareAcroListStyle
ermöglicht sogar die Entwicklung Ihres eigenen Stils, um die Liste für weitere Anpassungen zu platzieren, wie in der Dokumentation dokumentiertacro
Handbuch.
Mit list-style=longtable
(dem Akronym wird ein zusätzliches O hinzugefügt, um die Ausrichtung hervorzuheben)
\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}
Antwort2
Hier sind weitere Optionen, mit denen Sie Abstand und Position feinabstimmen können.
% 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}