% \CheckSum{611} % \def\fileversion{v1.0} % \def\filedate{4 Jun 95} % \def\docdate{4 Jun 95} %\iffalse % % Run this file through LaTeX2e to generate % the documentation for the `story' class. % %\fi % \changes{v1.0}{4 Jun 95}{Initial revision} % % \title{The \texttt{story} class} % \author{Andrew Arensburger} % \maketitle % \begin{abstract} % The purpose of this class is to enable people to easily % generate manuscripts that conform to the manuscript style defined % in the \texttt{misc.writing} FAQ\cite{mwFAQ}. % \end{abstract} % % \section{Introduction} % According to the \texttt{misc.writing} FAQ\cite{mwFAQ}, a % manuscript about to be submitted for publication should look as % much as possible like the output of a manual typewriter. This is all % fine and good, but a) I don't have a typewriter, I only have a % computer, and b) I happen to think that this style looks really ugly. % % The \texttt{story} \LaTeXe{} class allows you to write a % story in something like the \texttt{article} class, then quickly % turn it into an ugly manuscript when you want to submit it to a % publisher. % % \section{Overview} % A |story| document should, of course, begin with the % line % \begin{quote} % |\documentclass[|\emph{options}|]{story}| % \end{quote} % % \subsection{Options} % The options are the following: % \begin{description} % \item[manuscript] % This document is a manuscript to be submitted to a publisher. % The document will be set in 12-point typewriter type, % double-spaced, unjustified. Emphasized text will be underlined, % not italicized. % \item[novel] % The document is a novel, not a short story. All that this % does for the time being is to force a title page. % \end{description} % The following options, taken from the |article| class, are % also available: % \begin{description} % \item[a4paper] % \item[a5paper] % \item[b5paper] % \item[letterpaper] % \item[legalpaper] % \item[executivepaper] % \item[landscape] % \item[10pt] % \item[11pt] % \item[12pt] % \item[draft] % \item[final] % \item[titlepage] % \item[notitlepage] % \item[openbib] % \end{description} % % \subsection{The Preamble}\label{Preamble} % The following commands can go in the preamble, between % |\documentclass{story}| and |\begin{document}|. % % \DescribeMacro{\author} % Usage: |\author[|\emph{short name}|]{|\emph{full name}|}|. % % The argument is the full name of the author. This is your % real name, the name you want to appear on the check they're going % to send you. % % The optional short name argument will appear in the running % headers. You might want to set this to your last name. % % If you have multiple authors, their names should be separated % with |\and|. This doesn't quite work yet, though. % % \DescribeMacro{\pseudonym} % Usage: |\pseudonym{|\emph{pseudonym}|}|. % % This macro sets your pseudonym, the name under which the story will % be published. If you do not specify a pseudonym, the story will appear % under your real name. % % \DescribeMacro{\title} % Usage: |\title[|\emph{short title}|]{|\emph{full title}|}|. % % The argument is the title of the story. The optional short % title will appear in the running headers. % % \DescribeMacro{\address} % Usage: |\address{|\emph{mailing address}|}|. % % This macro sets your address. This is the address where they % should mail your check. Multiple lines should be separated using % |\\|. % % \DescribeMacro{\phone} % Usage: |\phone{|\emph{phone number}|}|. % % This macro sets your phone number. This is where they'll call % you to discuss changes to your manuscript. Multiple lines should be % separated using |\\|. % % \DescribeMacro{\wordcount} % Usage: |\wordcount{|\emph{word count}|}|. % % This macro sets the approximate word count in your story. % You'll have to count the words yourself. If |\wordcount| is omitted, % then no word count will appear on the title page. % % \subsubsection{The \texttt{authorinfo.cfg} file} % Since these macros set attributes that rarely, if ever, change, % you can put them all in a file called \texttt{authorinfo.cfg}, % in \LaTeX's load path. This saves you the trouble of retyping them % each time you begin a new story. % % Macros in the preamble of the document override those in % \texttt{authorinfo.cfg}. Thus, if you normally write under your % own name, but wish to write a story under a pseudonym, you would % add the line % \begin{quote} % |\pseudonym{|\emph{your pseudonym}|}| % \end{quote} % in the preamble. Or, if you normally write under one pseudonym, but % wish to write this story under another, you would put the line % \begin{quote} % |\pseudonym{|\emph{your usual pseudonym}|}| % \end{quote} % in \texttt{authorinfo.cfg}, and % \begin{quote} % |\pseudonym{|\emph{special pseudonym}|}| % \end{quote} % in the preamble of your document. % % Note that if you normally write under a pseudonym, but wish % to write a story under your real name, you will have to explicitly % add % \begin{quote} % |\pseudonym{|\emph{your real name}|}| % \end{quote} % in the preamble of your document. % % \subsection{The Title Page} % \DescribeMacro{\maketitle} % The first thing after |\begin{document}| should be |\maketitle|. % This will create a title page with the title of the story and the % name under which it will appear. % % Your name, address and phone number will appear in the % top left corner, and a word count in the upper right. See also % section \ref{Preamble}. % % \subsection{Text divisions} % % Documents, especially longer ones, e.g., novels, are frequently % divided up into parts. The following macros should help you do this. % % \DescribeMacro{\part} % |\part{|\emph{title}|}| % % |\part| is the largest division of a book. % % \DescribeMacro{\chapter} % |\chapter{|\emph{title}|}| % % The |\chapter| macro produces a new chapter, with the given % title. % % Chapter numbers are not reset at the end of a part, \emph{i.e.}, % if part I has three chapters, part II will begin with chapter 4. % If you want to reset chapter numbers at the beginning of each part % (\emph{i.e.}, if you want part II to begin with chapter 1), add the % following lines in your document's preamble: % \begin{verbatim} % \makeatletter % \@addtoreset{chapter}{part} % \makeatother % \end{verbatim} % % If your parts and chapters shouldn't be called ``Part'' and % ``Chapter,'' you can redefine these names, e.g.: % \begin{verbatim} % \renewcommand{\partname}{Book} % \renewcommand{\chaptername}{Fit} % \end{verbatim} % % Both |\part| and |\chapter| come in an alternate form: % |\part*| and |\chapter*|. In this alternate form, the heading % style is unchanged, but the words ``Part'' and ``Chapter'' do % not appear. You might use % \begin{quote} % |\chapter*{Introduction}| % \end{quote} % I cannot think of any use for |\part*|, but it's there if you % need it. % % \DescribeMacro{\section} % |\section{|\emph{title}|}| % % In many cases, a chapter will be divided into smaller, numbered % sections. The |\section| macro inserts a break with the number of the % division. % % The division number is set to 1 at the beginning of every chapter. % % \DescribeMacro{\separator} % |\separator| % % |\separator| inserts a blank line with three asterisks, centered. % % \subsection{Environments} % The following environments are defined in the |story| class. % % \DescribeEnv{spacing} % |\begin{spacing}{|\emph{spacefactor}|}|\ldots|\end{spacing}|. % % The |spacing| environment sets the line spacing factor. A % factor of 1 sets single-spacing, a factor of 2 sets double-spacing, % and so forth. % % \DescribeEnv{titlepage} % |\begin{titlepage}|\ldots|\end{titlepage}| % % If the |titlepage| option is specified, the title page will % be formatted within the |titlepage| environment. You should never % need to use this explicitly. This description is included only % for completeness. % % The following environments are taken directly from the |article| % class: % % \DescribeEnv{quote} % Use this for short quotations, or a sequence of short quotations % separated by blank lines. See \cite{LaTeXbook}. % % \DescribeEnv{quotation} % Use this for longer quotations. See \cite{LaTeXbook}. % % \DescribeEnv{verse} % Use this for verse. Lines can be broken using |\\|. % In a |story| document, you can also use the \verb*|\ | macro % at the beginning of a line to indent it. % % \subsection{Miscellaneous} % % \DescribeMacro{\setspacing} % |\setspacing{|\emph{spacingfactor}|}| % % This macro sets the line spacing factor to \emph{spacingfactor} % until the end of the enclosing scope. This is what the |spacing| % environment uses. % % \DescribeMacro{\textspacing} % This is the text-spacing factor. If you put % \begin{quote} % |\renewcommand{\textspacing}{|\emph{n}|}| % \end{quote} % in the preamble, the document will be \emph{n}-spaced. % % \DescribeMacro{ps@story} % |\pagestyle{story}| % % The |story| page style sets empty footers, and a running header % that looks like: % % \noindent\hbox{Your Name/Short Title\hfil{}Page \emph{nnn} of \emph{mmm}} % % See also the |\author| and |\title| macros in section \ref{Preamble}. % % \DescribeMacro{ps@authorinfo} % |\pagestyle{authorinfo}| % % The |authorinfo| page style is normally used only on the % title page. It lists your name, address and phone number, and the % word count of the story. % %\StopEventually{ % \begin{thebibliography}{9} % \bibitem{mwFAQ} % \texttt{misc.writing} \emph{Frequently-Asked Questions}, % posted monthly to \texttt{misc.writing}. % % \bibitem{LaTeXbook} L.~Lamport, % \emph{\LaTeX, A Document Preparation System}, 2nd ed., % 1994, Addison-Wesley. % % \bibitem{Companion} M.~Goosens, F.~Mittelbach, and A.~Samarin, % \emph{The \LaTeX{} Companion}, 1994, Addison-Wesley. % % \end{thebibliography} %} % % \section{The Code} %\iffalse % \begin{macrocode} %<*driver> \documentclass[openbib]{ltxdoc} %\OnlyDescription %\EnableCrossrefs %\CodelineIndex \RecordChanges \begin{document} \DocInput{story.dtx} % \PrintIndex \PrintChanges \end{document} % %<*class> \NeedsTeXFormat{LaTeX2e} \ProvidesClass{story} [1995/5/21 v.alpha LaTeX story class] %\fi % \subsection{Opening stuff} % A lot of this opening code comes directly from % \texttt{article.cls}. % \begin{macrocode} \newcommand{\@ptsize}{} \newif\if@titlepage \@titlepagefalse \newif\if@openbib \@openbibfalse % \end{macrocode} % % The |manuscript| conditional is true iff we are formatting an ugly % manuscript. % % \begin{macrocode} \newif\if@manuscript \@manuscriptfalse % \end{macrocode} % % The next few lines define the styles in which various % things should be written: story title, author's name, part title, % chapter title, section title % % \begin{macrocode} \newcommand{\title@style}{\Huge} \newcommand{\author@style}{\LARGE} \newcommand{\part@title@style}{\LARGE\bfseries} \newcommand{\chapter@title@style}{\Large\bfseries} \newcommand{\section@title@style}{\bfseries} % \end{macrocode} % % \begin{macro}{\textspacing} % This macro sets the default spacing for the main text. % \begin{macrocode} \newcommand{\textspacing}{1} % \end{macrocode} % \end{macro} % % \subsection{Options} % Most of these options come directly from the \texttt{article} % class. % % This first batch allows you to select one of several paper % sizes. % \begin{macrocode} \DeclareOption{a4paper} {\setlength\paperheight {297mm}% \setlength\paperwidth {210mm}} \DeclareOption{a5paper} {\setlength\paperheight {210mm}% \setlength\paperwidth {148mm}} \DeclareOption{b5paper} {\setlength\paperheight {250mm}% \setlength\paperwidth {176mm}} \DeclareOption{letterpaper} {\setlength\paperheight {11in}% \setlength\paperwidth {8.5in}} \DeclareOption{legalpaper} {\setlength\paperheight {14in}% \setlength\paperwidth {8.5in}} \DeclareOption{executivepaper} {\setlength\paperheight {10.5in}% \setlength\paperwidth {7.25in}} \DeclareOption{landscape} {\setlength\@tempdima {\paperheight}% \setlength\paperheight {\paperwidth}% \setlength\paperwidth {\@tempdima}} % \end{macrocode} % % Next, we have options to set the default font to 10, 11 or 12 points. % % \begin{macrocode} \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}} \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}} \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}} % \end{macrocode} % % The |draft| and |final| options determine whether or not overfull % lines get a black mark in the margin. % % \begin{macrocode} \DeclareOption{draft}{\setlength\overfullrule{5pt}} \DeclareOption{final}{\setlength\overfullrule{0pt}} % \end{macrocode} % % The |titlepage| and |notitlepage| options determine whether % or not a title page is generated. I believe it is customary to have % a title page for novels, but not for short stories. Thus, |notitlepage| % is the default, but the |novel| option turns it on. % \begin{macrocode} \DeclareOption{titlepage}{\@titlepagetrue} \DeclareOption{notitlepage}{\@titlepagefalse} \DeclareOption{openbib}{\@openbibtrue} \DeclareOption{novel}{\@titlepagetrue} % \end{macrocode} % % Here's the reason for which this class was written: the % |manuscript| option. See the \texttt{manuscript.clo} file for % the grisly details of what it does. In particular, it sets the % |manuscript| conditional to true. % % \begin{macrocode} \DeclareOption{manuscript}{\input{manuscript.clo}} % \end{macrocode} % % These options are just the defaults. % % \begin{macrocode} \ExecuteOptions{letterpaper,10pt} \ProcessOptions \input{size1\@ptsize.clo} % \end{macrocode} % % In particular, if we're in manuscript mode, then emphasized text % should be underlined, rather than italicized. The |ulem| package % takes care of this. % % It would be cleaner to put this in \texttt{manuscript.clo}, % but \LaTeX\ doesn't seem to like it. % % \begin{macrocode} \if@manuscript\RequirePackage{ulem}\fi % \pagenumbering{arabic} % \end{macrocode} % % \subsection{The Meat} % This is where it starts to get ugly. The % \texttt{misc.writing} FAQ\cite{mwFAQ} % says that the page should have one-inch margins on all sides. % This turns out not to be as easy as it sounds in \LaTeXe. % % This next bit of code does this. Basically, it sets % |textwidth| to the width of the paper, minus two inches, and % then zeroes out anything that might get in the way. % % The vertical part is similar, except that we have to % allow for the header. If you look at this code closely, you'll % notice that it doesn't allow you to have a footer. Ever. % % \begin{macrocode} % Horizontal (width) stuff. \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-2in} \setlength{\oddsidemargin}{\z@} \setlength{\evensidemargin}{\z@} \setlength{\marginparwidth}{1in} \addtolength{\marginparwidth}{-\marginparsep} \addtolength{\marginparwidth}{-2mm} % Vertical (height) stuff. \setlength{\topmargin}{\z@} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-2in} \addtolength{\textheight}{-\headheight} \addtolength{\textheight}{-\headsep} \setlength{\footskip}{\z@} % % \end{macrocode} % % This next batch of commands defines various things about % the author and the text. % % \begin{macro}{\author} % This works the same way as in the |article| class: it sets % |\@author| to the author's full name. If the optional argument % is given, then |\short@author| is set to the short name; otherwise % |\short@author| is set to the full name. % \begin{macrocode} \renewcommand{\author}[2][\relax]{% \gdef\@author{#2}% \ifx#1\relax\gdef\short@author{#2}\else\gdef\short@author{#1}\fi% } % \end{macrocode} % \end{macro} % % \begin{macro}{\title} % This macro sets |\@title| to the full title of the story. If the % optional short title is given, then |\short@title| is set to the % short title; otherwise, |\short@title| is set to the full title. % \begin{macrocode} \renewcommand{\title}[2][\relax]{% \gdef\@title{#2}% \ifx#1\relax\gdef\short@title{#2}\else\gdef\short@title{#1}\fi% } % \end{macrocode} %\end{macro} % % \begin{macro}{\pseudonym} % Sets |\@pseudonym| to the author's pseudonym. % \begin{macrocode} \newcommand{\pseudonym}[1]{\gdef\@pseudonym{#1}} % \end{macrocode} % \end{macro} % % \begin{macro}{\address} % Sets |\@address| to the author's address. Lines should be separated % using |\\|. % \begin{macrocode} \newcommand{\address}[1]{\gdef\@address{#1}} % \end{macrocode} % \end{macro} % % \begin{macro}{\phone} % Sets |\@phone| to the author's phone number. Lines should be separated % using |\\|. % \begin{macrocode} \newcommand{\phone}[1]{\gdef\@phone{#1}} % \end{macrocode} % \end{macro} % % \begin{macro}{\wordcount} % Sets |\@wordcount| to the word count. % \begin{macrocode} \newcommand{\wordcount}[1]{\gdef\@wordcount{#1}} % \end{macrocode} % \end{macro} % % \begin{macro}{\titlenotes} % Sets |\@titlenotes| to the argument. % This isn't really used. Normally, the title notes should go on the % title page somewhere. % \begin{macrocode} \newcommand{\titlenotes}[1]{\gdef\@titlenotes{\begin{quote}#1\end{quote}}} % \end{macrocode} % \end{macro} % % \begin{environment}{verse} % This is essentially the same |verse| environment as in the |article| % class, except that it's indented more, and defines the \verb*+\ + % command to indent individual lines. % \begin{macrocode} % \newenvironment{verse} {\begingroup \let\\=\@centercr \renewcommand{\ }{\hspace{-\itemindent}} \list{}{\itemsep \z@ \itemindent -1.5em% \listparindent\itemindent \rightmargin \leftmargin \advance\leftmargin 1.5in}% \item[]} {\endlist\endgroup} % \end{macrocode} % \end{environment} % % \begin{environment}{quotation} % \begin{macrocode} \newenvironment{quotation} {\list{}{\listparindent 1.5em% \itemindent \listparindent \rightmargin \leftmargin \parsep \z@ \@plus\p@}% \item[]} {\endlist} % \end{macrocode} % \end{environment} % % \begin{environment}{quote} % \begin{macrocode} \newenvironment{quote} {\list{}{\rightmargin\leftmargin}% \item[]} {\endlist} % % \end{macrocode} % \end{environment} % % Set up labels for |itemize| sections and such. % \begin{macrocode} \renewcommand{\theenumi}{\arabic{enumi}} \renewcommand{\theenumii}{\alph{enumii}} \renewcommand{\theenumiii}{\roman{enumiii}} \renewcommand{\theenumiv}{\Alph{enumiv}} \newcommand{\labelenumi}{\theenumi.} \newcommand{\labelenumii}{(\theenumii)} \newcommand{\labelenumiii}{\theenumiii.} \newcommand{\labelenumiv}{\theenumiv.} \renewcommand{\p@enumii}{\theenumi} \renewcommand{\p@enumiii}{\theenumi(\theenumii)} \renewcommand{\p@enumiv}{\p@enumiii\theenumiii} \newcommand{\labelitemi}{$\m@th\bullet$} \newcommand{\labelitemii}{\normalfont\bfseries --} \newcommand{\labelitemiii}{$\m@th\ast$} \newcommand{\labelitemiv}{$\m@th\cdot$} % \end{macrocode} % % \begin{environment}{titlepage} % The |titlepage| environment % \begin{itemize} % \item Ensures that you're working on a clean page. % \item Sets the header style to |authorinfo|, which gives your name, % address and phone number, as well as the word count. % \item Sets the page number to 1 (or 0, if you're in compatibility % mode). % \end{itemize} % \begin{macrocode} \newenvironment{titlepage}% {% \newpage \thispagestyle{authorinfo}% \if@compatibility \setcounter{page}{0} \else \setcounter{page}{1}% \fi}% {\newpage} % \end{macrocode} % \end{environment} % % \begin{macro}{\maketitle} % Create the title page. % \begin{macrocode} \newcommand{\maketitle}{% \begingroup \begin{spacing}{1} \def\and{,\ }% \setlength{\parindent}{\z@} \setlength{\parskip}{\z@} \addtolength{\textheight}{\headheight} \addtolength{\textheight}{\headsep} \setlength{\headheight}{\z@} \setlength{\headsep}{\z@} \ifx\@pseudonym\@undefined\let\@pseudonym\@author\fi \ifx\@wordcount\@undefined\gdef\thewordcount{} \else\gdef\thewordcount{Approx.~\@wordcount\ words}\fi \ifx\@titlenotes\@undefined\gdef\@titlenotes{}\fi \if@titlepage\begin{titlepage} \vspace*{\stretch{1}} \begin{center} {\title@style \@title}\\ by\\ {\author@style \@pseudonym} \end{center} \begin{quotation} \@titlenotes \end{quotation} \vspace*{\stretch{1}} \end{titlepage} \else% % No title page \newpage \thispagestyle{authorinfo} \setlength{\@tempdima}{\textheight} \divide\@tempdima by 3 \vspace*{\@tempdima} \begin{center} {\title@style \@title}\\[\bigskipamount] by\\[\bigskipamount] {\author@style \@pseudonym} \end{center} \begin{quotation} \@titlenotes \end{quotation} \vspace{2\baselineskip} \fi \end{spacing} \endgroup} % \end{macrocode} % \end{macro} % % \begin{macro}{maxpage} % This counter simply holds the number of the last page. It will be % written to the .aux file so that the page headers can say % "Page \textit{nnn} of \textit{mmm}". % \begin{macrocode} % maxpage counter \newcounter{maxpage}\setcounter{maxpage}{0} % \end{macrocode} % \end{macro} % % \subsection{Header styles} % \begin{macro}{\ps@story} % Story page style % % Header/footer style. All footers are empty. The header is of the % format % %\noindent% %\hbox to\textwidth{|\short@author|/|\short@title|\hfil %Page \emph{nnn} of |maxpage|} % \begin{macrocode} \newcommand{\ps@story}{% \renewcommand{\@oddhead}{% \short@author/\short@title\hfil{}Page \thepage\ of \themaxpage} \renewcommand{\@evenhead}{\@oddhead}% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}} % \end{macrocode} % \end{macro} % % Set the default page style to |story| % % \begin{macrocode} \pagestyle{story} % \end{macrocode} % % \begin{macro}{\ps@authorinfo} % Author info page style. % % This is normally used only on the title page. The footer is empty. % The header contains % % \begin{tabular}{lr} % |\@author| & |\thewordcount| \\ % |\@address|\\ % |\@phone| % \end{tabular} % \begin{macrocode} \newcommand{\ps@authorinfo}{% \renewcommand{\@oddhead}{% \begingroup \begin{spacing}{1} \begin{tabular}[t]{l} \@author\\ \@address\\[\medskipamount] \@phone \end{tabular} \end{spacing} \hfill\thewordcount \endgroup}% \renewcommand{\@evenhead}{\@oddhead}% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}} % \end{macrocode} % \end{macro} % % \subsection{Chapters and Such} % \subsubsection{Counters} % These are the counters for the various divisions of the % story. % \begin{macrocode} \setcounter{secnumdepth}{1} \newcounter{part} \newcounter{chapter} \newcounter{section}[chapter] % \end{macrocode} % These are the numbering styles for each division. % \begin{macrocode} \renewcommand{\thepart}{\Roman{part}} \renewcommand{\thechapter}{\arabic{chapter}} \renewcommand{\thesection}{\Roman{section}} % \end{macrocode} % These are the words that identify each of the divisions. They can % be redefined for different languages or whatever. % \begin{macrocode} \newcommand{\partname}{Part} \newcommand{\chaptername}{Chapter} % \end{macrocode} % And finally, here are the commands themselves. % % \begin{macro}{\part} % |\part@title@style| defines the style in which the words % ``Part N: Title'' will be typeset. % % The |\part| macro itself is defined using |\secdef|, which % will call either |\@part| or |\s@part|, depending on whether % the document contains |\part| or |\part*|. % % Both of these use |\part@head| to start a new page and % format the title. % % \begin{macrocode} \newcommand{\part}{\secdef\@part\s@part} % \end{macrocode} % \end{macro} % % \begin{macro}{\@part} % |\@part[|\emph{toc-entry}|]{|\emph{title}|}| % \begin{macrocode} \newcommand{\@part}[2][default]{% \refstepcounter{part} \typeout{Part \arabic{part}} \part@head{\partname\ \thepart% {\if#2\empty\relax\else: #2\fi}}} % \end{macrocode} % \end{macro} % % \begin{macro}{\s@part} % |\s@part{|\emph{title}|}| % \begin{macrocode} \newcommand{\s@part}[1]{% \typeout{#1} \part@head{#1}} % \end{macrocode} % \end{macro} % % \begin{macro}{\part@head} % |\part@head{|\emph{title}|}| % \begin{macrocode} \newcommand{\part@head}[1]{% \newpage\null \begin{spacing}{1} \vskip 6\baselineskip \noindent{\part@title@style#1} \vskip 2\baselineskip \end{spacing}} % \end{macrocode} % \end{macro} % % \begin{macro}{\chapter} % |\chapter@title@style| defines the style in which the words % ``Chapter N: Title'' will be typeset. % % The |\chapter| macro itself is defined using |\secdef|, which % will call either |\@chapter| or |\s@chapter|, depending on whether % the document contains |\chapter| or |\chapter*|. % % Both of these use |\chapter@head| to start a new page and % format the title. % \begin{macrocode} \newcommand{\chapter}{\secdef\@chapter\s@chapter} % \end{macrocode} % \end{macro} % % \begin{macro}{\@chapter} % |\@chapter[|\emph{toc-entry}|]{|\emph{title}|}| % \begin{macrocode} \newcommand{\@chapter}[2][default]{% \refstepcounter{chapter} \typeout{Chapter \thechapter} \chapter@head{\chaptername\ \thechapter% {\if#2\empty\relax\else: #2\fi}}} % \end{macrocode} % \end{macro} % % \begin{macro}{\s@chapter} % |\@chapter{|\emph{title}|}| % \begin{macrocode} \newcommand{\s@chapter}[1]{% \typeout{#1} \chapter@head{#1} } % \end{macrocode} % \end{macro} % % \begin{macro}{\chapter@head} % |\chapter@head{|\emph{title}|}| % \begin{macrocode} \newcommand{\chapter@head}[1]{% \newpage\null \begin{spacing}{1} \vskip 6\baselineskip \noindent{\chapter@title@style #1} \vskip 2\baselineskip \end{spacing}} % \end{macrocode} % \end{macro} % % \begin{macro}{\section} % \begin{macrocode} \newcommand{\section}{\@startsection% {section}% {1}% {\parindent}% {\bigskipamount}% {\medskipamount}% {\section@title@style}} % \end{macrocode} % \end{macro} % % \begin{macro}{\separator} % \begin{macrocode} \newcommand{\separator}{% \par \medskip \centerline{\hfil*\quad*\quad*\hfil} \medskip } % \end{macrocode} % \end{macro} % % \begin{macro}{\setspacing} % Redefines |\baselinestretch| to give the appropriate spacing. % \begin{macrocode} \newcommand{\setspacing}[1]{% \renewcommand{\baselinestretch}{#1} \@currsize} % \end{macrocode} % \end{macro} % % \begin{environment}{spacing} % This environment basically just provides a group in which % |\setspacing| operates. % \begin{macrocode} \newenvironment{spacing}[1]{% \begingroup \setspacing{#1} }{% \par\endgroup} % \end{macrocode} % \end{environment} % % Set the text spacing to whatever the default should be. % \begin{macrocode} \AtBeginDocument{ \ifx\text@spacing\@undefined \setspacing{\textspacing} \else \setspacing{\text@spacing} \fi} % \end{macrocode} % % \begin{macro}{\TheEnd} % |\TheEnd| is a macro that (by default) skips three lines and % writes the words ``The End.'' It is called at the end of the % document. % % If you don't like this, you can just % \begin{quote} % |\renewcommand{\TheEnd}{}| % \end{quote} % % |\theendname| generates the actual words ``The End''. You % can redefine this to ``FIN'' or ``Ende'' or ``Finis'' or whatever. % \begin{macrocode} \newcommand{\theendname}{The End} \newcommand{\TheEnd}{% \vskip0pt\vspace*{3\baselineskip} \centerline{\theendname}} % \end{macrocode} % \end{macro} % % At the |\end{document}|, write the total number of pages to % the .aux file. % % Also, write ``The End'' at the end of the document. % \begin{macrocode} \AtEndDocument{% \TheEnd \ifnum\value{maxpage}=\value{page}\relax\else \@latex@warning@no@line{Number of pages has changed. Rerun to get page count right}% \fi \if@filesw\immediate\write\@mainaux{% \string\setcounter{maxpage}{\thepage}}\fi} % \end{macrocode} % % If the file "authorinfo.cfg" can be found, include it. This % file should contain the default |\author|, |\pseudonym|, etc. % commands. % \begin{macrocode} \InputIfFileExists{authorinfo.cfg}{}{} % \end{macrocode} % %<*manuscript> % \begin{macrocode} \ProvidesFile{manuscript.clo}[1995/05/29] \@manuscripttrue \renewcommand{\familydefault}{cmtt} \renewcommand{\@ptsize}{2} \renewcommand{\title@style}{\normalfont\em} \renewcommand{\author@style}{\normalfont} \renewcommand{\part@title@style}{\em} \renewcommand{\chapter@title@style}{\em} \renewcommand{\section@title@style}{\normalfont} \newcommand{\text@spacing}{2} \raggedright \raggedbottom % \end{macrocode} % % \Finale % \endinput