From: W. Trevor King Date: Sun, 14 Mar 2010 11:39:59 +0000 (-0400) Subject: Added \iffinal and bumped to v0.7 X-Git-Tag: 0.7^0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f39ba2dbaf7ed3df14181c7ff47cc38759e3b0bb;p=drexel-thesis.git Added \iffinal and bumped to v0.7 Removed v1.4f change note from cut-and-pasted theindex definition. Shortened the one-page \Blindtext entries to 3 paragraphs, so they will actually fit on one page. I was calling the blindtext macros incorrectly before. The options should go in brackets [], not braces {}. --- diff --git a/drexel-thesis.dtx b/drexel-thesis.dtx index ed6f4c0..904e7f4 100644 --- a/drexel-thesis.dtx +++ b/drexel-thesis.dtx @@ -1,8 +1,8 @@ -% \def\fileversion{0.6} -% \def\filedate{2010/03/11} +% \def\fileversion{0.7} +% \def\filedate{2010/03/14} % \iffalse meta-comment -%\def\fileversion{0.6} -%\def\filedate{2010/03/11} +%\def\fileversion{0.7} +%\def\filedate{2010/03/14} % % Copyright (C) 2010 C.Y. Ip % Christopher D. Cera @@ -413,6 +413,15 @@ % The skipped lines are always \emph{single spaced} lines, regardless % of the current line spacing in the environment calling this macro. % +% \begin{command} +% `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}' +% \end{command} +% \DescribeMacro{\iffinal} +% Include \Lopt{final}- or \Lopt{draft}-specific code. +% \begin{example} +% We're in \iffinal{final}{draft} mode! +% \end{example} +% % % \subsection{Environments} % @@ -657,6 +666,15 @@ \newif\if@final % \end{macrocode} % +% \begin{macro}{\iffinal} +% Setup a user-friendly means for including \Lopt{final}- or +% \Lopt{draft}-specific code. +% \changes{0.7}{2010/03/14}{W.~Trevor King added macro.} +% \begin{macrocode} +\newcommand\iffinal[2]{\if@final #1\else #2\fi} +% \end{macrocode} +% \end{macro} +% % \begin{option}{subfig} % Set \Lopt{subfig} flag % \begin{macrocode} @@ -2766,8 +2784,6 @@ % Parameter changes to |\columnseprule| and |\columnsep| have to be % done after |\twocolumn| has acted. Otherwise they can affect the % last page before the index. -% \changes{ v1.4f}{2004/02/16}{Moved setting of \cs{columnsep} and -% \cs{columnseprule} later to avoid affecting the wrong page (pr/3616)} % \begin{macrocode} \parindent\z@ \parskip\z@ \@plus .3\p@\relax @@ -3013,11 +3029,13 @@ \begin{preamble} \begin{dedications} -\Blindtext{10}{10} +We're in \iffinal{final}{draft} mode! + +\Blindtext[3] \end{dedications} \begin{acknowledgments} -\Blindtext{10}{10} +\Blindtext[3] \end{acknowledgments} \tableofcontents @@ -3025,7 +3043,7 @@ \listoffigures \begin{abstract} -\Blindtext{10}{10} +\Blindtext[3] \end{abstract} \end{preamble} @@ -3039,7 +3057,7 @@ \include{example-a} \begin{vita} -\Blindtext{10}{10} +\Blindtext[3] \end{vita} \end{document} @@ -3076,7 +3094,7 @@ Here we have a text citation \citet{rief97} followed by a parenthetical citation\citep{rief97}. \subsubsection{Tables and Figures} -\Blindtext{2}{20} +\Blindtext[2] \begin{table} \begin{center} \begin{tabular}{r@{.}l r@{.}l r@{.}l} @@ -3088,7 +3106,7 @@ parenthetical citation\citep{rief97}. 30&0 & 11&9 & 10&1 \\ \ldots \end{tabular} - \caption{A table float.} %\blindtext{20}} % low caption allowed with floatrow + \caption{A table float.} % low caption allowed with floatrow %% Note the strange |r@{.}l| notation in the |\tabular| column %% definition. This allows for numbers aligned at the decimal point %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}). @@ -3097,14 +3115,14 @@ parenthetical citation\citep{rief97}. %% to span the pre- and post-decimal columns. \end{center} \end{table} -\Blindtext{5}{20} +\Blindtext[2] \begin{figure} - \caption{A figure float. \blindtext{20}} % high caption allowed with floatrow + \caption{A figure float. \blindtext} % high caption allowed with floatrow \begin{center} \includegraphics[width=0.4\textwidth]{drexel-logo} \end{center} \end{figure} -\Blindtext{10}{20} +\Blindtext[3] \begin{figure} \begin{center} \subfloat[][]{% @@ -3120,14 +3138,14 @@ parenthetical citation\citep{rief97}. You can reference the subfig floats individually (\ref{fig:sub-a}) or together (\ref{fig:both}). -\Blindtext{10}{20} +\Blindtext[3] \part{Another Part} \chapter{Another Chapter} -\Blindtext{30}{20} +\Blindtext[5] \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla} -\Blindtext{30}{20} +\Blindtext[5] % % \end{macrocode} % @@ -3196,9 +3214,9 @@ Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla} % \begin{macrocode} %<*example-appendix> \chapter{Some Appendix Heading} -\Blindtext{10}{20} +\Blindtext[5] \chapter{Another Appendix Heading} -\Blindtext{10}{20} +\Blindtext[5] % % \end{macrocode} %