From 6f09299f4c999ea4205ae08e7077e95c9e01e6a7 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Mon, 6 Mar 2023 12:25:32 +0100 Subject: [PATCH] cast spell index --- layout.sty | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout.sty b/layout.sty index 6b53f02f..d60f23e4 100644 --- a/layout.sty +++ b/layout.sty @@ -4,6 +4,7 @@ \RequirePackage[copies]{contour} \RequirePackage[acronym,symbols]{glossaries} \setacronymstyle{short-long-desc} +\RequirePackage{imakeidx}% for spell summaries \RequirePackage{glossary-mcols} \RequirePackage{glossaries-extra} \setabbreviationstyle[acronym]{long-short-sc-desc} @@ -718,6 +719,8 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) %%%%%%%%%%%%%%%%%%%% LAYOUT %%%%%%%%%%%%%%%%%%%% \makeindex +\makeindex[name=spells,title={Spell Summaries},columns=2] + \raggedbottom % Make floats hug the text. @@ -770,7 +773,8 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) } \newcommand{\spell}[4]{ - \subsubsection[#1: #4]{#1} + \index[spells]{#1: #4} + \subsubsection{#1} {\it Type: #2, Skill: #3} } -- GitLab