Changeset 12309


Ignore:
Timestamp:
07/02/2009 06:21:32 PM (14 months ago)
Author:
dstn
Message:

still wrestling with stupid paragraph numbering

Location:
trunk/documents/theses/dstn
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/documents/theses/dstn/numberparagraphs.sty

    r12308 r12309  
    5757\usepackage{ifthen} 
    5858 
     59%\renewcommand{\section}[2]{\ifthenelse{\equal{#1}{*}}% 
     60%  {\mysectionstar{#2}}% 
     61%  {\mysection{#1}}% 
     62%} 
     63 
     64\renewenvironment{figure}{% 
     65  \nonumberparagraphs% 
     66  \@float{figure}}{% 
     67  \numberparagraphs% 
     68  \end@float} 
     69 
     70 
     71%%% section 
     72 
    5973\let\mypkg@@section\section 
    6074 
    61 \renewcommand{\section}[2]{\ifthenelse{\equal{#1}{*}}% 
    62   {\mysectionstar{*}{#2}}% 
    63   {\mysection{#1}}% 
     75\renewcommand{\section}{\@ifstar 
     76  \mysectionstar% 
     77  \mysection% 
    6478} 
    6579 
    66 \newcommand{\mysectionstar}[2]{% 
     80\newcommand{\mysectionstar}[1]{% 
    6781  \ifdonumberparagraphs% 
    6882  \nonumberparagraphs% 
    69   \mypkg@@section*{#2}% 
     83  \mypkg@@section*{#1}% 
    7084  \numberparagraphs% 
    7185  \else% 
    72   \mypkg@@section*{#2}% 
     86  \mypkg@@section*{#1}% 
    7387  \fi} 
    7488 
     
    8296  \fi} 
    8397 
     98%%% subsection 
     99 
     100\let\mypkg@@subsection\subsection 
     101 
     102\renewcommand{\subsection}{\@ifstar 
     103  \mysubsectionstar% 
     104  \mysubsection% 
     105} 
     106 
     107\newcommand{\mysubsectionstar}[1]{% 
     108  \ifdonumberparagraphs% 
     109  \nonumberparagraphs% 
     110  \mypkg@@subsection*{#1}% 
     111  \numberparagraphs% 
     112  \else% 
     113  \mypkg@@subsection*{#1}% 
     114  \fi} 
     115 
     116\newcommand{\mysubsection}[1]{% 
     117  \ifdonumberparagraphs% 
     118  \nonumberparagraphs% 
     119  \mypkg@@subsection{#1}% 
     120  \numberparagraphs% 
     121  \else% 
     122  \mypkg@@subsection{#1}% 
     123  \fi} 
    84124 
    85125 
    86126 
     127%%% chapter, chapter* 
     128 
    87129\let\mypkg@@chapter\chapter 
    88 \renewcommand{\chapter}[1]{\ifdonumberparagraphs% 
     130 
     131%\renewcommand{\chapter}[2]{\ifthenelse{\equal{#1}{*}}% 
     132%  {\mychapterstar{#2}}% 
     133%  {\mychapter{#1}}% 
     134%} 
     135 
     136%\renewcommand\chapter{\@dblarg\@mychapter} 
     137%\newcommand\@mychapter{% 
     138%  \@ifstar% 
     139%  \mychapterstar% 
     140%  \mychapter% 
     141%} 
     142 
     143\renewcommand{\chapter}{\@ifstar 
     144  \@dblarg\@mychapterstar% 
     145  \@dblarg\@mychapternostar% 
     146} 
     147 
     148%\def\@ifstar#1{\@ifnextchar *{\@firstoftwo{#1}}} 
     149 
     150%\long\def\@dblarg#1{\kernel@ifnextchar[{#1}{\@xdblarg{#1}}} 
     151%\long\def\@xdblarg#1#2{#1[{#2}]{#2}} 
     152 
     153 
     154%\renewcommand{\chapter}{\@dblarg\@mychapterx} 
     155%\newcommand{\@mychapterx}{\@ifstar 
     156%  \mychapterstar% 
     157%  \@mychapter% 
     158%} 
     159 
     160 
     161\comment{ 
     162\newcommand{\mychapterstar}[1]{% 
     163  \ifdonumberparagraphs% 
     164  \nonumberparagraphs% 
     165  \mypkg@@chapter*{#1}% 
     166  \numberparagraphs% 
     167  \else% 
     168  \mypkg@@chapter*{#1}% 
     169  \fi} 
     170 
     171\newcommand{\mychapter}[1]{% 
     172  \ifdonumberparagraphs% 
    89173  \nonumberparagraphs% 
    90174  \mypkg@@chapter{#1}% 
     
    93177  \mypkg@@chapter{#1}% 
    94178  \fi} 
     179} 
     180 
     181\def\@mychapterstar[#1]#2{% 
     182  \ifdonumberparagraphs% 
     183  \nonumberparagraphs% 
     184  \mypkg@@chapter*[#1]{#2}% 
     185  \numberparagraphs% 
     186  \else% 
     187  \mypkg@@chapter*[#1]{#2}% 
     188  \fi} 
     189 
     190\def\@mychapternostar[#1]#2{% 
     191  \ifdonumberparagraphs% 
     192  \nonumberparagraphs% 
     193  \mypkg@@chapter[#1]{#2}% 
     194  \numberparagraphs% 
     195  \else% 
     196  \mypkg@@chapter[#1]{#2}% 
     197  \fi} 
  • trunk/documents/theses/dstn/review.tex

    r12308 r12309  
    11\section{Preface} 
    2  
    3 \tracingmacros=2 
    4 \numberparagraphs 
    52 
    63This thesis describes some of the research carried out by me and my 
     
    1815 
    1916 
     17\begin{figure} 
     18\begin{center} 
     19test 
     20\end{center} 
     21\caption{test caption} 
     22\end{figure} 
     23 
     24 
    2025This thesis is quite blatantly a collection of manuscripts.  I have 
    2126done a bit more than staple them together to produce the chapters of 
     
    2631should largely stand alone.  Another advantage is that each manuscript 
    2732was prepared with a list of authors, so it is simpler to identify the 
    28 collaborators who have contributed to each chapter.  %Each chapter has 
    29 %a note detailing the authors of the original manuscript and explaining 
    30 %my personal contribution to the work described. 
    31  
     33collaborators who have contributed to each chapter. 
     34 
     35 
     36Test para 
    3237 
    3338\section{Introduction} 
     
    308313of transformations such as affine or perspective projection. 
    309314 
    310 % \cite{affineinvariant} 
    311  
    312315 
    313316Geometric hashing builds \emph{geometric features} out of lower-level 
    314317features.  We will call the low-level features \emph{interest points} 
    315318for clarity. 
     319 
    316320 
    317321Given the types of transformations the system must handle, there is 
  • trunk/documents/theses/dstn/thesis.tex

    r12306 r12309  
    6868\end{preliminary} 
    6969 
     70\numberparagraphs 
     71 
    7072\chapter{Introduction} 
    7173\graphicspath{{figs-review/}} 
Note: See TracChangeset for help on using the changeset viewer.