diff --git a/basic-roleplaying/000-header.tex b/basic-roleplaying/000-header.tex index 42319c1..4ff08ac 100644 --- a/basic-roleplaying/000-header.tex +++ b/basic-roleplaying/000-header.tex @@ -8,6 +8,20 @@ %% Half Letter Production \geometry{paperheight=8.5in,paperwidth=5.5in,margin=0.5in} +\usepackage[acronym,nopostdot]{glossaries} + +\makeglossaries + +\usepackage{xparse} +\DeclareDocumentCommand{\newdualentry}{ O{} O{} m m m m } { + \newglossaryentry{gls-#3}{name={#5},text={#5\glsadd{#3}}, + description={#6},#1 + } + \makeglossaries + \newacronym[see={[Glossary:]{gls-#3}},#2]{#3}{#4}{#5\glsadd{gls-#3}} +} + +\loadglsentries[main]{glossary-defs} \title{My Basic Roleplaying Resources} \author{Jigme Datse Yli-Rasku} diff --git a/basic-roleplaying/900-footer.tex b/basic-roleplaying/900-footer.tex index 579d12a..5379f77 100644 --- a/basic-roleplaying/900-footer.tex +++ b/basic-roleplaying/900-footer.tex @@ -3,7 +3,9 @@ \chapter{No idea what we're putting here} \backmatter +\include{glossary} \chapter{Bibliography} \chapter{Other Titles} + \end{document} \ No newline at end of file