
アホジ、
ちょっとした問題がありましたアクロパッケージ。略語と命名法を揃えたいです。
次のようなコードがあるとします:
\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
から使用する環境を、description
longtable
longtable
パッケージ。オプションでは\ac-setup
これlist-style
を制御します。longtable
環境に配置するには、単に使用できますlist-style=longtable
(または、いくつかの代替オプションがあります)。
さらに\DeclareAcroListStyle
、独自のスタイルを開発してリストを配置し、さらにカスタマイズすることもできます。acro
マニュアル。
(頭字語にOを追加して、list-style=longtable
一致を強調します)
\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}