arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/Nreport.cls	2010-04-02 17:27:48.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/sourcebook.cls	2010-04-02 17:37:29.000000000 +0200
@@ -1,16 +1,22 @@
-%%
-%% This is file `Nreport.cls',
+%% This is file `sourcebook.cls' by Patricia Monohon and is
+%% a modified version of Heath O'Connell's conference.cls;
+%% 2000-SEP-08 Created \Chapter \emptyheads \fancyheads and \blankpage
+%% 2000-MAR-29 Fixed EndDiscussion so that paragraphs are indented again
+%% 2000-MAR-16 Added Discussion definitions
+%% 2000-MAR-01 Removed chapters starting on RHS
+%% 2000-FEB-29 Made chapter titles smaller
+%% 2000-FEB-25 Changed bibiography to article style references
 %% generated with the docstrip utility.
-%%
+%% Created from the standard book.cls
 %% The original source files were:
 %%
-%% classes.dtx  (with options: `report')
+%% classes.dtx  (with options: `book')
+%%
 %%
 %% This is a generated file.
 %%
-%% Copyright 1993 1994 1995 1996 1997
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
+%% Copyright 1993 1994 1995 The LaTeX3 Project and any individual
+%% authors listed elsewhere in this file.
 %%
 %% For further copyright information, and conditions for modification
 %% and distribution, see the file legal.txt, and any other copyright
@@ -90,14 +96,15 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{report}
-              [1997/10/10 v1.3x
+\ProvidesClass{sourcebook}
+              [2001/05/08 v1.3q
  Standard LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
 \@titlepagetrue
 \newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
 \if@compatibility\else
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
@@ -121,6 +128,9 @@
    {\setlength\@tempdima   {\paperheight}%
     \setlength\paperheight {\paperwidth}%
     \setlength\paperwidth  {\@tempdima}}
+\DeclareOption{conferencepaper}
+   {\setlength\paperheight {200mm}%
+    \setlength\paperwidth  {100mm}}
 \fi
 \if@compatibility
   \renewcommand\@ptsize{0}
@@ -142,6 +152,7 @@
 \DeclareOption{notitlepage}{\@titlepagefalse}
 \fi
 \if@compatibility
+\@openrighttrue
 \else
 \DeclareOption{openright}{\@openrighttrue}
 \DeclareOption{openany}{\@openrightfalse}
@@ -162,39 +173,77 @@
       }%
    \renewcommand\newblock{\par}}%
 }
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final,openany}
+%\ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
+\ExecuteOptions{conferencepaper,10pt,twoside,onecolumn,final,openright}
 \ProcessOptions
-\input{size1\@ptsize.clo}
+\input{bk1\@ptsize.clo}
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
 \renewcommand\baselinestretch{}
 \setlength\parskip{0\p@ \@plus \p@}
+
+\def\chphdr#1{\textsl{#1}}
+
+%HOC added DISCUSSION definitions below
+\def\Discussion{
+\setlength{\parskip}{0.3cm}\setlength{\parindent}{0.0cm}
+\bigskip\bigskip{\Large \textbf{Discussion}} \bigskip}
+\def\speaker#1{{\textbf{#1:}}\ }
+\def\endDiscussion{\setlength\parskip{0\p@ \@plus \p@}\setlength{\parindent}{0.7cm}}
+%HOC end DISCUSSION
+%HOC EMPTYHEADS
+\def\emptyheads{
+\lhead{}\rhead{}
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0pt}
+\newpage}
+%HOC end EMPTYHEADS
+%HOC FANCYHEADS
+
+
+\def\fancyheads{
+\newpage
+\fancyhead[LE]{\chaptername\space\thechapter}
+\renewcommand{\headrulewidth}{0.25pt}
+\pagestyle{fancy}}
+
+%HOC end FANCYHEADS
+%HOC BLANKPAGE
+\def\blankpage{
+\newpage
+\mbox{ }
+\newpage}
+%HOC end BLANKPAGE
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
-\setcounter{topnumber}{2}
-\renewcommand\topfraction{.7}
-\setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{.3}
-\setcounter{totalnumber}{3}
-\renewcommand\textfraction{.2}
-\renewcommand\floatpagefraction{.5}
+\setcounter{topnumber}{3}
+\renewcommand\topfraction{.9}
+\setcounter{bottomnumber}{3}
+\renewcommand\bottomfraction{.9}
+\setcounter{totalnumber}{6}
+\renewcommand\textfraction{.1}
+\renewcommand\floatpagefraction{.85}
 \setcounter{dbltopnumber}{2}
