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