你能告诉我如何进行分组吗?中间的粗体字表示数组数、集合等:
母语:
\documentclass{report}
\usepackage[colorlinks]{hyperref}
\usepackage[symbols,nogroupskip,sort=none]{glossaries-extra}
\glsxtrnewsymbol[description={position}]{x}{\ensuremath{x}}
\glsxtrnewsymbol[description={velocity}]{v}{\ensuremath{v}}
\glsxtrnewsymbol[description={acceleration}]{a}{\ensuremath{a}}
\glsxtrnewsymbol[description={time}]{t}{\ensuremath{t}}
\glsxtrnewsymbol[description={force}]{F}{\ensuremath{F}}
\begin{document}
\tableofcontents
\printunsrtglossary[type=symbols,style=long]
\chapter{Sample}
Reference symbols: $\gls{x}$, $\gls{v}$, $\gls{a}$, $\gls{t}$,
$\gls{F}$.
\end{document}
答案1
以下内容可以帮助您入门:
\documentclass{report}
\usepackage[colorlinks]{hyperref}
\usepackage[record,style=alttreegroup,nomain,symbols]{glossaries-extra}
\glsxtrnewsymbol[description={position}, group={first}]{x}{\ensuremath{x}}
\glsxtrnewsymbol[description={velocity}, group={first}]{v}{\ensuremath{v}}
\glsxtrnewsymbol[description={acceleration}, group={second}]{a}{\ensuremath{a}}
\glsxtrnewsymbol[description={time}, group={second}]{t}{\ensuremath{t}}
\glsxtrnewsymbol[description={force}, group={second}]{F}{\ensuremath{F}}
\renewcommand\glstreegroupheaderfmt[1]{\begingroup\centering \textbf{#1}\par\endgroup}
\glsfindwidesttoplevelname
\glsxtrsetgrouptitle{first}{Numbers and Arrays}
\glsxtrsetgrouptitle{second}{Sets}
\begin{document}
\tableofcontents
\printunsrtglossaries
\chapter{Sample}
Reference symbols: $\gls{x}$, $\gls{v}$, $\gls{a}$, $\gls{t}$,
$\gls{F}$.
\end{document}