我有一个首字母缩略词列表, \printglossary[type=\acronymtype, style=super, nonumberlist]
如下所示,但是 ML 和 MPC 之间没有空格,如下图所示:
有没有办法让所有空间都相等?
\documentclass{memoir}
\usepackage[acronym]{glossaries}
\newacronym{ml}{ML}{Machine Learning}
\newacronym{rl}{RL}{Reinforcement Learning}
\newacronym{eeprom}{EEPROM}{electrically erasable programmable read-only memory}
\newacronym{lfd}{LfD}{Learning from Demonstration}
\newacronym{mpc}{MPC}{Model Predictice Control}
\newacronym{pearl}{PEARL}{Probabilistic embeddings for actor-critic RL}
\newacronym{ffnn}{FFNN}{Feed forward neural networks}
\newacronym{bo}{BO}{Bayesian Optimization}
\newacronym{mdp}{MDP}{Markov decision process}
\newacronym{pomdp}{POMDP}{Partial observable markov decision process}
\makeglossaries
\glsaddall
\begin{document}
\printglossary[type=\acronymtype, style=super, nonumberlist]
\end{document}
答案1
nogroupskip
删除首字母不同的条目之间的垂直空格。\renewcommand*{\arraystretch}{2}
在所有条目之间添加空格(有效,因为super
样式基于supertabular
)
\documentclass{memoir}
\usepackage[ngerman, english]{babel}
\usepackage{titling}
\usepackage{fancyhdr}
\usepackage[acronym]{glossaries}
\makeglossaries
\newacronym{ml}{ML}{Machine Learning}
\newacronym{rl}{RL}{Reinforcement Learning}
\newacronym{eeprom}{EEPROM}{electrically erasable programmable read-only memory}
\newacronym{lfd}{LfD}{Learning from Demonstration}
\newacronym{mpc}{MPC}{Model Predictice Control}
\newacronym{pearl}{PEARL}{Probabilistic embeddings for actor-critic RL}
\newacronym{ffnn}{FFNN}{Feed forward neural networks}
\newacronym{bo}{BO}{Bayesian Optimization}
\newacronym{mdp}{MDP}{Markov decision process}
\newacronym{pomdp}{POMDP}{Partial observable markov decision process}
\begin{document}
\glsaddall
\renewcommand*{\arraystretch}{2}
\printglossary[type=\acronymtype, style=super, nonumberlist, nogroupskip] .
\end{document}