Changeset 12349

Show
Ignore:
Timestamp:
07/05/09 21:19:55 (8 months ago)
Author:
dstn
Message:

fix paragraph numbering with footnotes

Location:
trunk/documents/theses/dstn
Files:
3 modified

Legend:

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

    r12322 r12349  
    2222\newcommand{\nonumberparagraphs}{\global\donumberparagraphsfalse} 
    2323\newif\ifsavednumberparagraphs 
    24 \savednumberparagraphsfalse 
     24% It seems that \footnote{} somehow expands  
     25\newif\ifsaveddnumberparagraphs 
     26%\savednumberparagraphsfalse 
    2527\newcommand{\savenumberparagraphs}{% 
     28  % HACK - size-2 stack 
     29  \ifsavednumberparagraphs% 
     30  \global\saveddnumberparagraphstrue% 
     31  \else% 
     32  \global\saveddnumberparagraphsfalse% 
     33  \fi% 
     34  % 
    2635  \ifdonumberparagraphs% 
    2736  \global\savednumberparagraphstrue% 
     
    3544  \else% 
    3645  \global\donumberparagraphsfalse% 
     46  \fi% 
     47  % HACK - size-2 stack 
     48  \ifsaveddnumberparagraphs% 
     49  \global\savednumberparagraphstrue% 
     50  \else% 
     51  \global\savednumberparagraphsfalse% 
    3752  \fi% 
    3853} 
  • trunk/documents/theses/dstn/test2.tex

    r12321 r12349  
    4343paragraph 
    4444 
     45\chapter[short]{Chapter with short name\footnote{and footnote!}} 
     46 
     47paragraph... should be numbered. 
     48 
    4549\chapter{\kdtree\ chapter} 
    4650 
  • trunk/documents/theses/dstn/thesis.tex

    r12328 r12349  
    8484\chapter{Introduction} 
    8585\graphicspath{{figs-review/}} 
    86 %\include{review} 
     86\include{review} 
    8787 
    8888\chapter[\antitle: recognizing astronomical images] 
     
    9393\label{chap:techreport} 
    9494\graphicspath{{figs-techreport/}} 
    95 %\include{tech-report} 
     95\include{tech-report} 
    9696 
    9797\chapter[Verifying an astrometric alignment] 
     
    9999\label{chap:verify} 
    100100\graphicspath{{figs-verify/}} 
    101 %\input{verify} 
     101\input{verify} 
    102102 
    103103\chapter[Efficient implementation of \kdtreestitle] 
     
    111111\chapter{Conclusion} 
    112112\label{chap:conclusion} 
    113 %\include{conclusion} 
     113\include{conclusion} 
    114114 
    115115\nonumberparagraphs