X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/5ea92e79ef1e4b7db2d7d5251e5b6044c613466f..cf02a78f81bc0db373c0b236e84e101c538da999:/doc/sod.tex

diff --git a/doc/sod.tex b/doc/sod.tex
index 3ee1a5d..9b2964d 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, justific=raggedright,
+   totoc=true, font=small]
+  {idxlayout}
 \usepackage{tikz}
+\usetikzlibrary{calc}
+\usetikzlibrary{positioning}
 \usepackage{syntax}
 \usepackage{sverb}
-\usepackage{mdwtab}
-\usepackage[mdwmargin]{mdwthm}
+\usepackage{longtable, mdwtab}
+\usepackage[mdwmargin, within=section]{mdwthm}
 \usepackage{amssymb}
 \usepackage{footnote}
 \usepackage{at}
@@ -42,8 +49,21 @@
 
 \usepackage{sod}
 
+\makeindex
+\let\indexstheadcase\relax
+\bibliographystyle{mdwalpha}
+
+\ifx\pkgversion\xxundefined
+  \immediate\typeout{WARNING: \string\pkgversion\ not defined}
+  \def\pkgversion{UNSET}
+\fi
+
 \title{A Sensible Object Design for C}
 \author{Mark Wooding}
+\date{\today; version \pkgversion}
+\innerhead[Version \pkgversion]{}
+
+%%\includeonly{...}
 
 \begin{document}
 
@@ -56,14 +76,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}
@@ -71,7 +94,7 @@
 \include{structures}
 
 %%%--------------------------------------------------------------------------
-\part{Lisp interface} \label{p:lisp}
+\part{Lisp interface\label{p:lisp}}
 
 \include{lispintro}
 %% package.lisp
@@ -148,6 +171,12 @@
 
 \include{cutting-room-floor}
 
+%%%--------------------------------------------------------------------------
+\backmatter
+
+\bibliography{sod}
+\printindex
+
 %%%----- That's all, folks --------------------------------------------------
 \end{document}
 
