summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example062.tex
blob: b1b849dc642f54191d307e92d9f3feacef92907e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% This file is embedded in glossaries-extra-manual.pdf
% Example 62 The long-hyphen-short-hyphen-desc abbreviation style
% Label: "ex:abbrvstylelong-hyphen-short-hyphen-desc"
% arara: pdflatex
% arara: pdfcrop
\documentclass[11pt]{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage[colorlinks]{hyperref}
\usepackage{glossaries-extra}
\glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
\setabbreviationstyle{long-hyphen-short-hyphen-desc}
\newabbreviation[description={sample description}]
{ex}{SHRT FM}{long form} 
\begin{document}
First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
Full: \glsxtrfull{ex}[-insert]. First plural: \glspl[prereset]{ex}[-insert].
\printunsrtglossaries 
\end{document}