summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex')
-rw-r--r--macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex b/macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex
new file mode 100644
index 0000000000..986828ecc4
--- /dev/null
+++ b/macros/latex/contrib/glossaries-extra/samples/sample-alttree.tex
@@ -0,0 +1,23 @@
+% arara: pdflatex
+% arara: makeglossaries if found("aux", "@istfilename")
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage[symbols,stylemods=tree,style=alttree]{glossaries-extra}
+
+\makeglossaries
+
+\loadglsentries{example-glossaries-parent.tex}
+\loadglsentries[symbols]{example-glossaries-symbols}
+
+\begin{document}
+\glsaddall
+\glsunsetall
+
+%\glsFindWidestUsedLevelTwo
+\preto{\glsxtralttreeInit}{%
+ \glsFindWidestUsedLevelTwo[\currentglossary]%
+}
+\printglossaries
+
+\end{document}