| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 1 Multiple abbreviation styles |
| 3 |
% Label: "ex:multiabbrvstyles" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\usepackage[T1]{fontenc} |
| 9 |
\usepackage{glossaries-extra} |
| 10 |
\setabbreviationstyle{long-short-sc} |
| 11 |
\setabbreviationstyle[genus]{long-only-short-only} |
| 12 |
\setabbreviationstyle[common]{short-nolong} |
| 13 |
\newabbreviation{xml}{xml}{extensible markup language} |
| 14 |
\newabbreviation[category={genus}]{clostridium}{C.}{Clostridium} |
| 15 |
\newabbreviation[category={genus}]{myristica}{M.}{Myristica} |
| 16 |
\newabbreviation[category={common}]{html}{HTML}{hypertext markup language} \newabbreviation[category={title}]{dr}{Dr}{Doctor} |
| 17 |
\begin{document} |
| 18 |
First use: \gls{xml}, \gls{clostridium}, \gls{myristica}, \gls{html}, \gls{dr}. |
| 19 |
|
| 20 |
Next use: \gls{xml}, \gls{clostridium}, \gls{myristica}, \gls{html}, \gls{dr}. |
| 21 |
\end{document} |