1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
% This file is public domain. See the "Examples" chapter
% in the bib2gls user manual for a more detailed description
% of this file.
\documentclass[fontsize=12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[colorlinks]{hyperref}
\usepackage[record,% use bib2gls
nostyles,% don't load default styles
% load glossary-tree.sty and patch styles:
stylemods={tree},
style=treegroup]{glossaries-extra}
% abbreviation style must be set before \GlsXtrLoadResources
\setabbreviationstyle[markuplanguage]{long-short-desc}
\GlsXtrEnableInitialTagging{markuplanguage}{\abbrvtag}
\renewcommand*{\glsxtrlongshortdescname}{%
\protect\protect\glsabbrvfont{\the\glsshorttok}\space
\glsxtrparen{\glslongfont{\the\glslongtok}}%
}
\GlsXtrLoadResources[
src=markuplanguages,% data in markuplanguages.bib
loc-suffix,
category=markuplanguage
]
\newcommand{\glsxtrpostdescmarkuplanguage}{%
\glsxtrifhasfield{location}{\glscurrententrylabel}%
{,}%
{.}%
}
\glssetcategoryattribute{markuplanguage}{glossname}{firstuc}
\renewcommand*{\glsxtrtagfont}[1]{\underline{\MakeTextUppercase{#1}}}
\begin{document}
\section{First Use}
\gls{LaTeX}, \gls{markdown}, \gls{xhtml}, \gls{mathml}, \gls{svg}.
\section{Next Use}
\gls{LaTeX}, \gls{markdown}, \gls{xhtml}, \gls{mathml}, \gls{svg}.
\GlsXtrSetDefaultNumberFormat{glsignore}
\printunsrtglossary
\end{document}
|