| 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 |
% Compare this file with sample-textsymbols2.tex which uses |
| 5 |
% a hierarchical approach. |
| 6 |
\documentclass[a4paper]{article} |
| 7 |
|
| 8 |
\usepackage[T1]{fontenc} |
| 9 |
|
| 10 |
\usepackage{etoolbox} |
| 11 |
\usepackage{marvosym} |
| 12 |
|
| 13 |
% package conflict, need to undefine conflicting commands |
| 14 |
\undef\Sun |
| 15 |
\undef\Lightning |
| 16 |
|
| 17 |
\usepackage[weather]{ifsym} |
| 18 |
|
| 19 |
\usepackage[record,% using bib2gls |
| 20 |
nostyles,% don't load default styles |
| 21 |
postdot,% append a dot after descriptions |
| 22 |
stylemods={tree},% load glossary-tree.sty and patch |
| 23 |
style=alttreegroup]{glossaries-extra} |
| 24 |
|
| 25 |
\GlsXtrLoadResources[ |
| 26 |
src={miscsymbols}, |
| 27 |
% make @icon behave like @symbol: |
| 28 |
entry-type-aliases={icon=symbol}, |
| 29 |
field-aliases={ |
| 30 |
identifier=category, |
| 31 |
icon=name, |
| 32 |
icondescription=description |
| 33 |
}, |
| 34 |
replicate-fields={category=group}, |
| 35 |
sort-field={category}, |
| 36 |
sort-suffix={description}, |
| 37 |
sort-suffix-marker={|}, |
| 38 |
set-widest, |
| 39 |
selection=all |
| 40 |
] |
| 41 |
|
| 42 |
\glsxtrsetgrouptitle{information}{Information} |
| 43 |
\glsxtrsetgrouptitle{mediacontrol}{Media Controls} |
| 44 |
\glsxtrsetgrouptitle{weather}{Weather Symbols} |
| 45 |
|
| 46 |
\begin{document} |
| 47 |
\printunsrtglossaries |
| 48 |
\end{document} |
| 49 |
|