summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex12
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
index 612083ed554..39aa4e905fe 100644
--- a/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
+++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
@@ -3,6 +3,7 @@
% arara: pdflatex
\documentclass{article}
+\usepackage[T1]{fontenc}
\usepackage[colorlinks]{hyperref}
\usepackage{glossaries-extra}
@@ -14,6 +15,7 @@
\setabbreviationstyle[initialism]{short-long}
\glssetcategoryattribute{initialism}{insertdots}{true}
\glssetcategoryattribute{initialism}{discardperiod}{true}
+\glssetcategoryattribute{initialism}{retainfirstuseperiod}{true}
% define the entries:
@@ -23,6 +25,8 @@
\newabbreviation[category=initialism]{si}{SI}{sample initials}
\begin{document}
+\section{Examples}
+
Abbreviations with dots \gls{eg} and \gls{si} and abbreviation
without dots \gls{html} and the end of the sentence.
@@ -31,6 +35,14 @@ without dots \gls{html} and the end of the sentence.
Plural: \glspl{si} and at the end of a sentence \glspl{si}.
+Reset\glsresetall. First use end of sentence:
+\gls{eg}. \gls{si}. \gls{html}.
+
+Next use end of sentence:
+\gls{eg}. \gls{si}. \gls{html}.
+
+\section{Space Factors}
+
Test the space factors. (More visible if we switch to a monospaced
font.)