我正在使用这个acro
包,里面有太多缩写,以至于占满了一页纸。因此,我希望缩写列表中有两列,我已经使用了环境multicols
来实现这一点。
但是问题是命令的标题本身\printacronyms
放在第一列,而不是在两列开始之前。将名称设置为空只会创建一个空白,但有人知道如何完全删除标题吗?或者在自动缩写列表中创建两列的其他解决方案?
提前致谢
\documentclass{article}
\usepackage{acro}
\usepackage{multicol}
%Defining acronyms
\acsetup{first-style=short}
\DeclareAcronym{LI}{
short = LI ,
long = Lorem ipsum ,
}
\DeclareAcronym{DSA}{
short = DSA ,
long = Dolor sit amet ,
}
\DeclareAcronym{CAE}{
short = CAE ,
long = Consectetuer adipiscing elit ,
}
\DeclareAcronym{SDE}{
short = SDE ,
long = Sed do eiusmod ,
}
\DeclareAcronym{TI}{
short = TI ,
long = Tempor incididunt ,
}
\begin{document}
\begin{multicols}{2}
\printacronyms[name={List of abbreviations}] %Prints abbr.
\end{multicols}
%Dummy text
\vspace{3cm}
Lorem ipsum (\ac{LI}) dolor sit amet (\ac{DSA}), consectetur adipiscing elit (\ac{CAE}), sed do eiusmod ({\ac{SDE}) tempor incididunt (\ac{TI}) ut labore et dolore magna aliqua.
\end{document}
答案1
您可以尝试以下选项heading=none
:
\documentclass{article}
\usepackage{acro}
\usepackage{multicol}
%Defining acronyms
\acsetup{first-style=short}
\DeclareAcronym{LI}{
short = LI ,
long = Lorem ipsum ,
}
\DeclareAcronym{DSA}{
short = DSA ,
long = Dolor sit amet ,
}
\DeclareAcronym{CAE}{
short = CAE ,
long = Consectetuer adipiscing elit ,
}
\DeclareAcronym{SDE}{
short = SDE ,
long = Sed do eiusmod ,
}
\DeclareAcronym{TI}{
short = TI ,
long = Tempor incididunt ,
}
\begin{document}
\section{List of abbreviations}
\begin{multicols}{2}
\printacronyms[heading=none] %Prints abbr.
\end{multicols}
%Dummy text
\vspace{3cm}
Lorem ipsum (\ac{LI}) dolor sit amet (\ac{DSA}), consectetur adipiscing elit (\ac{CAE}), sed do eiusmod ({\ac{SDE}) tempor incididunt (\ac{TI}) ut labore et dolore magna aliqua.
\end{document}
可能有更优雅的方法来做到这一点,因为acro
允许您定义自己的模板,请参阅:http://mirrors.ctan.org/macros/latex/contrib/acro/acro-manual.pdf