% Set the section number in a fixed-width box \newcommand{\ToCBox}[1]{\settowidth{\TmpLen}{999.}% \makebox[\TmpLen][r]{#1}\hspace*{1em}% } % For internal use, to determine if we need the Section/Page line \newcommand{\ToCAnchor}{} % \ToCLine{SecNo}{Title} \newcommand{\ToCLine}[2]{% \label{toc:#1}% \ifthenelse{\not\equal{\pageref{toc:#1}}{\ToCAnchor}}{% \renewcommand{\ToCAnchor}{\pageref{toc:#1}}% \noindent\makebox[\textwidth][r]{\scriptsize SECTION\hfill PAGE}\\[8pt]% }{}% \settowidth{\TmpLen}{9999}% \noindent\strut\parbox[b]{\textwidth-\TmpLen}{\small% \ToCBox{#1.}\hangindent4em#2\dotfill}% \makebox[\TmpLen][r]{\pageref{section:#1}}% \smallskip } \newcommand{\Bibitem}[1]{\par\noindent\hangindent2em\textsc{#1}} \newcommand{\Same}{\raisebox{0.5ex}{\rule{2em}{1pt}}} %% Sectional units %% % Typographical abstraction \newcommand{\ChapHead}[2][\large]{% \section*{\centering\normalfont#1\MakeUppercase{#2}} } \newcommand{\SectTitle}[2][\large]{% \section*{\centering#1\normalfont #2} } \newcommand{\SubsectTitle}[2][]{% \subsubsection*{\indent#1#2} } % \Chapter{Title} \newcommand{\Preface}{% \FlushRunningHeads \InitRunningHeads \BookMark{0}{Preface} \SetRunningHeads{Preface} \vspace*{0.5in} \ChapHead{\MakeUppercase{Preface}} } \newcommand{\Matter}[2][]{% \FlushRunningHeads \InitRunningHeads \BookMark{0}{#2} \SetRunningHeads{#2} \vspace*{0.5in} \ChapHead{\MakeUppercase{#2}} \ifthenelse{\not\equal{#1}{}}{% \subsection*{\centering\normalfont\normalsize\itshape #1}}{}% \label{appendix:#2}% \addtocontents{toc}{\protect\ToCApp{#2}} } \newcommand{\Chapter}[2]{% \FlushRunningHeads \InitRunningHeads \BookMark{0}{Chapter #1} \label{chapter:#1} \vspace*{0.5in} \ChapHead{\MakeUppercase{Chapter #1}} \SectTitle[\small]{\MakeUppercase{#2}} \addtocontents{toc}{\protect\ChapHead{CHAPTER #1}} \addtocontents{toc}{\protect\SectTitle[\protect\small]{\MakeUppercase{#2}}} \ifthenelse{\boolean{ForPrinting}}{% \SetRunningHeads[OL,ER]{Ch.~#1}% }{% \SetRunningHeads[L]{Ch.~#1}% } } \newcommand{\Part}[2]{% \addtocontents{toc}{\protect\SectTitle[\protect\small]{\protect\textsc{Part #1 #2}}} \SectTitle[\small]{\textsc{Part #1 #2}} } % For internal use by \Tag and \Eq \newcounter{SecNo} \newcommand{\Section}[3][]{ \subsubsection*{\indent#2 #3.} \refstepcounter{SecNo} \label{section:\theSecNo} \addtocontents{toc}{\protect\ToCLine{\theSecNo}{#3}} \ifthenelse{\equal{#1}{}}{% \SetRunningHeads[C]{#3}% }{% % \addtocontents{toc}{\protect\ToCLine{\theSecNo}{#1}} \SetRunningHeads[C]{#1}% } } \newcommand{\Subsection}[2][]{% \ifthenelse{\equal{#1}{}}{% \SubsectTitle[\normalfont\itshape]{#2} }{% else \SubsectTitle[\normalfont\itshape]{\Item{#1} #2} } } \newcommand{\Summary}[1]{% \SubsectTitle{\centering\normalfont\textsc{#1}} }
Reviews
Reviews
No reviews yet
Be the first to share your thoughts on this work.
Join the Discussion
Join the discussion
Sign in to leave a comment or review.
Sign InorCreate an account