diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex index 479004828b7..da2b32d6d9c 100644 --- a/Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex +++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex @@ -11,8 +11,8 @@ \usepackage[abbreviations,counter=chapter,nopostdot=false]{glossaries-extra} \renewcommand*{\abbreviationsname}{List of Abbreviations} -\renewcommand*{\glossarypreamble}{\emph{Numbers refer to the chapter -where the entry was referenced.}} +\renewcommand*{\glossarypreamble}{\emph{Numbers refer to the +\textbf{chapter} where the entry was referenced.}} \makeindex \makeglossaries @@ -45,6 +45,16 @@ where the entry was referenced.}} % Allow "format" key to override "dualindex" attribute. \GlsXtrEnableIndexFormatOverride +% use first field instead of name field +\renewcommand*{\glsxtrautoindexentry}[1]{\string\glsentryfirst{#1}} + +% use long form for the sort value, if provided: +\renewcommand*{\glsxtrautoindexassignsort}[2]{% + \ifglshaslong{#2}% + {\glsletentryfield{#1}{#2}{long}}% + {\glsletentryfield{#1}{#2}{sort}}% +} + % Define general entries: \newglossaryentry{duck}{name=duck,% |