blob: 5d549467acf5aa2a7f7b89263b179ac433af213a (
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 1 Multiple abbreviation styles
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{glossaries-extra}
\setabbreviationstyle{long-short-sc}
\setabbreviationstyle[genus]{long-only-short-only}
\setabbreviationstyle[common]{short-nolong}
\newabbreviation{xml}{xml}{extensible markup language}
\newabbreviation[category={genus}]{clostridium}{C.}{Clostridium}
\newabbreviation[category={genus}]{myristica}{M.}{Myristica}
\newabbreviation[category={common}]{html}{HTML}{hypertext markup language} \newabbreviation[category={title}]{dr}{Dr}{Doctor}
\begin{document}
First use: \gls{xml}, \gls{clostridium}, \gls{myristica}, \gls{html}, \gls{dr}.
Next use: \gls{xml}, \gls{clostridium}, \gls{myristica}, \gls{html}, \gls{dr}.
\end{document}
|