diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/bib2gls/examples/sample-textsymbols.tex')
-rw-r--r-- | Master/texmf-dist/doc/support/bib2gls/examples/sample-textsymbols.tex | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/bib2gls/examples/sample-textsymbols.tex b/Master/texmf-dist/doc/support/bib2gls/examples/sample-textsymbols.tex new file mode 100644 index 00000000000..95b07ce51e8 --- /dev/null +++ b/Master/texmf-dist/doc/support/bib2gls/examples/sample-textsymbols.tex @@ -0,0 +1,48 @@ +% This file is public domain. See the "Examples" chapter +% in the bib2gls user manual for a more detailed description +% of this file. + +\documentclass[a4paper]{article} + +\usepackage[T1]{fontenc} + +\usepackage{etoolbox} +\usepackage{marvosym} + +% package conflict, need to undefine conflicting commands +\undef\Sun +\undef\Lightning + +\usepackage[weather]{ifsym} + +\usepackage[record,% using bib2gls + nostyles,% don't load default styles + postdot,% append a dot after descriptions + stylemods={tree},% load glossary-mcols.sty and patch + style=alttreegroup]{glossaries-extra} + +\GlsXtrLoadResources[ + src={miscsymbols}, +% make @icon behave like @symbol: + entry-type-aliases={icon=symbol}, + field-aliases={ + identifier=category, + icon=name, + icondescription=description + }, + replicate-fields={category=group}, + sort-field={category}, + sort-suffix={description}, + sort-suffix-marker={|}, + set-widest, + selection=all +] + +\glsxtrsetgrouptitle{information}{Information} +\glsxtrsetgrouptitle{mediacontrol}{Media Controls} +\glsxtrsetgrouptitle{weather}{Weather Symbols} + +\begin{document} +\printunsrtglossaries +\end{document} + |