users-guide: Fix index in PDF output
authorBen Gamari <ben@smart-cactus.org>
Sat, 21 May 2016 11:20:15 +0000 (13:20 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 21 May 2016 17:10:59 +0000 (19:10 +0200)
The madness that is latex never ceases to amaze.

docs/users_guide/conf.py
rules/sphinx.mk

index f9c326e..b2311c4 100644 (file)
@@ -66,6 +66,7 @@ latex_elements = {
     'utf8extra': '',
     'preamble': '''
 \usepackage{fontspec}
+\usepackage{makeidx}
 \setsansfont{DejaVu Sans}
 \setromanfont{DejaVu Serif}
 \setmonofont{DejaVu Sans Mono}
index 823a2af..f3c46b4 100644 (file)
@@ -60,6 +60,10 @@ $1/$2.pdf: $1/conf.py $$($1_RST_SOURCES)
        $(SPHINXBUILD) -b latex -d $1/.doctrees-pdf $(SPHINXOPTS) $1 $1/build-pdf/$2
        cd $1/build-pdf/$2 ; xelatex $2.tex
        cd $1/build-pdf/$2 ; xelatex $2.tex
+       cd $1/build-pdf/$2 ; xelatex $2.tex
+       cd $1/build-pdf/$2 ; makeindex $2.idx
+       cd $1/build-pdf/$2 ; xelatex $2.tex
+       cd $1/build-pdf/$2 ; xelatex $2.tex
        cp $1/build-pdf/$2/$2.pdf $1/$2.pdf
 endif