summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-03 23:01:02 +0000
committerKarl Berry <karl@freefriends.org>2016-02-03 23:01:02 +0000
commit73767cabef196827d926d0e3adce167a57f4a4b9 (patch)
tree70f3c7450edbed5e7c8ab735eb1438a48b5bfbd2 /Master/texmf-dist/doc/latex/glossaries-extra/sample-initialisms.tex
parentc2b77b4b887eba9dfa698b9a70e5e73b0f5bbcfa (diff)
glossaries-extra (3feb16)
git-svn-id: svn://tug.org/texlive/trunk@39563 c570f23f-e606-0410-a88d-b1316a301751
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.)