
我用acronym
包來管理我的縮寫。我透過setlist
命令自訂首字母縮略詞列表的水平和垂直縮進enumitem
包裹。\ac{MWE}
以下。
\documentclass{article}
\usepackage{enumitem}
\usepackage{acronym}
\begin{document}
\setlist[description]{labelwidth=3cm, itemsep=2cm} % 2 cm is just for illustration purposes
Here comes the acronym list, unfortunately the acronyms are in bold.
% Removing the bolding can be done by inserting the code from
% the "how-to-change-the-format-of-acronyms" solution.
% but then the setlist customizations are ignored
%\renewcommand\acsfont{\normalfont}
%\makeatletter
% ... insert rest of code here
%\makeatother
\begin{acronym}
\acro{ATM}{Asynchronous Transfer Mode}
\acro{MWE}{Minimum Working Example}
\end{acronym}
\end{document}
這些acronym
軟體包在術語表列表中將首字母縮寫加粗,這不是我想要的。我試圖透過問題的答案取消粗體如何更改縮寫的格式?,並且有效(刪除破折號後)。然而,現在我的setlist
定制被忽略了。
有沒有簡單的方法可以撤消首字母縮寫粗體,但仍然保持方便enumitem
包裹?
答案1
我懷疑當您遇到此問題時,正在使用某些舊版本的軟體包。下列微量元素說明使用
\renewcommand*{\acsfont}[1]{\normalfont#1}
確實在 a 中使用了縮寫\normalfont
:
代碼:
\documentclass{article}
\usepackage{enumitem}
\usepackage{acronym}
\setlist[description]{labelwidth=3cm, itemsep=2cm, itemsep=5pt} % 2 cm is just for illustration purposes
\begin{document}
Here comes the acronym list, and the acronyms are in bold:
\begin{acronym}
\acro{ATM}{Asynchronous Transfer Mode}
\acro{MWE}{Minimum Working Example}
\end{acronym}
% Removing the bolding can be done by
\renewcommand*{\acsfont}[1]{\normalfont#1}
Here comes the acronym list again, and now the acronyms are \emph{not} in bold as we applied
\verb|\renewcommand*{\acsfont}[1]{\normalfont#1}|:
\begin{acronym}
\acro{ATM}{Asynchronous Transfer Mode}
\acro{MWE}{Minimum Working Example}
\end{acronym}
\end{document}