-\renewcommand\dbltopfraction{.7}
-\renewcommand\dblfloatpagefraction{.5}
+\renewcommand\dbltopfraction{.9}
+\renewcommand\dblfloatpagefraction{.95}
 \if@twoside
   \def\ps@headings{%
-      \let\@oddfoot\@empty\let\@evenfoot\@empty
-      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+%HOC      \let\@oddfoot\@empty\let\@evenfoot\@empty
+      \def\@evenfoot{\thepage\hfil\slshape\leftmark}%
+      \def\@oddfoot{{\slshape\rightmark}\hfil\thepage}%
+      \def\@evenhead{\chaptername\space\thechapter\hfil\slshape\leftmark}%
+      \def\@oddhead{{\slshape\rightmark}\hfil\chaptername\space\thechapter}%
       \let\@mkboth\markboth
     \def\chaptermark##1{%
       \markboth {\MakeUppercase{%
         \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
             \@chapapp\ \thechapter. \ %
-        \di
+          \fi
+        \fi
         ##1}}{}}%
-    \ded\sectionmark##1{%
+    \def\sectionmark##1{%
       \markright {\MakeUppercase{%
         \ifnum \c@secnumdepth >\z@
           \thesection. \ %
@@ -202,20 +251,26 @@
         ##1}}}}
 \else
   \def\ps@headings{%
-    \let\@oddfoot\@empty
+%HOC    \let\@oddfoot\@empty
+    \def\@oddfoot{{\slshape\rightmark}\hfil\thepage}%
     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
     \let\@mkboth\markboth
     \def\chaptermark##1{%
       \markright {\MakeUppercase{%
         \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
             \@chapapp\ \thechapter. \ %
         \fi
+        \fi
         ##1}}}}
 \fi
 \def\ps@myheadings{%
-    \let\@oddfoot\@empty\let\@evenfoot\@empty
-    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+%    \let\@oddfoot\@empty\let\@evenfoot\@empty
+%%HOCbelow
+    \def\@evenfoot{\thepage\hfil\slshape\leftmark}%
+    \def\@oddfoot{{\slshape\rightmark}\hfil\thepage}%
+    \def\@evenhead{\chaptername\space\thechapter\hfil\slshape\leftmark}%
+    \def\@oddhead{{\slshape\rightmark}\hfil\chaptername\space\thechapter}%
     \let\@mkboth\@gobbletwo
     \let\chaptermark\@gobble
     \let\sectionmark\@gobble
@@ -257,12 +312,10 @@
 \newcommand\maketitle{\par
   \begingroup
     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
-
-\def\@makefnmark{\noindent\rlap{\@textsuperscript{\noindent\normalfont\@thefnmar
-k}}}%
+    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
     \long\def\@makefntext##1{\parindent 1em\noindent
             \hb@xt@1.8em{%
-                \hss\@textsuperscript{\noindent\normalfont\@thefnmark}}##1}%
+                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -319,18 +372,20 @@
 \newcounter {subparagraph}[paragraph]
 \renewcommand \thepart {\@Roman\c@part}
 \renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter.\@arabic\c@section}
+     \renewcommand\thesection      {\@arabic\c@section}
+     %\renewcommand\thesection      {\thechapter.\@arabic\c@section}
 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
-\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
+%HOC \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
+%HOC \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
 \newcommand\@chapapp{\chaptername}
-\newcommand\part{%
-  \if@openright
-    \cleardoublepage
-  \else
-    \clearpage
-  \fi
+\newcommand\frontmatter{\cleardoublepage
+            \@mainmatterfalse\pagenumbering{roman}}
+\newcommand\mainmatter{\cleardoublepage
+       \@mainmattertrue\pagenumbering{arabic}}
+\newcommand\backmatter{\if@openright\cleardoublepage\else\clearpage\fi
+      \@mainmatterfalse}
+\newcommand\part{\cleardoublepage
   \thispagestyle{plain}%
   \if@twocolumn
     \onecolumn
@@ -380,6 +435,7 @@
                     \@afterindentfalse
                     \secdef\@chapter\@schapter}
 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+                       \if@mainmatter
                          \refstepcounter{chapter}%
                          \typeout{\@chapapp\space\thechapter.}%
                          \addcontentsline{toc}{chapter}%
@@ -387,6 +443,9 @@
                     \else
                       \addcontentsline{toc}{chapter}{#1}%
                     \fi
+                    \else
+                      \addcontentsline{toc}{chapter}{#1}%
+                    \fi
                     \chaptermark{#1}%
                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
@@ -396,18 +455,24 @@
                       \@makechapterhead{#2}%
                       \@afterheading
                     \fi}
+
 \def\@makechapterhead#1{%
-  \vspace*{50\p@}%
+\refstepcounter{chapter}%
+  \vspace*{10\p@}%
   {\parindent \z@ \raggedright \normalfont
     \ifnum \c@secnumdepth >\m@ne
-        \huge\bfseries \@chapapp\space \thechapter
+      \if@mainmatter
+        \large\bfseries \@chapapp\space \thechapter
         \par\nobreak
         \vskip 20\p@
     \fi
+    \fi
     \interlinepenalty\@M
-    \Huge \bfseries #1\par\nobreak
-    \vskip 40\p@
+    \large \bfseries \chaptername\space\thechapter\space\space #1\par\nobreak
+    \vskip 20\p@
   }}
+
+
 \def\@schapter#1{\if@twocolumn
                    \@topnewpage[\@makeschapterhead{#1}]%
                  \else
@@ -422,7 +487,7 @@
     \Huge \bfseries  #1\par\nobreak
     \vskip 40\p@
   }}
-\newcommand\section{\@startsection {section}{1}{\z@}%
+\newcommand\section{\@startsection {section}{2}{\z@}%
                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
                                    {2.3ex \@plus.2ex}%
                                    {\normalfont\Large\bfseries}}
@@ -475,39 +540,16 @@
 \renewcommand\p@enumii{\theenumi}
 \renewcommand\p@enumiii{\theenumi(\theenumii)}
 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
-\newcommand\labelitemi{\textbullet}
-\newcommand\labelitemii{\normalfont\bfseries \textendash}
-\newcommand\labelitemiii{\textasteriskcentered}
-\newcommand\labelitemiv{\textperiodcentered}
+\newcommand\labelitemi{$\m@th\bullet$}
+\newcommand\labelitemii{\normalfont\bfseries --}
+\newcommand\labelitemiii{$\m@th\ast$}
+\newcommand\labelitemiv{$\m@th\cdot$}
 \newenvironment{description}
                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                         \let\makelabel\descriptionlabel}}
                {\endlist}
 \newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
-        \end{center}%
-        \quotation
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep      \z@
@@ -531,6 +573,7 @@
 \if@compatibility
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -544,6 +587,7 @@
 \else
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -572,11 +616,9 @@
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
 \@addtoreset {equation}{chapter}
-\renewcommand\theequation
-  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
+\renewcommand\theequation{\thechapter.\@arabic\c@equation}
 \newcounter{figure}[chapter]
-\renewcommand \thefigure
-     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
+\renewcommand\thefigure{\thechapter.\@arabic\c@figure}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
@@ -588,8 +630,7 @@
                {\@dblfloat{figure}}
                {\end@dblfloat}
 \newcounter{table}[chapter]
-\renewcommand \thetable
-     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
+\renewcommand\thetable{\thechapter.\@arabic\c@table}
 \def\fps@table{tbp}
 \def\ftype@table{2}
 \def\ext@table{lot}
@@ -606,9 +647,9 @@
 \setlength\belowcaptionskip{0\p@}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
+  \sbox\@tempboxa{{\small #1: #2}}%
   \ifdim \wd\@tempboxa >\hsize
-    #1: #2\par
+   {\small #1: #2}\par
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
@@ -626,6 +667,7 @@
 \newcommand\@pnumwidth{1.55em}
 \newcommand\@tocrmarg{2.55em}
 \newcommand\@dotsep{4.5}
+
 \setcounter{tocdepth}{2}
 \newcommand\tableofcontents{%
     \if@twocolumn
@@ -644,6 +686,7 @@
     \addpenalty{-\@highpenalty}%
     \addvspace{2.25em \@plus\p@}%
     \begingroup
+      \setlength\@tempdima{3em}%
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
@@ -694,7 +737,8 @@
     \fi
     \chapter*{\listtablename
       \@mkboth{%
-          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
+          \MakeUppercase\listtablename}
+          {\MakeUppercase\listtablename}}%
     \@starttoc{lot}%
     \if@restonecol\twocolumn\fi
     }
@@ -702,7 +746,8 @@
 \newdimen\bibindent
 \setlength\bibindent{1.5em}
 \newenvironment{thebibliography}[1]
-     {\chapter*{\bibname
+     %HOC{\chapter*{\bibname
+     {\section*{\bibname
         \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
@@ -712,10 +757,7 @@
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
-      \sloppy
-      \clubpenalty4000
-      \@clubpenalty \clubpenalty
-      \widowpenalty4000%
+      \sloppy\clubpenalty4000\widowpenalty4000%
       \sfcode`\.\@m}
      {\def\@noitemerr
        {\@latex@warning{Empty `thebibliography' environment}}%
@@ -753,6 +795,7 @@
 \newcommand\contentsname{Contents}
 \newcommand\listfigurename{List of Figures}
 \newcommand\listtablename{List of Tables}
+%HOC\newcommand\bibname{Bibliography}
 \newcommand\bibname{References}
 \newcommand\indexname{Index}
 \newcommand\figurename{Figure}
@@ -760,14 +803,14 @@
 \newcommand\partname{Part}
 \newcommand\chaptername{Chapter}
 \newcommand\appendixname{Appendix}
-\newcommand\abstractname{Abstract}
-\def\today{\ifcase\month\or
+\newcommand\today{}
+\edef\today{\ifcase\month\or
   January\or February\or March\or April\or May\or June\or
   July\or August\or September\or October\or November\or December\fi
   \space\number\day, \number\year}
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
-\pagestyle{plain}
+\pagestyle{headings}
 \pagenumbering{arabic}
 \if@twoside
 \else
@@ -782,7 +825,4 @@
 \fi
 \endinput
 %%
-%% End of file `report.cls'.
-
-
-
+%% End of file `sourcebook.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns