我想减少印刷词汇表中首字母缩略词之间的空格。在下面的例子中,“直接差分域分解”和“偏微分方程偏微分方程”。如何减少打印词汇表中这些首字母缩略词之间的空白\printglossary
?
第 240 页用户手册该命令的详细选项\printglossary
,但我没有看到任何与空格相关的内容。
\documentclass{article}
\usepackage[acronym]{glossaries}
\makeglossaries
\newacronym[plural=PDEs]{pde}{PDE}{partial differential equation}
\newacronym{dd}{DD}{domain decomposition}
\begin{document}
\begin{abstract}
Here is some interesting stuff about \glspl{pde} and \gls{dd}.
\end{abstract}
\printglossary[type=\acronymtype, nonumberlist]
\end{document}
答案1
下面给出了上述问题的示例工作代码(它基于另一个TeX 帖子):
\documentclass{article}
\usepackage[acronym, nogroupskip,nonumberlist,nopostdot]{glossaries}
\renewenvironment{theglossary}%
{\begin{list}{}
{%
\setlength\labelwidth{0pt}%
\setlength\itemindent{-\leftmargin}%
\setlength\itemsep{0pt}%
\setlength\parsep{0pt}%
\let\makelabel\descriptionlabel}%
}
{\end{list}}
\makeglossaries
\newacronym[plural=PDEs]{pde}{PDE}{partial differential equation}
\newacronym{dd}{DD}{domain decomposition}
\begin{document}
\begin{abstract}
Here is some interesting stuff about \glspl{pde} and \gls{dd}.
\end{abstract}
\printglossary[type=\acronymtype, nonumberlist]
\end{document}