我正在使用 acro 包和 \printacronyms 编写首字母缩略词列表以打印首字母缩略词列表,但其中一些首字母缩略词有点长,超出了描述,所以我想在描述上添加缩进,我该怎么做?谢谢您的回答。以下是正在发生的事情:
\documentclass[a4paper, 10pt]{report}
\usepackage{acro}
\acsetup{first-style=short}
\acsetup{list-heading=section*}
\acsetup{hyperref=true}
\acsetup{list-short-format={\bfseries}}
\acsetup{list-style=lof}
\DeclareAcronym{id}{
short = \ensuremath{Entropia_{divisão}},
long = Descrição da variável}
\begin{document}
\printacronyms
\vspace{2cm}
\ac{id}
\end{document}
答案1
如果需要使用list-style=lof
,则可以使用以下命令更改保留给短格式的宽度list-short-width
:
\documentclass[a4paper, 10pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{acro}
\acsetup{first-style=short}
\acsetup{list-heading=section*}
\acsetup{hyperref=true}
\acsetup{list-short-format={\bfseries}}
\acsetup{list-style=lof,list-short-width=3cm}
\DeclareAcronym{id}{
short = Entropia\textsubscript{divisão},
long = Descrição da variável}
\begin{document}
\printacronyms
\vspace{2cm}
\ac{id}
\end{document}