Changeset 15

Show
Ignore:
Timestamp:
06/24/08 15:45:24 (5 years ago)
Author:
mwr
Message:

Fixing appendix listing style. Added \appendicesonfirstpageoftoc counter to handle extremlely short ToCs? where the chapter list only covers one page.

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • appendix-b.tex

    r1 r15  
    11\chapter{Sample Tables} 
     2\label{chap:sample_tables} 
    23 
    34\begin{table}[tbp] 
  • chapter1.tex

    r1 r15  
    247247An appendix is generally a ``catch-all'' for supplementary material to 
    248248the the\-sis/dis\-ser\-ta\-tion. In some cases, tables and/or figures 
    249 are placed in an appendix to avoid interrupting the text. 
     249are placed in an appendix to avoid interrupting the text. An example of an appendix can be seen in Appendix~\ref{chap:sample_tables}. 
    250250 
    251251%%% Local Variables:  
  • thesis.tex

    r13 r15  
    240240%%% If you have only one appendix, uncomment the following line. If 
    241241%%% you have multiple appendices, leave it commented. 
    242 %\renewcommand{\appendixpagename}{Appendix} 
     242\renewcommand{\appendixtocname}{Appendices} 
     243\renewcommand{\appendixpagename}{\MakeUppercase{\appendixtocname}} 
     244\appendicesonfirstpageoftoc=0 
    243245 
    244246%%% If you have any appendices on your thesis, leave this \appendix 
     
    246248%%% letter rather than number. 
    247249\appendix 
    248 \renewcommand{\appendixpagename}{\MakeUppercase{Appendix}} 
    249 %\renewcommand{\appendixpagename}{\MakeUppercase{Appendices}} 
    250 \appendixpage* 
     250\appendixpage 
    251251\addappheadtotoc 
    252252\include{appendix-a} 
  • ttuthesis.sty

    r13 r15  
    562562% find that is called for each chapter, before the chapter entry is 
    563563% added to the TOC. 
     564\newcount\appendicesonfirstpageoftoc 
    564565\renewcommand{\insertchapterspace}{% 
    565566  \ifanappendix% 
    566567    \ifthenelse{\equal{\thechapter}{A}}{% 
    567       %\ifthenelse{\equal{}{}}{% 
    568       %  % Appendix listings start on first page of ToC 
    569       %  \addtocontents{toc}{\protect\vskip\baselineskip\noindent\mbox{}\appendixpagename\nobreak\vskip-\baselineskip\protect\pagestyle{toc-app}}% 
    570       %}{% 
    571       %  % Appendix listings start on second-Nth page of ToC 
    572          \addtocontents{toc}{\protect\vskip\baselineskip\noindent\mbox{}\appendixpagename\nobreak\vskip-\baselineskip\protect\thispagestyle{toc}\protect\pagestyle{toc-app}}% 
    573       %} 
    574     }{% 
    575     } 
     568      \ifcase\appendicesonfirstpageoftoc 
     569        \typeout{appendicesonfirstpageoftoc = 0} 
     570        % Appendix listings start on first page of ToC 
     571        \addtocontents{toc}{\protect\vskip\baselineskip\noindent\mbox{}\appendixtocname\nobreak\protect\thispagestyle{toc}\protect\pagestyle{toc-app}}% 
     572      \or 
     573        \typeout{appendicesonfirstpageoftoc = 1} 
     574        % Appendix listings start on second-Nth page of ToC 
     575        \addtocontents{toc}{\protect\vskip\baselineskip\noindent\mbox{}\appendixtocname\nobreak\protect\thispagestyle{toc-initial}\protect\pagestyle{toc-app}}% 
     576      \else 
     577        \typeout{*** Error: appendicesonfirstpageoftoc must equal 0 or 1} 
     578      \fi 
     579    }% 
    576580  \else 
    577581    \ifthenelse{\equal{\thechapter}{1}}{% 
     
    587591% Put a period after the chapter number. 
    588592\renewcommand{\cftchapteraftersnum}{. } 
    589  
    590 % Define ttuchapter and ttuappendix commands that will automatically 
    591 % make chapter entries in TOC uppercase, while keeping the normal 
    592 % mixed-case title for other uses. 
    593 % 
    594 % (DEPRECATED) 
    595 % 
    596 %\newcommand{\ttuchapter}[1]{% 
    597 %  \ifanappendix% 
    598 %    \chapter{#1}% 
    599 %  \else% 
    600 %    \chapter[\MakeUppercase{#1}]{#1}% 
    601 %  \fi 
    602 %} 
    603 %\newcommand{\ttuappendix}[1]{\chapter[\MakeUppercase{#1}]{#1}} 
    604593 
    605594% 
     
    765754\renewcommand{\chapnumfont}{\normalfont\bfseries} 
    766755\renewcommand{\chaptitlefont}{\normalfont\bfseries} 
    767 \renewcommand{\partnamefont}{\normalfont\bfseries} % For Appendix Page 
     756%\renewcommand{\partnamefont}{\normalfont\bfseries} % For Appendix Page 
     757\renewcommand{\parttitlefont}{\normalfont\bfseries} % For Appendix Page 
    768758 
    769759% Remove extra space at top of chapter heading