summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex
index b4fcb875202..352200311e1 100644
--- a/Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex
+++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-mixture.tex
@@ -13,6 +13,35 @@
% regular terms:
+% (Version 1.04+) The following will make regular terms appear
+% in sans-serif when used with \gls etc but won't affect the
+% abbreviations:
+
+%\renewcommand*{\glsxtrregularfont}[1]{\textsf{#1}}
+
+% or limit to just the "general" category:
+%\renewcommand*{\glsxtrregularfont}[1]{%
+% \glsifcategory{\glslabel}{general}{\textsf{#1}}{#1}}
+
+% or limit to a particular attribute:
+
+%\glssetcategoryattribute{general}{font}{sf}
+%\glssetcategoryattribute{acronym}{font}{sf}
+
+%\renewcommand*{\glsxtrregularfont}[1]{%
+% \glsifattribute{\glslabel}{font}{sf}{\textsf{#1}}{#1}}
+
+% or use the attribute to store the font control sequence name:
+
+%\glssetcategoryattribute{general}{font}{textsf}
+%\glssetcategoryattribute{acronym}{font}{emph}
+%
+%\renewcommand*{\glsxtrregularfont}[1]{%
+% \glshasattribute{\glslabel}{font}%
+% {\csuse{\glsgetattribute{\glslabel}{font}}{#1}}%
+% {#1}%
+%}
+
% The following will make the first letter of the name upper case
% in the glossary for the general entries:
\glssetcategoryattribute{general}{glossname}{firstuc}
@@ -21,6 +50,16 @@
% in the glossary for the general entries:
\glssetcategoryattribute{general}{glossdesc}{firstuc}
+% (version 1.04+) The following will make the description
+% appear in italic in the glossary for general entries:
+
+%\glssetcategoryattribute{general}{glossdescfont}{emph}
+
+% (version 1.04+) The following will make the name
+% appear in italic in the glossary for general entries:
+
+%\glssetcategoryattribute{general}{glossnamefont}{emph}
+
\newglossaryentry{duck}{name=duck,%
description={a waterbird with webbed feet}}