X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/ddfe426573957fa52102832a51582bb134ee7b42..5134f04ba0d91daad010272eeb52d6ccc581cb14:/doc/sod.tex

diff --git a/doc/sod.tex b/doc/sod.tex
index df1e4c8..a92d3ac 100644
--- a/doc/sod.tex
+++ b/doc/sod.tex
@@ -30,11 +30,18 @@
 \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}
+\usetikzlibrary{calc}
+\usetikzlibrary{positioning}
 \usepackage{syntax}
 \usepackage{sverb}
 \usepackage{mdwtab}
-\usepackage[mdwmargin]{mdwthm}
+\usepackage[mdwmargin, within=section]{mdwthm}
 \usepackage{amssymb}
 \usepackage{footnote}
 \usepackage{at}
@@ -43,6 +50,7 @@
 \usepackage{sod}
 
 \makeindex
+\let\indexstheadcase\relax
 
 \title{A Sensible Object Design for C}
 \author{Mark Wooding}
@@ -58,14 +66,17 @@
 
 \mainmatter
 
+\include{intro}
+
 %%%--------------------------------------------------------------------------
-\part{Tutorial} \label{p:tut}
+\part{Tutorial\label{p:tut}}
 
 \include{tutorial}
 
 %%%--------------------------------------------------------------------------
-\part{Reference} \label{p:ref}
+\part{Reference\label{p:ref}}
 
+\include{refintro}
 \include{concepts}
 \include{cmdline}
 \include{syntax}
@@ -73,7 +84,7 @@
 \include{structures}
 
 %%%--------------------------------------------------------------------------
-\part{Lisp interface} \label{p:lisp}
+\part{Lisp interface\label{p:lisp}}
 
 \include{lispintro}
 %% package.lisp
@@ -153,7 +164,7 @@
 %%%--------------------------------------------------------------------------
 \backmatter
 
-\input{sod.ind}
+\printindex
 
 %%%----- That's all, folks --------------------------------------------------
 \end{document}
