Index: /trunk/documents/theses/dstn/numberparagraphs.sty
===================================================================
--- /trunk/documents/theses/dstn/numberparagraphs.sty	(revision 12308)
+++ /trunk/documents/theses/dstn/numberparagraphs.sty	(revision 12308)
@@ -0,0 +1,94 @@
+% http://www.tex.ac.uk/cgi-bin/texfaq2html?label=subverttoks
+\let\mypkg@@everypar\everypar
+\newtoks\mypkg@everypar
+\mypkg@everypar\expandafter{\the\everypar}
+%\mypkg@@everypar{\mypkgs@ownstuff\the\mypkg@everypar}
+\mypkg@@everypar{\ifdonumberparagraphs\mypkgs@ownstuff\fi\the\mypkg@everypar}
+
+\newif\ifdonumberparagraphs
+%\newif\ifsavenumberparagraphs
+\donumberparagraphsfalse
+\newcommand{\numberparagraphs}{\global\donumberparagraphstrue}
+\newcommand{\nonumberparagraphs}{\global\donumberparagraphsfalse}
+
+\newcounter{parcounter}[chapter]
+\newcommand\thepara{\thechapter.\@arabic\c@parcounter}
+
+
+
+\def\mypkgs@ownstuff{%
+  %\ifdonumberparagraphs\marginpar{hello}\fi%
+  \donumberparagraphsfalse%
+  \refstepcounter{parcounter}%
+  \marginpar{hello \thepara}%
+  \donumberparagraphstrue%
+}
+
+\let\everypar\mypkg@everypar
+
+
+% don't do it for \section...
+%\let\mypkg@@section\section
+%\newtoks\mypkg@section
+%\mypkg@section\expandafter{\the\section}
+%\mypkg@@section{\ifdonumberparagraphs\donumberparagraphsfalse\the\mypkg@section\donumberparagraphstrue\else\the\mypkg@section\fi}
+%\let\section\mypkg@section
+
+%\newcommand{\oldsection}[1]{\section{#1}}
+%\renewcommand{\section}{\nonumberparagraphs\oldsection\numberparagraphs}
+
+%\let\mypkg@@section\section
+%\renewcommand{\section}[1]{\ifdonumberparagraphs%
+%  \nonumberparagraphs%
+%  \mypkg@@section{#1}%
+%  \numberparagraphs%
+%  \else%
+%  \mypkg@@section{#1}%
+%  \fi}
+
+%\renewcommand{\section}[1]{\ifdonumberparagraphs%
+%  \nonumberparagraphs%
+%  \@ifstar\mypkg@@section*{#1}\mypkg@@section{#1}%
+%  \numberparagraphs%
+%  \else%
+%  \@ifstar\mypkg@@section*{#1}\mypkg@@section{#1}%
+%  \fi}
+
+\usepackage{ifthen}
+
+\let\mypkg@@section\section
+
+\renewcommand{\section}[2]{\ifthenelse{\equal{#1}{*}}%
+  {\mysectionstar{*}{#2}}%
+  {\mysection{#1}}%
+}
+
+\newcommand{\mysectionstar}[2]{%
+  \ifdonumberparagraphs%
+  \nonumberparagraphs%
+  \mypkg@@section*{#2}%
+  \numberparagraphs%
+  \else%
+  \mypkg@@section*{#2}%
+  \fi}
+
+\newcommand{\mysection}[1]{%
+  \ifdonumberparagraphs%
+  \nonumberparagraphs%
+  \mypkg@@section{#1}%
+  \numberparagraphs%
+  \else%
+  \mypkg@@section{#1}%
+  \fi}
+
+
+
+
+\let\mypkg@@chapter\chapter
+\renewcommand{\chapter}[1]{\ifdonumberparagraphs%
+  \nonumberparagraphs%
+  \mypkg@@chapter{#1}%
+  \numberparagraphs%
+  \else%
+  \mypkg@@chapter{#1}%
+  \fi}
Index: /trunk/documents/theses/dstn/preamble.tex
===================================================================
--- /trunk/documents/theses/dstn/preamble.tex	(revision 12304)
+++ /trunk/documents/theses/dstn/preamble.tex	(revision 12308)
@@ -21,7 +21,4 @@
 % \afterpage{clearpage}
 
-%\usepackage{parano}
-%\usepackage{dstnparano}
-
 \usepackage{amssymb,amsmath}
 \usepackage{graphicx}
@@ -31,4 +28,7 @@
 \usepackage{dcolumn}
 \usepackage{afterpage}
+
+\usepackage{numberparagraphs}
+%\newcommand{\numberparagraphs}{}
 
 \newlength{\figunit}
Index: /trunk/documents/theses/dstn/conclusion.tex
===================================================================
--- /trunk/documents/theses/dstn/conclusion.tex	(revision 12301)
+++ /trunk/documents/theses/dstn/conclusion.tex	(revision 12308)
@@ -10,5 +10,5 @@
 fact that the stars are very distant, so the viewpoint is essentially
 fixed, and while the stars do move, their motions are small enough
-that their geometric relationship change very little.  The problem is
+that their geometric relationships change very little.  The problem is
 difficult largely for its sheer scale: typical images cover
 one-millionth of the surface area of the sky or less, and errors of
@@ -17,6 +17,6 @@
 
 
-Chapters \chapref{chap:techreport}, \chapref{chap:verify} and
-\chapref{chap:kdtree} highlight the main aspects of the system: a
+Chapters \ref{chap:techreport}, \ref{chap:verify} and
+\ref{chap:kdtree} highlight the main aspects of the system: a
 geometric feature-indexing method that is able to generate
 hypothesized matches; a robust probabilistic scheme for testing these
@@ -26,10 +26,10 @@
 
 
-We launched the \an system as a web service and release all the code
-quite early in its development, and while operating and maintaining it
-took considerable effort, we learned a great deal about real-world
-data, and the fact that real people were using it to do real work
-motivated us to continue tuning and refining the system.  As more and
-more people are using the system and adapting it to their own
+We launched the \an system as a web service and released of all the
+code quite early in its development, and while operating and
+maintaining it took considerable effort, we learned a great deal about
+real-world data, and the fact that real people were using it to do
+real work motivated us to continue tuning and refining the system.  As
+more and more people are using the system and adapting it to their own
 purposes, we feel we are getting closer to our goal ``to help
 organize, annotate and make searchable all the world's astronomical
Index: /trunk/documents/theses/dstn/review.tex
===================================================================
--- /trunk/documents/theses/dstn/review.tex	(revision 12304)
+++ /trunk/documents/theses/dstn/review.tex	(revision 12308)
@@ -1,3 +1,6 @@
 \section{Preface}
+
+\tracingmacros=2
+\numberparagraphs
 
 This thesis describes some of the research carried out by me and my
