summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/samples/sample-nested.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/glossaries-extra/samples/sample-nested.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/glossaries-extra/samples/sample-nested.tex')
-rw-r--r--macros/latex/contrib/glossaries-extra/samples/sample-nested.tex46
1 files changed, 46 insertions, 0 deletions
diff --git a/macros/latex/contrib/glossaries-extra/samples/sample-nested.tex b/macros/latex/contrib/glossaries-extra/samples/sample-nested.tex
new file mode 100644
index 0000000000..a7c32a6908
--- /dev/null
+++ b/macros/latex/contrib/glossaries-extra/samples/sample-nested.tex
@@ -0,0 +1,46 @@
+% arara: pdflatex
+% arara: makeglossaries
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage[T1]{fontenc}
+\usepackage[colorlinks]{hyperref}
+\usepackage{glossaries-extra}
+
+\makeglossaries
+
+\setabbreviationstyle{long-short-sc}
+
+\newabbreviation{ssi}{ssi}{server side includes}
+\newabbreviation{html}{html}{hypertext markup language}
+
+%DON'T use this with upper casing commands!
+\newabbreviation{shtml}{shtml}{\gls{ssi} enabled \gls{html}}
+
+% Alternatively
+%\newabbreviation{shtml}{shtml}{\glsxtrshort{ssi} enabled \glsxtrshort{html}}
+
+% Or
+%\newabbreviation{shtml}{shtml}{\glsps{ssi} enabled \glsps{html}}
+% (optional) enable indexing when \glsps occurs in glossary:
+%\renewcommand{\glossxtrsetpopts}{\glsxtrsetpopts{noindex=false}}
+
+\begin{document}
+
+This is a sample document testing nested link text.
+The \texttt{glossaries-extra} package temporarily modifies
+commands like \verb|\gls| or \verb|\glsxtrshort| that occur
+in fields, when any of those field is accessed through linking
+commands.
+
+First use: \gls{shtml}.
+
+\newpage
+
+Next use: \gls{shtml}.
+
+\newpage
+
+\printglossaries
+
+\end{document}