包 acro:如何增加首字母缩略词条目之间的行距

包 acro:如何增加首字母缩略词条目之间的行距

我使用 acro 包来列出论文中的首字母缩略词。它与我的文档类备忘录没有兼容性问题,并且非常易于使用。但是,首字母缩略词条目之间的默认行距太小,首字母缩略词页面看起来相当拥挤。如何增加它?

如果有较长的条目,则条目内的行距保持不变。

以下是测试代码:

\documentclass[11pt]{memoir}

\usepackage{acro} %list of abbreviations
\acsetup{first-style = long-short, list/display = used}

\DeclareAcronym{acm}{ 
    short = {ACM}, 
    long  = {Association for Computing Machinery}
}
\DeclareAcronym{ieee}{
    short = {IEEE},
    long  = {Institute of Electrical and Electronics Engineers}
}

\DeclareAcronym{owasp}{ 
    short = {OWASP}, 
    long  = {the Open Web Application Security Project}
}

\DeclareAcronym{iso}{ 
    short = {ISO}, 
    long  = {International Organization for Standardization}
}

\DeclareAcronym{cicd} {
    short = {CI/CD}, 
    long = {the combined practices of continuous integration and continuous delivery or continuous deployment}
}

\begin{document}

\section{Showcases of acro Acronyms}

\ac{ieee} is an organization.
\newline
\ac{acm} is another organization.
\newline
\ac{owasp} is another organization.
\newline
\ac{iso} is yet another organization.
\newline
\ac{cicd} is a good practice in software development.

\addcontentsline{toc}{chapter}{Acronyms}
\printacronyms[name=Acronyms]

\end{document}

答案1

您可以将itemsep(从enumitem包中)设置为您想要的长度\printacronyms

\documentclass[11pt]{memoir}
\usepackage{enumitem}

\usepackage{acro} %list of abbreviations
\acsetup{first-style = long-short, list/display = used}

\DeclareAcronym{acm}{ 
    short = {ACM}, 
    long  = {Association for Computing Machinery}
}
\DeclareAcronym{ieee}{
    short = {IEEE},
    long  = {Institute of Electrical and Electronics Engineers}
}

\DeclareAcronym{owasp}{ 
    short = {OWASP}, 
    long  = {the Open Web Application Security Project}
}

\DeclareAcronym{iso}{ 
    short = {ISO}, 
    long  = {International Organization for Standardization}
}

\DeclareAcronym{cicd} {
    short = {CI/CD}, 
    long = {the combined practices of continuous integration and continuous delivery or continuous deployment}
}

\begin{document}

\section{Showcases of acro Acronyms}

\ac{ieee} is an organization.
\newline
\ac{acm} is another organization.
\newline
\ac{owasp} is another organization.
\newline
\ac{iso} is yet another organization.
\newline
\ac{cicd} is a good practice in software development.

\addcontentsline{toc}{chapter}{Acronyms}
\setlist{itemsep=5ex}\printacronyms[name=Acronyms]

\end{document}

在此处输入图片描述

相关内容