From b59108e202b0d0dcddedf4695cabdfb6d29a5e4c Mon Sep 17 00:00:00 2001
From: Mark Wooding <mdw@distorted.org.uk>
Date: Tue, 22 Sep 2015 11:27:11 +0100
Subject: [PATCH] doc/sod.tex: Spruce up the index handling.

  * Use `idxlayout' to format the index entries better.

  * Use the `makeidx' package's `\printindex' to read the index file.
---
 doc/sod.tex | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/sod.tex b/doc/sod.tex
index df1e4c8..51fa401 100644
--- a/doc/sod.tex
+++ b/doc/sod.tex
@@ -30,6 +30,11 @@
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenc}
 \usepackage[palatino, helvetica, courier, maths=cmr]{mdwfonts}
+\usepackage{makeidx}
+\usepackage
+  [columns=2, itemlayout=singlepar, justific=raggedright,
+   totoc=true, font=small]
+  {idxlayout}
 \usepackage{tikz}
 \usepackage{syntax}
 \usepackage{sverb}
@@ -153,7 +158,7 @@
 %%%--------------------------------------------------------------------------
 \backmatter
 
-\input{sod.ind}
+\printindex
 
 %%%----- That's all, folks --------------------------------------------------
 \end{document}
-- 
2.11.0

