summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-06-15 21:47:33 +0000
committerKarl Berry <karl@freefriends.org>2017-06-15 21:47:33 +0000
commit9e987d284eb0915a995e129c61df7c94146b5007 (patch)
tree5f10da256063d1d0d96d5124264cd7c38d4a5c79 /Master/texmf-dist/doc/latex/glossaries-extra/sample-autoindex.tex
parent0f37ab813b7b69885fa8c19dde8c51fdb629eff5 (diff)
glossaries-extra (15jun17)
git-svn-id: svn://tug.org/texlive/trunk@44608 c570f23f-e606-0410-a88d-b1316a301751
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.tex14
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,%