summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexindent/success/testcls.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latexindent/success/testcls.cls')
-rw-r--r--Master/texmf-dist/doc/support/latexindent/success/testcls.cls78
1 files changed, 42 insertions, 36 deletions
diff --git a/Master/texmf-dist/doc/support/latexindent/success/testcls.cls b/Master/texmf-dist/doc/support/latexindent/success/testcls.cls
index 8b0d1a0e73a..d4c23660c5a 100644
--- a/Master/texmf-dist/doc/support/latexindent/success/testcls.cls
+++ b/Master/texmf-dist/doc/support/latexindent/success/testcls.cls
@@ -187,12 +187,14 @@
% - Page break after
% - TODO: couldn't get pdfbookmark to point to this page instead of the
% first page so it was removed.
+%\begin{noindent}
\xpretocmd{\tableofcontents}{%
\begin{singlespace}}{}{}
- \xapptocmd{\tableofcontents}{%
- \end{singlespace}%
- \pagestyle{plain}%
- \clearpage}{}{}
+\xapptocmd{\tableofcontents}{%
+\end{singlespace}%
+\pagestyle{plain}%
+\clearpage}{}{}
+%\end{noindent}
% - Add dot leader for chapter levels
\renewcommand\cftchapdotsep{\cftdotsep}
@@ -201,23 +203,23 @@
% - Adjust indentation of levels
% - Capitalize title entries, if requested
\if@isu@capstoc
-\renewcommand\cftchappresnum{\MakeUppercase{\chaptertitlename} }
-\cftsetindents{chapter}{0em}{8em}
-\cftsetindents{section}{2em}{0em}
-\cftsetindents{subsection}{3em}{0em}
-\renewcommand{\cftchapfont}{\MakeUppercase}
+ \renewcommand\cftchappresnum{\MakeUppercase{\chaptertitlename} }
+ \cftsetindents{chapter}{0em}{8em}
+ \cftsetindents{section}{2em}{0em}
+ \cftsetindents{subsection}{3em}{0em}
+ \renewcommand{\cftchapfont}{\MakeUppercase}
\else
-\renewcommand\cftchappresnum{\chaptertitlename\ }
-\cftsetindents{chapter}{0em}{6em}
-\cftsetindents{section}{1em}{0em}
-\cftsetindents{subsection}{2em}{0em}
+ \renewcommand\cftchappresnum{\chaptertitlename\ }
+ \cftsetindents{chapter}{0em}{6em}
+ \cftsetindents{section}{1em}{0em}
+ \cftsetindents{subsection}{2em}{0em}
\fi
% - Remove section/subsection numbers from ToC by capturing
% see idea at http://tex.stackexchange.com/questions/71123/remove-section-number-toc-entries-with-tocloft
\if@isu@tocnumbersections@\else
-\renewcommand{\cftsecpresnum}{\begin{lrbox}{\@tempboxa}}
-\renewcommand{\cftsecaftersnum}{\end{lrbox}}
+ \renewcommand{\cftsecpresnum}{\begin{lrbox}{\@tempboxa}}
+ \renewcommand{\cftsecaftersnum}{\end{lrbox}}
\fi
\if@isu@tocnumbersubsections@\else
@@ -229,10 +231,12 @@
% List of Figures:
% - Single space
% - Page break after
+%\begin{noindent}
\xpretocmd{\listoffigures}{%
- \begin{singlespace}}{}{}
- \xapptocmd{\listoffigures}{%
- \end{singlespace}\clearpage}{}{}
+\begin{singlespace}}{}{}
+\xapptocmd{\listoffigures}{%
+\end{singlespace}\clearpage}{}{}
+%\end{noindent}
% - Prepend the word "Figure" to the number
\renewcommand\cftfigpresnum{Figure }
@@ -242,10 +246,12 @@
% List of Tables:
% - Single space
% - Page break after
+%\begin{noindent}
\xpretocmd{\listoftables}{%
\begin{singlespace}}{}{}
- \xapptocmd{\listoftables}{%
- \end{singlespace}\clearpage}{}{}
+\xapptocmd{\listoftables}{%
+ \end{singlespace}\clearpage}{}{}
+%\end{noindent}
% - Prepend the word "Table" to the number
\renewcommand\cfttabpresnum{Table }
@@ -279,13 +285,13 @@
% Verify that we actually got some main matter
\AfterEndDocument{
\if@isu@errormissingmainmatter@
- \ifdefined\@isu@gottitle
- \ClassInfo{\@isu@classname}{Full dissertation mode}
- \unless\ifdefined\@isu@gotmainmatter@
- \ClassError{\@isu@classname}{Missing \protect\mainmatter\space before your first real chapter!}{Missing mainmatter}
- % \ClassError{\@isu@classname}{%
- % \protect\mainmatter\space not called in your document expected before your first real chapter}{%
- % You need to put \protect\mainmatter\space before your first real numbered chapter, typically your introduction.}
+ \ifdefined\@isu@gottitle
+ \ClassInfo{\@isu@classname}{Full dissertation mode}
+ \unless\ifdefined\@isu@gotmainmatter@
+ \ClassError{\@isu@classname}{Missing \protect\mainmatter\space before your first real chapter!}{Missing mainmatter}
+ % \ClassError{\@isu@classname}{%
+ % \protect\mainmatter\space not called in your document expected before your first real chapter}{%
+ % You need to put \protect\mainmatter\space before your first real numbered chapter, typically your introduction.}
\fi
\fi
\fi
@@ -318,13 +324,13 @@ All rights reserved.}
\renewcommand{\maketitle}{
\newcommand{\@isu@gottitle}{} % Assume that \maketitle implies typesetting a full thesis, not just a chapter.
\ClassInfo{\@isu@classname}{Generating title page -- assuming we are typesetting a full dissertation.}
-
+
\begin{titlepage}
\setlength{\parindent}{0pt} % Don't you dare try to indent!
\vbox to \textheight{ % Full-page box to contain everything and stretch everything.
\begin{center} % Center this whole page
\vspace*{12pt} % Designated blank line at the top of the page.
-
+
\begin{singlespace} % Single-space this section, we manually add spacing.
\textbf{\@title}\\ % Title in bold
\@isu@maketwoblanklines % "two blank lines"
@@ -332,34 +338,34 @@ All rights reserved.}
\@isu@maketwoblanklines % "two blank lines"
\textbf{\@author} % Author in bold
\end{singlespace}
-
+
\vfill{} % let LaTeX decide what "4-6 blank lines" should be.
-
+
\begin{\isu@space} % Normal document spacing here.
A \isu@submissiontype\ submitted to the graduate faculty\\
in partial fulfillment of the requirements of the degree of\\
\MakeUppercase{\isu@degree} % Doctor of Philosophy, etc. We enforce caps so they don't have to.
\end{\isu@space}
-
+
\@isu@maketwoblanklines % "two blank lines"
-
+
\begin{singlespace} % Committee is single-spaced, looks like really long majors would be too.
\isu@majorline\\ % "Major: MAJ (CONC)" or "Co-majors: MAJ; MAJ;
\medskip % Unspecified space here, looks like just "one blank line" on sample
Program of Study Committee:\\
\isu@committee % Committee, user-delimited with \\ and user-annoted with ", Major Professor" or "Co-major Professor"
\end{singlespace}
-
+
\vfill{} % let LaTeX decide what "7-8 blank lines" should be.
\@isu@maketwoblanklines % Suggest it's a little longer than the other vfill.
-
+
\begin{\isu@space} % Normal document spacing here
Iowa State University\\
Ames, Iowa\\
\isu@gradyear % Newline after here, if needed, is in the copyright notice macro.
\isu@copyrightnotice % Copyright line optional if copyright not formally filed.
\end{\isu@space}
-
+
\end{center}
}
\end{titlepage}