From: W. Trevor King Date: Tue, 9 Feb 2010 17:33:09 +0000 (-0500) Subject: Added indenttoc option X-Git-Tag: 0.4^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f75f55350e20bedc93bdd8d43069c802d843f52c;p=drexel-thesis.git Added indenttoc option --- diff --git a/drexel-thesis.dtx b/drexel-thesis.dtx index 814727b..69d2a9c 100644 --- a/drexel-thesis.dtx +++ b/drexel-thesis.dtx @@ -211,6 +211,12 @@ % options set all of the types. For example, \Lopt{boldtoc} is % equivalent to \Lopt{boldchapter,boldpart}. % +% \DescribeOption{indenttoc} +% The example table of contents in the Manual p17 does not indent +% section entries, etc., so neither does \cls{drexel-thesis}. If you +% \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass +% \Lopt{indenttoc} to \cls{drexel-thesis}. +% % \DescribeOption{draftwatermark} % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each % page. A useful way to remember that the version you're looking at @@ -629,6 +635,7 @@ \newif\if@boldchapter \newif\if@boldpart \newif\if@dottedpart +\newif\if@indenttoc \newif\if@draftwatermark \newif\if@mydraftwatermark \newif\if@indentfirst @@ -708,6 +715,13 @@ % \end{macrocode} % \end{option} % +% \begin{option}{indenttoc} +% Set \Lopt{indenttoc} flag +% \begin{macrocode} +\DeclareOptionX{indenttoc}{\@indenttoctrue} +% \end{macrocode} +% \end{option} +% % \begin{option}{draftwatermark} % Set \Lopt{draftwatermark} flag % \begin{macrocode} @@ -2461,6 +2475,19 @@ % \end{macro} % \end{macro} % +% The default indents above are all |0pt|. If \Lopt{indenttoc} was +% given, override this, restoring the \pkg{tocloft} defaults, see the +% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{% +% \pkg{tocloft} manual, Table 1}. +% \begin{macrocode} +\if@indenttoc + \cftsetindents{chapter}{0pt}{1.5em} + \cftsetindents{section}{1.5em}{2.3em} + \cftsetindents{subsection}{3.8em}{3.2em} + \cftsetindents{subsubsection}{7.0em}{4.1em} +\fi +% \end{macrocode} +% % % \subsubsection{List of figures} % \label{sec:implement-lof}