\newcommand{\ChapNum}[1]{\hyperref[chapter:#1]{{\upshape #1}}} \newcommand{\SecNum}[1]{\hyperref[section:#1]{{\upshape #1}}} \newcommand{\SecRef}[1]{\hyperref[section:#1]{{\upshape §\;#1}}} \newcommand{\SecRefs}[1]{\hyperref[section:#1]{{\upshape §§\;#1}}} \newcommand{\Signature}[2]{% \medskip \null\hfill#1\hspace{\parindent} \medskip {\small #2}% } % Chapter entries \newcommand{\ToCChap}[2]{% \subsection*{\centering\normalfont\small #1} \subsubsection*{\centering\normalfont\footnotesize #2} } % Section(s) entries % ** Macro discards third argument (original page number) \newcommand{\ToCSect}[4]{% \noindent\Strut% Issue vertical space to see if we'll be set on a new page % If #1 is empty, generate our own label, and update \ToCAnchor \ifthenelse{\equal{#1}{}}{% "Miscellaneous examples" line \stepcounter{tocentry}\label{toc:special\thetocentry}% \ifthenelse{\not\equal{\pageref{toc:special\thetocentry}}{\ToCAnchor}}{% \renewcommand{\ToCAnchor}{\pageref{toc:special\thetocentry}}% \SectPageLine% }{}% }{% else use #1 to generate label, and update \ToCAnchor \label{toc:#1}% \ifthenelse{\not\equal{\pageref{toc:#1}}{\ToCAnchor}}{% \renewcommand{\ToCAnchor}{\pageref{toc:#1}}% \SectPageLine% }{}% }% \settowidth{\TmpLen}{999--999. }% Maximum heading width % ** Width (2em) must match \ToCPage width below \parbox[b]{\textwidth-2em}{\Strut\small\hangindent1.5\TmpLen% \makebox[\TmpLen][l]{#1}#2\ \dotfill}\ToCPage{#4}% } % Appendix entries \newcommand{\ToCApp}[1]{% \noindent\parbox[b]{\textwidth-2em}{% \small\ToCBox{}\textsc{#1}\ \dotfill}\ToCPage{appendix:#1}% } % Page numbers \newcommand{\ToCPage}[1]{\makebox[2em][r]{\small\pageref{#1}}} % ** Approximate; refers to original page separators, no hyperlink \newcommand{\PgNo}[2][]{% \ifthenelse{\equal{#1}{}}{% \pageref*{pg:#2}% }{% \pageref{page:#2}% }% } \newenvironment{ToCPar}{\begin{quote}\footnotesize}{\end{quote}} %% Index formatting \makeindex \makeatletter \renewcommand{\@idxitem}{\par\hangindent 30\p@\global\let\idxbrk\nobreak} \renewcommand\subitem{\idxbrk\@idxitem \hspace*{12\p@}\let\idxbrk\relax} \renewcommand{\indexspace}{\par\penalty-3000 \vskip 10pt plus5pt minus3pt\relax} \renewenvironment{theindex}{% \setlength\columnseprule{0.5pt}\setlength\columnsep{18pt}% \begin{multicols}{2}[{\Matter[The numbers refer to pages]{Index}\small}]% \setlength\parindent{0pt}\setlength\parskip{0pt plus 0.3pt}% \thispagestyle{empty}\let\item\@idxitem\raggedright% }{% \end{multicols}\FlushRunningHeads% \clearpage\null\vfill \begin{center} \footnotesize CAMBRIDGE : PRINTED BY \\ J. B. PEACE, M.A., \\ AT THE UNIVERSITY PRESS \end{center} } \makeatother %** Auxiliary index commands \newcommand{\indexfn}[1]{#1 (footnote)}
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