X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/45e10a4f206558e310e8c9119918cc2b188453c6..82567ea97e4f9374e8a3d586ea49ad9bf3dff3dc:/doc/sod.tex?ds=sidebyside

diff --git a/doc/sod.tex b/doc/sod.tex
index b81abf7..1203b68 100644
--- a/doc/sod.tex
+++ b/doc/sod.tex
@@ -23,18 +23,25 @@
 %%% along with SOD; if not, write to the Free Software Foundation,
 %%% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-\documentclass[noarticle]{strayman}
+\documentclass[noarticle, titlepage]{strayman}
 
 \errorcontextlines=999
 
 \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[mdwmargin, within=section]{mdwthm}
 \usepackage{amssymb}
 \usepackage{footnote}
 \usepackage{at}
@@ -42,28 +49,36 @@
 
 \usepackage{sod}
 
+\makeindex
+\let\indexstheadcase\relax
+\bibliographystyle{mdwalpha}
+
 \title{A Sensible Object Design for C}
 \author{Mark Wooding}
+\date{\today; version \pkgversion}
 
 \begin{document}
 
+\frontmatter
 \maketitle
 
 %%%--------------------------------------------------------------------------
-\frontmatter
 
 \tableofcontents
 
 \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 +86,7 @@
 \include{structures}
 
 %%%--------------------------------------------------------------------------
-\part{Lisp interface} \label{p:lisp}
+\part{Lisp interface\label{p:lisp}}
 
 \include{lispintro}
 %% package.lisp
@@ -80,13 +95,10 @@
 %% auto.lisp.in
 
 \include{misc}
+%% utilities.lisp
 %% pset-impl.lisp
 %% pset-parse.lisp
 %% pset-proto.lisp
-%% lexer-bits.lisp
-%% lexer-impl.lisp
-%% lexer-proto.lisp
-%% utilities.lisp
 %% optparse.lisp
 %% frontend.lisp
 %% final.lisp
@@ -106,6 +118,8 @@
 %% parser-proto.lisp
 %% parser-expr-impl.lisp
 %% parser-expr-proto.lisp
+%% lexer-impl.lisp
+%% lexer-proto.lisp
 
 \include{clang}
 %% c-types-class-impl.lisp
@@ -149,6 +163,14 @@
 
 \include{cutting-room-floor}
 
+%%%--------------------------------------------------------------------------
+\backmatter
+
+\bibliography{%
+  isostd,%
+  sigplan1990}
+\printindex
+
 %%%----- That's all, folks --------------------------------------------------
 \end{document}
 
