| 1 |
% arara: pdflatex |
| 2 |
% arara: makeglossaries |
| 3 |
% arara: pdflatex |
| 4 |
\documentclass{article} |
| 5 |
|
| 6 |
\usepackage[T1]{fontenc} |
| 7 |
\usepackage[colorlinks]{hyperref} |
| 8 |
\usepackage{glossaries-extra} |
| 9 |
|
| 10 |
\makeglossaries |
| 11 |
|
| 12 |
\setabbreviationstyle{long-short-sc} |
| 13 |
|
| 14 |
\newabbreviation{ssi}{ssi}{server side includes} |
| 15 |
\newabbreviation{html}{html}{hypertext markup language} |
| 16 |
|
| 17 |
% If sentence-case is required for the following, ensure that you have glossaries |
| 18 |
% v4.50+ and mfirstuc v2.08+ |
| 19 |
\newabbreviation{shtml}{shtml}{\gls{ssi} enabled \gls{html}} |
| 20 |
|
| 21 |
% Alternatively |
| 22 |
%\newabbreviation{shtml}{shtml}{\glsxtrshort{ssi} enabled \glsxtrshort{html}} |
| 23 |
|
| 24 |
% Or |
| 25 |
%\newabbreviation{shtml}{shtml}{\glsps{ssi} enabled \glsps{html}} |
| 26 |
% (optional) enable indexing when \glsps occurs in glossary: |
| 27 |
%\renewcommand{\glossxtrsetpopts}{\glsxtrsetpopts{noindex=false}} |
| 28 |
|
| 29 |
\begin{document} |
| 30 |
|
| 31 |
This is a sample document testing nested link text. |
| 32 |
The \texttt{glossaries-extra} package temporarily modifies |
| 33 |
commands like \verb|\gls| or \verb|\glsxtrshort| that occur |
| 34 |
in fields, when any of those field is accessed through linking |
| 35 |
commands. |
| 36 |
|
| 37 |
\section{\Glsxtrp{long}{html}} |
| 38 |
|
| 39 |
Make sure you have glossaries.sty v4.50+ and mfirstuc.sty v2.08+ for |
| 40 |
improved sentence-casing. |
| 41 |
|
| 42 |
First use: \gls{shtml}. |
| 43 |
|
| 44 |
\newpage |
| 45 |
|
| 46 |
Next use: \gls{shtml}. |
| 47 |
|
| 48 |
\newpage |
| 49 |
|
| 50 |
\printglossaries |
| 51 |
|
| 52 |
\end{document} |