在这个问题中:自定义词汇表组标题,已说明如何glossaries
使用函数重新定义从包中打印的词汇表的组名
\newcommand*{\Agroupname}{Roman letters}
\newcommand*{\Ggroupname}{Greek letters}
如何对“数字”组执行同样的事情?
以下是 MWE:
\documentclass{article}
\usepackage[
xindy
]{glossaries}
\usepackage{glossary-mcols}
%% glossary entries
\newglossaryentry{commut}{sort={0},name={\ensuremath{[~,~]}},
description={Commutator}}
\newglossaryentry{L}{sort={aL},name={\ensuremath{\mathcal{L}}},
description={lift function}}
\newglossaryentry{CL}{sort={aCL},name={\ensuremath{C_L}},
description={lift coefficient}}
%
\newglossaryentry{alpha}{sort={galpha},name={\ensuremath{\alpha}},
description={angle of attack}}
\newglossaryentry{beta}{sort={gbeta},name={\ensuremath{\beta}},
description={sideslip angle}}
%
\newglossaryentry{fs}{sort={sfs},name={\ensuremath{\infty}},
description={free-stream condition}}
\immediate\write18{makeglossaries \jobname}
\makeglossaries
% Define glossaries groups
\newcommand*{\Agroupname}{Roman letters}
\newcommand*{\Ggroupname}{Greek letters}
\newcommand*{\Sgroupname}{Subscripts}
\begin{document}
%\glsaddall
\printglossary[style=listhypergroup]
\end{document}
答案1
不确定这是否是这个意思,但定义了默认为 的glossaries
宏。只需重新定义它!\glsnumbergroupname
Numbers
(该宏在介绍部分有提及(当前文档第 32 页,版本 4.21,2016 glossaries
/01/24 版本)
\documentclass{article}
\usepackage[
xindy
]{glossaries}
\usepackage{glossary-mcols}
%% glossary entries
\newglossaryentry{commut}{sort={0},name={\ensuremath{[~,~]}},
description={Commutator}}
\newglossaryentry{L}{sort={aL},name={\ensuremath{\mathcal{L}}},
description={lift function}}
\newglossaryentry{CL}{sort={aCL},name={\ensuremath{C_L}},
description={lift coefficient}}
%
\newglossaryentry{alpha}{sort={galpha},name={\ensuremath{\alpha}},
description={angle of attack}}
\newglossaryentry{beta}{sort={gbeta},name={\ensuremath{\beta}},
description={sideslip angle}}
%
\newglossaryentry{fs}{sort={sfs},name={\ensuremath{\infty}},
description={free-stream condition}}
\immediate\write18{makeglossaries \jobname}
\makeglossaries
% Define glossaries groups
\renewcommand{\glsnumbersgroupname}{Those are the numbers}
\newcommand*{\Agroupname}{Roman letters}
\newcommand*{\Ggroupname}{Greek letters}
\newcommand*{\Sgroupname}{Subscripts}
\begin{document}
\glsaddall
\printglossary[style=listhypergroup]
\end{document}