summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex
index 91b70b8bc02..144f1436977 100644
--- a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex
+++ b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex
@@ -38,6 +38,22 @@
\makeglossaries
+ % Setup acronym fonts (e.g. \emph for short form on first use and
+ % \textbf for short form on subsequent use):
+\renewcommand{\firstacronymfont}[1]{\emph{#1}}
+\renewcommand{\acronymfont}[1]{\textbf{#1}}
+ % Apply the generic acronym style to just the "acronym" glossary:
+\defglsentryfmt[acronym]{\glsgenacfmt}
+
+ % Change acronym first use so that its displayed as
+ % short (long)
+\renewcommand{\genacrfullformat}[2]{%
+ \glsentryshort{#1}#2 (\glsentrylong{#1})%
+}
+\renewcommand{\genplacrfullformat}[2]{%
+ \glsentryshortpl{#1}#2 (\glsentrylongpl{#1})%
+}
+
\longnewglossaryentry{par}{name={par}}%
{%
A long description with a paragraph break.
@@ -57,6 +73,12 @@ A \gls{sample} entry and \gls{aca}. Second use: \gls{aca}.
Plurals: \glspl{sample}. Reset acronym\glsreset{aca}.
First use: \glspl{aca}. Second use: \glspl{aca}.
+\glsresetall
+First letter upper case: \Gls{sample}. First use: \Gls{aca}.
+Subsequent use: \Gls{aca}.
+\glsresetall
+Plurals: \Glspl{sample}. First use: \Glspl{aca}. Next: \Glspl{aca}.
+
If you want paragraph breaks in the description use
\verb|\longnewglossaryentry|, as with entry \gls{par}.