对于glossaries
包,我想根据符号在节名标题下首次出现的节对符号进行分组。首先,我的代码如下:
\documentclass[11pt,a4paper]{report}
\usepackage{amsmath,amsfonts,amssymb,amsthm,blindtext,epsfig,epstopdf,titling,url,array,xspace}
\usepackage[a4paper,bindingoffset=0.2in,left=1in,right=1in,top=1in,bottom=1in,footskip=.25in]{geometry}
\usepackage[nopostdot,style=super,toc]{glossaries}
\newglossary{symbols}{sym}{sbl}{List of Abbreviations and Symbols}
\newglossaryentry{aa}{type=symbols,name={aa},sort=aa,description={This is aa}}
\newglossaryentry{ab}{type=symbols,name={ab},sort=ab,description={This is ab}}
\newglossaryentry{ba}{type=symbols,name={ba},sort=ba,description={This is ba}}
\newglossaryentry{bb}{type=symbols,name={bb},sort=bb,description={This is bb}}
\newglossaryentry{ea}{type=symbols,name={ea},sort=ea,description={This is ea}}
\newglossaryentry{eb}{type=symbols,name={eb},sort=eb,description={This is eb}}
\newglossaryentry{fa}{type=symbols,name={fa},sort=fa,description={This is fa}}
\newglossaryentry{fb}{type=symbols,name={fb},sort=fb,description={This is fb}}
\makeglossary
\begin{document}
\tableofcontents
\printglossaries
\part{one}
\chapter{first}
\section{a}
\gls{aa},\gls{ab}
\gls{ea},\gls{eb}
\section{b}
\gls{ba},\gls{bb},\gls{aa}
\gls{fa},\gls{fb},\gls{ab}
\end{document}
符号似乎是按字母顺序分组的,但我想根据它们在节名标题下首次出现的节对它们进行分组(即 aa、ab、ea、eb 分组在标题“a”下,ba、bb、fa、fb 分组在标题“b”下)。我花了很多时间尝试阅读文档,但很吃力。任何帮助都将不胜感激。谢谢。