From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 .../glossaries-extra/samples/sample-nested.tex     | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 macros/latex/contrib/glossaries-extra/samples/sample-nested.tex

(limited to 'macros/latex/contrib/glossaries-extra/samples/sample-nested.tex')

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}
-- 
cgit v1.2.3

