diff options
Diffstat (limited to 'doc/latex/sphinx.sty')
-rw-r--r-- | doc/latex/sphinx.sty | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/latex/sphinx.sty b/doc/latex/sphinx.sty index 21a3d89..4788109 100644 --- a/doc/latex/sphinx.sty +++ b/doc/latex/sphinx.sty @@ -175,6 +175,23 @@ } +% Index-entry generation support. +% + +% Command to generate two index entries (using subentries) +\newcommand{\indexii}[2]{\index{#1!#2}\index{#2!#1}} + +% And three entries (using only one level of subentries) +\newcommand{\indexiii}[3]{\index{#1!#2 #3}\index{#2!#3, #1}\index{#3!#1 #2}} + +% And four (again, using only one level of subentries) +\newcommand{\indexiv}[4]{ +\index{#1!#2 #3 #4} +\index{#2!#3 #4, #1} +\index{#3!#4, #1 #2} +\index{#4!#1 #2 #3} +} + % \moduleauthor{name}{email} \newcommand{\moduleauthor}[2]{} |