| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 122 Entry counting according to category |
| 3 |
% Label: "ex:catentrycount" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdflatex |
| 6 |
% arara: makeglossaries |
| 7 |
% arara: pdflatex |
| 8 |
% arara: pdfcrop |
| 9 |
\documentclass[12pt]{article} |
| 10 |
\pagestyle{empty} |
| 11 |
\usepackage[colorlinks]{hyperref} |
| 12 |
\usepackage{glossaries-extra} |
| 13 |
\makeglossaries |
| 14 |
\GlsXtrEnableEntryCounting{abbreviation}{1} |
| 15 |
\newabbreviation{css}{CSS}{cascading style sheet} |
| 16 |
\newabbreviation{html}{HTML}{hypertext markup language} |
| 17 |
\newglossaryentry{sample}{name={sample},description={an example}} |
| 18 |
|
| 19 |
\begin{document} |
| 20 |
First use: \gls{css}, \gls{html} and \gls{sample}. |
| 21 |
Next use: \gls{html}. |
| 22 |
\printglossaries |
| 23 |
\end{document} |