arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/My_style.cls	2010-04-01 12:54:51.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/notarticle.cls	2010-04-02 02:46:47.000000000 +0200
@@ -1,135 +1,177 @@
+%% notarticle.cls
+%% Created: [GJ] Thu Oct 10 21:17:53 EDT 1996
 %%
-%% This is file `appolb.cls',
-%% adapted from `article.cls' ver. 1997/10/10 v1.3x
+%% A slightly better version of article.
 %%
-%% with Copyright info:
+%%  - removed all the compatibility mode crap
+%%  - removed 10 and 11 pt support (who cares...)
+%%  - comes with a modified .clo file for better margins, etc.
+%%  - decreased some heading font sizes
+%%  - added real title page support!
 %%
-%% Copyright 1993 1994 1995 1996 1997
-%% 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
-%% notices in this file.
-%%
-%% This file defines the style for articles
-%% to be published in Acta Physica Polonica B.
-%% ----------------------------------------
-%%   This file is distributed in the hope that it will be useful,
-%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
-%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-%%
-%%   For error reports concerning UNCHANGED versions of this file
-%%   contact via e-mail to acta@jetta.if.uj.edu.pl.
 %%
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{appolb}
-              [1999/01/05 v1.01
- Acta Physica Polonica B]
+\ProvidesClass{notarticle}
+              [1996/05/26 v1.0a  A Better article document class]
+\newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
 \@titlepagefalse
-\@twosidetrue  \@mparswitchtrue
-\def\@date{0}
+
+% [GJ] Control of some title page info field displays.
+\newif\if@showkeywords
+\@showkeywordsfalse
+\newif\if@showsubjects
+\@showsubjectsfalse
+
 \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}}
+\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
+\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
+\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
 \DeclareOption{final}{\setlength\overfullrule{0pt}}
-%\DeclareOption{notitlepage}{\@titlepagefalse}
-%\DeclareOption{openbib}{%
-%  \AtEndOfPackage{%
-%   \renewcommand\@openbib@code{%
-%      \advance\leftmargin\bibindent
-%      \itemindent -\bibindent
-%      \listparindent \itemindent
-%      \parsep \z@
-%      }%
-%   \renewcommand\newblock{\par}}%
-%}
-\ExecuteOptions{a4paper,final}
-\ProcessOptions
-\input{size11.clo}
-\@ifl@t@r\fmtversion{1997/12/01}{}%
-  {%\@latex@warning@no@line{only release `\fmtversion' is available}%
-\def\@textsuperscript#1{%
-  {\m@th\ensuremath{^{\mbox{\fontsize\sf@size\z@#1}}}}}%
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{keywords}{\@showkeywordstrue}
+\DeclareOption{subjects}{\@showsubjectstrue}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}%
 }
-\textwidth=126mm
-\textheight=190mm
-    \setlength\@tempdima        {\paperwidth}
-    \addtolength\@tempdima      {-\textwidth}
-    \setlength\oddsidemargin    {.5\@tempdima}
-    \addtolength\oddsidemargin  {-1in}
-    \setlength\marginparwidth   {.5\@tempdima}
-    \addtolength\marginparwidth {-\marginparsep}
-    \addtolength\marginparwidth {-0.4in}
-  \@settopoint\oddsidemargin
-  \@settopoint\marginparwidth
-  \setlength\evensidemargin  {\paperwidth}
-  \addtolength\evensidemargin{-2in}
-  \addtolength\evensidemargin{-\textwidth}
-  \addtolength\evensidemargin{-\oddsidemargin}
-  \@settopoint\evensidemargin
-  \setlength\topmargin{\paperheight}
-  \addtolength\topmargin{-2in}
-  \addtolength\topmargin{-\headheight}
-  \addtolength\topmargin{-\headsep}
-  \addtolength\topmargin{-\textheight}
-  \addtolength\topmargin{-\footskip}     % this might be wrong!
-  \addtolength\topmargin{-.5\topmargin}
-  \@settopoint\topmargin
-%***************************************************************************
-\newif\ifRedakcja
-\Redakcjafalse
-
-\DeclareFontFamily{T1}{appb}{}
-\DeclareFontShape{T1}{appb}{m}{n}{<8>ecrm0800 <12>ecrm0700 <14.4>ecrm1440}{}
-\DeclareFontShape{T1}{appb}{bx}{n}{<24.88>ecbx1200 <29.86>ecbx1200 <35.83>ecbx1200}{}
-\DeclareFontFamily{OT1}{appb}{}
-\DeclareFontShape{OT1}{appb}{m}{n}{<8>cmr8 <12>cmr7 <14.4>cmr12}{}
-\DeclareFontShape{OT1}{appb}{bx}{n}{<24.88>cmbx12 <29.86>cmbx12 <35.83>cmbx12}{}
-\def\titlefont{\fontfamily{appb}\fontseries{bx}\fontshape{n}\fontsize{20.74pt}{30pt}\selectfont\ignorespaces}
-\def\appHuge{\fontfamily{appb}\fontseries{bx}\fontshape{n}\fontsize{24.88pt}{30pt}\selectfont\ignorespaces}
-\def\appHUge{\fontfamily{appb}\fontseries{bx}\fontshape{n}\fontsize{29.86pt}{36pt}\selectfont\ignorespaces}
-\def\appHUGe{\fontfamily{appb}\fontseries{bx}\fontshape{n}\fontsize{35.83pt}{42pt}\selectfont\ignorespaces}
-\def\appheadcs{\small\scshape}
-\def\appheadit{\small\itshape}
-\def\appauthcs{\normalsize\scshape}
-\def\appfont{\scriptsize\itshape}
+\ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final}
+\ProcessOptions

+\input{nasize1\@ptsize.clo}
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
-
-\renewcommand{\baselinestretch}{0.94}
-
-\parskip=0pt plus 1pt
+\renewcommand\baselinestretch{}
+\setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
 \setcounter{topnumber}{2}
-\renewcommand\topfraction{1}
+\renewcommand\topfraction{.7}
 \setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{1}
+\renewcommand\bottomfraction{.3}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{0}
-\renewcommand\floatpagefraction{1}
+\renewcommand\textfraction{.2}
+\renewcommand\floatpagefraction{.5}
 \setcounter{dbltopnumber}{2}
-\renewcommand\dbltopfraction{1}
-\renewcommand\dblfloatpagefraction{1}
+\renewcommand\dbltopfraction{.7}
+\renewcommand\dblfloatpagefraction{.5}
+
+
+% [GJ]
+% Major remodelling of the title page.
+% Multiple authors/addresses. Globbed linearly, so you
+% basically get what you type. Sigh. Now if LaTeX were
+% actually a text manipulation language, then we could do
+% some nifty stuff here...
+%
+% Added keywords and subjects fields. Turned on and off
+% with class options declared above.
+\def\@authoraddress{}
+\def\@docid{}
+\def\@keywords{}
+\def\@subjects{}
+\def\@authsep{,\hspace{0.6em}}
+%
+\renewcommand{\author}[2][]{%
+\expandafter\def\expandafter\@authoraddress\expandafter
+{\@authoraddress\vskip1.5pc
+{\relax\let\and\@authsep\ignorespaces#2\ifx\@empty#1\else\footnote{#1}\fi\par}}}
+%
+\newcommand{\address}[1]{
+\expandafter\def\expandafter\@authoraddress\expandafter
+{\@authoraddress\vskip5pt{\relax\small\textit{\ignorespaces#1}\par}}}
+%
+\newcommand{\email}[1]{
+\expandafter\def\expandafter\@authoraddress\expandafter
+{\@authoraddress\vskip0pt{\relax\small\texttt{\ignorespaces#1}\par}}}
+%
+\newcommand{\documentid}[1]{\expandafter\def\expandafter\@docid\expandafter
+{\@docid{\relax\small\ignorespaces#1\par}}}
+%
+\def\keywords#1{\if@showkeywords\noindent{\small Keywords: #1}\par\fi}
+\def\subjects#1{\if@showkeywords\noindent{\small Subjects: #1}\par\fi}
+%
+\def\revision#1{}
+%
+\let\date\documentid
+
+
+% [GJ]
+% Remodel the section headings. All we want to
+% do is stick in a period. You should not change \thesection, etc.,
+% for this because that gets used in other places, like references.
+% Also changed the space after the number.
+\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname.\hspace{0.5em}}
+
+
 \if@twoside
   \def\ps@headings{%
       \let\@oddfoot\@empty\let\@evenfoot\@empty
-    \def\@evenhead{{\small\thepage}\hfil\slshape\leftmark}%
-    \def\@oddhead{{\slshape\rightmark}\hfil{\small\thepage}}%
+      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
       \let\@mkboth\markboth
-        }
+    \def\sectionmark##1{%
+      \markboth {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\z@
+          \thesection\quad
+        \fi
+        ##1}}{}}%
+    \def\subsectionmark##1{%
+      \markright {%
+        \ifnum \c@secnumdepth >\@ne
+          \thesubsection\quad
+        \fi
+        ##1}}}
 \else
   \def\ps@headings{%
     \let\@oddfoot\@empty
@@ -142,60 +184,17 @@
         \fi
         ##1}}}}
 \fi
-\def\ps@titpage{%
-    \def\@oddfoot{\hfil\small(\thepage)\hfil}%
-  \let\@evenfoot\@oddfoot
-    \def\@oddhead{\ifRedakcja\titleheading\else\hfil\fi}%
-    \let\@evenhead\@oddhead
+
+\def\ps@myheadings{%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+  \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
     \let\@mkboth\@gobbletwo
     \let\sectionmark\@gobble
     \let\subsectionmark\@gobble
     }
-\def\ps@plain{%
-  \let\@oddfoot\@empty\let\@evenfoot\@empty
-  \def\@evenhead{{\small\thepage}\hfil}%
-  \def\@oddhead{\hfil{\small\thepage}}%
-}

-\newif\ifPreprint
-\Preprintfalse
-\def\prepNo{}
-\def\preprint#1{\Preprinttrue\gdef\prepNo{#1}}
-\newcount\volume \volume=0
-\let\pageno=\c@page
-\newcount\No     \No=0
-
-\def\titleheading{\small\rm Vol.~\thevolume\ (\theyear)
-  \hfil {\appfont ACTA PHYSICA POLONICA B} \hfil No \theNo}
-\def\thevolume{\ifnum\volume=0
-?\else \the\volume\fi}
-\def\theyear{\ifnum\year=0
-????\else\the\year\fi}
-\def\theNo{\ifnum\No=0
-?\else\the\No\fi}
-
-\def\runhead{\ifPreprint ~\else\jobname ~~ printed on \today\fi}
-\def\thetitle{\ifRedakcja Use $\backslash${\tt headtitle\{...\}}\else\runhead\fi}
-\def\headtitle#1{\gdef\thetitle{#1}}
-
-\def\and{\\\vskip6pt and\\\vskip6pt}
-\def\thenames{\ifRedakcja Use $\backslash${\tt headauthor\{...\}}\else\runhead\fi}
-\def\headauthor#1{\gdef\thenames{#1}}
-
-\def\Out@received{(Received \@date )}
-
-\let\WERS\MakeUppercase
-
-\def\title#1{\gdef\@title{#1}}
-\newskip\AdrSkip \AdrSkip=12pt plus 0pt minus 0pt
-%\newskip\RcvSkip \RcvSkip=12pt plus 0pt minus 0pt
-\newskip\TitSkip \TitSkip=52pt plus 0pt minus 0pt
-
-\def\address#1{\par\vskip\AdrSkip{\small\rm #1}}
-\def\received#1{\date{#1}}
-\def\PACS#1{\par\noindent\strut\kern18pt{\small\rm PACS numbers: #1}\par}
-
-\if@titlepage % not adapted
+\if@titlepage
   \newcommand\maketitle{\begin{titlepage}%
   \let\footnotesize\small
   \let\footnoterule\relax
@@ -207,9 +206,9 @@
     \vskip 3em%
     {\large
      \lineskip .75em%
-      \begin{tabular}[t]{c}%
-        \@author
-      \end{tabular}\par}%
+      \begin{center}
+        \@authoraddress
+      \end{center}}
       \vskip 1.5em%
     {\large \@date \par}%       % Set date in \large size.
   \end{center}\par
@@ -226,18 +225,15 @@
   \global\let\title\relax
   \global\let\author\relax
   \global\let\date\relax
-  \global\let\and\relax
-}
-\else % adapted
-%
-\newcommand\maketitle{%\par
+  \global\let\and\relax}
+\else
+  \newcommand\maketitle{\par
   \begingroup
-    \def\@fnsymbol##1{\ensuremath{\ifcase##1\or *\or **\or {\char42}{\char42}{\char42}\or \dagger\or \ddagger\or
-       \mathsection\or \mathparagraph\or \|\or \dagger\dagger
-       \or \ddagger\ddagger \else\@ctrerr\fi}}%
     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
-%    \def\@makefnmark{\@textsuperscript{\normalfont\large\@thefnmark}}%
-    \def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}%
+  \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+  \long\def\@makefntext##1{\parindent 1em\noindent
+          \hb@xt@1.8em{%
+              \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -249,8 +245,7 @@
       \global\@topnum\z@   % Prevents figures from going at top of page.
       \@maketitle
     \fi
-    \thispagestyle{titpage}%
-    \@thanks
+  \thispagestyle{plain}\@thanks
   \endgroup
   \setcounter{footnote}{0}%
   \global\let\thanks\relax
@@ -263,53 +258,57 @@
   \global\let\title\relax
   \global\let\author\relax
   \global\let\date\relax
-  \global\let\and\relax
-\markboth{\appheadcs\thenames\hfil}{\hfil\appheadit\thetitle}%
-}
-%
-\def\@maketitle{%
+  \global\let\and\relax}
+  \def\@maketitle{
   \newpage
-  \vbox{\vskip\TitSkip}%
-{\centering
+  \null
+  % [GJ]
+  % What a tangled web we weave... and all I wanna do
+  % is get the numbers up a little higher on the page.
+  \begin{minipage}[b]{\textwidth}
+	\vspace{-2cm}
+	\begin{flushright}
+	\@docid
+	\end{flushright}
+  \end{minipage}
+  % [GJ]
+  \vskip 4em%
+  \begin{center}%
   \let \footnote \thanks
-\mathversion{bold}%
-  {\let\\=\break
-%   \def\@fnsymbol##1{\ensuremath{\ifcase##1\or *\or **\or {\char42}{\char42}{\char42}\else\@ctrerr\fi}}%
-  \def\@makefnmark{\@textsuperscript{\normalfont\large\@thefnmark}}%
-  \titlefont\@title\par
-  \ifnum\value{footnote}<3\setcounter{footnote}{3}\fi
-  }%
-\mathversion{normal}%
-  \vskip\AdrSkip
-  {\appauthcs
-\@author
-\par}%
-\vskip\AdrSkip
-\par
-%
-\if0\@date\vskip12pt\relax\else{\small\itshape\Out@received}\fi
+    {\Large \@title \par}%
+    %{\scshape\large \@title \par}% [GJ] smallcaps... si o no?
+    \vskip 1em%
+    {\large
+      \lineskip .4em%
+      {\begin{center}
+        \@authoraddress
+      \end{center}}}
+    \vskip 0.6em%
+  \end{center}%
 \par
-}}
+  \vskip 0.2em}
 \fi

+
 \setcounter{secnumdepth}{3}
 \newcounter {part}
 \newcounter {section}
 \newcounter {subsection}[section]
 \newcounter {subsubsection}[subsection]
-%\newcounter {paragraph}[subsubsection]
-%\newcounter {subparagraph}[paragraph]
+\newcounter {paragraph}[subsubsection]
+\newcounter {subparagraph}[paragraph]
 \renewcommand \thepart {\@Roman\c@part}
 \renewcommand \thesection {\@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}
+\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
 \newcommand\part{\par
    \addvspace{4ex}%
    \@afterindentfalse
    \secdef\@part\@spart}

+
 \def\@part[#1]#2{%
     \ifnum \c@secnumdepth >\m@ne
       \refstepcounter{part}%
@@ -337,43 +336,45 @@
      \nobreak
      \vskip 3ex
      \@afterheading}
-
-%%%%%%%%%%%%%%%    SECTIONS
-% \section etc. defined in article.cls
-% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
-% \z@ = 0pt
-% if BEFORESKIP < 0 the no parindent for the first paragraph
 \newcommand\section{\@startsection {section}{1}{\z@}%
-                                   {3.5ex \@plus 1ex \@minus .2ex}%
-                                   {1.3ex \@plus.2ex}%
-                                   {\normalfont\normalsize\bfseries\mathversion{bold}\centering}}
+                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
+                                   {2.3ex \@plus.2ex}%
+                                   {\normalfont\large\bfseries}}
+% [GJ]
+% Changed fonts to italic in sub objects here.
 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
-                                     {3.25ex\@plus 1ex \@minus .2ex}%
-                                     {1ex \@plus .2ex}%
-                                     {\normalfont\normalsize\it\centering}}
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
+                                     {1.5ex \@plus .2ex}%
+                                     {\normalfont\large\itshape}}
 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
+                                     {1.5ex \@plus .2ex}%
+                                     {\normalfont\normalsize\itshape}}
+\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                      {3.25ex\@plus 1ex \@minus .2ex}%
-                                     {1ex \@plus .2ex}%
-                                     {\normalfont\footnotesize\bfseries\mathversion{bold}}}
-
-% \@seccntformat is LaTeX command
-\renewcommand\@seccntformat[1]{\csname the#1\endcsname .~}
+                                    {-1em}%
+                                    {\normalfont\normalsize\itshape}}
+\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+                                       {3.25ex \@plus1ex \@minus .2ex}%
+                                       {-1em}%
+                                      {\normalfont\normalsize\itshape}}

-%\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
-%                                    {3.25ex \@plus1ex \@minus.2ex}%
-%                                    {-1em}%
-%                                    {\normalfont\normalsize\bfseries}}
-%\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
-%                                       {3.25ex \@plus1ex \@minus .2ex}%
-%                                       {-1em}%
-%                                      {\normalfont\normalsize\bfseries}}
+\if@twocolumn
+  \setlength\leftmargini  {2em}
+\else
 \setlength\leftmargini  {2.5em}
+\fi
 \leftmargin  \leftmargini
 \setlength\leftmarginii  {2.2em}
 \setlength\leftmarginiii {1.87em}
 \setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv  {.5em}
+  \setlength\leftmarginvi {.5em}
+\else
 \setlength\leftmarginv  {1em}
 \setlength\leftmarginvi {1em}
+\fi
 \setlength  \labelsep  {.5em}
 \setlength  \labelwidth{\leftmargini}
 \addtolength\labelwidth{-\labelsep}
@@ -391,16 +392,17 @@
 \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
@@ -413,86 +415,17 @@
      {\par\vfil\null\endtitlepage}
 \else
   \newenvironment{abstract}{%
-                \topsep=0.5\AdrSkip
-                \list{}{\listparindent 1.5em
-                    \itemindent\listparindent
-                    \leftmargin\parindent
-                    \rightmargin\leftmargin
+      \if@twocolumn
+        \section*{\abstractname}%
+      \else
                 \small
-                }\item\relax}
-      {\endquotation}
+        \begin{center}%
+          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
+        \end{center}%
+        \quotation
+      \fi}
+      {\if@twocolumn\else\endquotation\fi}
 \fi
-
-%%%%%%%%%%%%%%%%  EQUATIONS
-
-\newif\ifeq@sec
-\eq@secfalse
-
-\def\eqsec{%
-\eq@sectrue
-\def\theequation{\thesection.\@arabic\c@equation}%
-\@addtoreset{equation}{section}%
-}
-
-\newlength{\eqcolsep}
-
-\def\inc@eqCount{\stepcounter{equation}}
-\def\dec@eqCount{\global\advance\c@equation\m@ne}
-%---> \eqnarray is LaTeX command
-%\def\equation{$$\refstepcounter{equation}}
-%\def\endequation{\eqno \hbox{\@eqnnum}$$\@ignoretrue}
-\renewenvironment{eqnarray}{%
-   \inc@eqCount
-   \def\@currentlabel{\p@equation\theequation}%
-   \global\@eqnswtrue
-   \m@th
-   \global\@eqcnt\z@
-   \tabskip\@centering
-   \let\\\@eqncr
-   $$\everycr{}\halign to\displaywidth\bgroup
-       \hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel
-      &\global\@eqcnt\@ne\hskip \eqcolsep \hfil${##}$\hfil
-      &\global\@eqcnt\tw@ \hskip \eqcolsep
-         $\displaystyle{##}$\hfil\tabskip\@centering
-      &\global\@eqcnt\thr@@ \hbox to \z@\bgroup\hss##\egroup
-         \tabskip\z@skip
-      \cr
-}
-{%
-      \@@eqncr
-      \egroup
-%      \global\advance\c@equation\m@ne
-      \dec@eqCount
-   $$\@ignoretrue
-}
-
-\def\@@eqncr{\let\reserved@a\relax
-    \ifcase\@eqcnt \def\reserved@a{& & &}\or \def\reserved@a{& &}%
-     \or \def\reserved@a{&}\else
-       \let\reserved@a\@empty
-       \@latex@error{Too many columns in eqnarray environment}\@ehc\fi
-     \reserved@a \if@eqnsw\@eqnnum\inc@eqCount\fi
-     \global\@eqnswtrue\global\@eqcnt\z@\cr}
-\let\@seqncr=\@eqncr
-%----------------------------------------------------------------
-\newcounter{eqlett}
-
-\newenvironment{eqletters}{%
-\inc@eqCount \setcounter{eqlett}{0}%
-\edef\@currentlabel{\theequation}%
-\let\@oeq\theequation
-\def\theequation{\@oeq\alph{eqlett}}%
-\def\inc@eqCount{\addtocounter{eqlett}{1}}%
-\def\dec@eqCount{\addtocounter{eqlett}{-1}}%
-\def\equation{$$\stepcounter{eqlett}%
-   \def\@currentlabel{\p@equation\theequation}%
-}\bgroup
-}
-{%
-\egroup%\ignorespaces
-\@ignoretrue
-}
-
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep      \z@
@@ -513,20 +446,7 @@
                {\list{}{\rightmargin\leftmargin}%
                 \item\relax}
                {\endlist}
-%\if@compatibility
-%\newenvironment{titlepage}
-%    {%
-%      \if@twocolumn
-%        \@restonecoltrue\onecolumn
-%      \else
-%        \@restonecolfalse\newpage
-%      \fi
-%      \thispagestyle{empty}%
-%      \setcounter{page}\z@
-%    }%
-%    {\if@restonecol\twocolumn \else \newpage \fi
-%    }
-%\else
+
 \newenvironment{titlepage}
     {%
       \if@twocolumn
@@ -542,45 +462,12 @@
         \setcounter{page}\@ne
      \fi
     }
-%\fi
+
 \newcommand\appendix{\par
   \setcounter{section}{0}%
   \setcounter{subsection}{0}%
-  \renewcommand\thesection{\@Alph\c@section}%
-\def\theequation{\thesection.\@arabic\c@equation}%
-\@addtoreset{equation}{section}%
-\renewcommand\@seccntformat[1]{\appendixname~\csname the##1\endcsname}%
-\let\org@section\section
-\def\section##1{%
-\org@section{}%
-\edef\x{##1}%
-\ifx\x\empty\relax\else
-\begin{center}\it
-##1\end{center}%
-\fi
-}}
-%
-
-%%%%%%%%%%%%%%%%%   FOOTNOTES
-\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or **\or \dagger\or \ddagger\or
-   \mathsection\or \mathparagraph\or \|\or \dagger\dagger
-   \or \ddagger\ddagger \else\@ctrerr\fi}}
-
-\def\footnoterule{\kern-3\p@
-%  \hrule width .4\columnwidth
-  \hrule width \columnwidth
-  \kern 2.6\p@}
-
-\long\def\@makefntext#1{%
-\hbox to \hsize{%
-\hbox to 18pt{\hss$\m@th^{\@thefnmark}$~}%
-\vtop{%\rightskip 18pt%
-\hangindent-18pt\hangafter0
-\everypar{\hangindent-18pt\hangafter0}
-#1}}}
-
-\setlength\arraycolsep{6\p@}
-\eqcolsep=\arraycolsep
+  \renewcommand\thesection{\@Alph\c@section}}
+\setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
 \setlength\doublerulesep{2\p@}
@@ -594,8 +481,7 @@
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
-%
-\def\fnum@figure{\figurename\thinspace\thefigure}
+\def\fnum@figure{\figurename~\thefigure}
 \newenvironment{figure}
                {\@float{figure}}
                {\end@float}
@@ -616,16 +502,16 @@
                {\end@dblfloat}
 \newlength\abovecaptionskip
 \newlength\belowcaptionskip
-\setlength\abovecaptionskip{4\p@}
+\setlength\abovecaptionskip{10\p@}
 \setlength\belowcaptionskip{0\p@}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{\small #1. #2}%
+  \sbox\@tempboxa{#1: #2}%
   \ifdim \wd\@tempboxa >\hsize
-    {\small #1. #2}
+    #1: #2\par
   \else
     \global \@minipagefalse
-    \hbox to .993\hsize{\hfil\box\@tempboxa\hfil}%
+    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
@@ -652,15 +538,12 @@
     \addpenalty\@secpenalty
     \addvspace{2.25em \@plus\p@}%
     \begingroup
+      \setlength\@tempdima{3em}%
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hbox to \@pnumwidth{\hss #2}}\par
+       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
        \nobreak
-%       \if@compatibility
-%         \global\@nobreaktrue
-%         \everypar{\global\@nobreakfalse\everypar{}}%
-%      \fi
     \endgroup
   \fi}
 \newcommand*\l@section[2]{%
@@ -674,13 +557,13 @@
       \leavevmode \bfseries
       \advance\leftskip\@tempdima
       \hskip -\leftskip
-      #1\nobreak\hfil \nobreak\hbox to \@pnumwidth{\hss #2}\par
+      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
     \endgroup
   \fi}
 \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
 \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
-%\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
-%\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
+\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
+\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
 \newcommand\listoffigures{%
     \section*{\listfigurename
       \@mkboth{\MakeUppercase\listfigurename}%
@@ -698,12 +581,8 @@
 \newdimen\bibindent
 \setlength\bibindent{1.5em}
 \newenvironment{thebibliography}[1]
-     {
-     \vskip24pt
-     \section*{\refname}%
-    \kern8pt
-      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
-    \small
+     {\section*{\refname
+        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
         \leftmargin\labelwidth
@@ -711,15 +590,9 @@
         \@openbib@code
         \usecounter{enumiv}%
         \let\p@enumiv\@empty
-        \renewcommand\theenumiv{\@arabic\c@enumiv}%
-            \parskip=0pt \parsep=0pt%
-        \small}%
-      \sloppy
-      \clubpenalty4000
-      \@clubpenalty \clubpenalty
-      \widowpenalty4000%
-      \sfcode`\.\@m
-    }
+            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy\clubpenalty4000\widowpenalty4000%
+      \sfcode`\.\@m}
   {\def\@noitemerr
     {\@latex@warning{Empty `thebibliography' environment}}%
   \endlist}
@@ -748,26 +621,28 @@
   \kern-3\p@
   \hrule\@width.4\columnwidth
   \kern2.6\p@}
+\newcommand\@makefntext[1]{%
+    \parindent 1em%
+    \noindent
+    \hb@xt@1.8em{\hss\@makefnmark}#1}
 \newcommand\contentsname{Contents}
 \newcommand\listfigurename{List of Figures}
 \newcommand\listtablename{List of Tables}
 \newcommand\refname{References}
 \newcommand\indexname{Index}
-\newcommand\figurename{Fig.}
+\newcommand\figurename{Figure}
 \newcommand\tablename{Table}
 \newcommand\partname{Part}
 \newcommand\appendixname{Appendix}
 \newcommand\abstractname{Abstract}
-\def\MoName#1{\ifcase#1\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
-}
-\def\today{\MoName{\month}%
   \space\number\day, \number\year}
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
-\pagestyle{headings}
-\markboth{\appheadcs\thenames\hfil}{\hfil\appheadit\thetitle}
+\pagestyle{plain}
 \pagenumbering{arabic}
 \if@twoside
 \else
@@ -781,75 +656,63 @@
   \onecolumn
 \fi

+% [GJ]
+% Here is extra math stuff that I like to have around.
+\RequirePackage{amsthm}
+\def\@swapped#1#2{#2%
+  \@ifnotempty{#1}{\@addpunct{.}\quad#1\unskip}}
+\def\th@plain{%
+%% Do not indent theorems. [GJ]
+%  \let\theoremindent\indent
+  \let\theoremindent\noindent
+  \theoremheadfont{\scshape}% heading font small caps
+  \theoremnotefont{\mdseries\upshape}%
+  \theorempreskipamount.5\baselineskip\@plus.2\baselineskip
+                                    \@minus.2\baselineskip
+  \theorempostskipamount\theorempreskipamount
+  \itshape
+}
+\def\th@definition{%
+%% Do not indent definitions. [GJ]
+%  \let\theoremindent\indent
+  \let\theoremindent\noindent
+  \theoremheadfont{\scshape}% heading font small caps
+  \theoremnotefont{\mdseries\upshape}%
+  \theorempreskipamount.5\baselineskip\@plus.2\baselineskip
+                                    \@minus.2\baselineskip
+  \theorempostskipamount\theorempreskipamount
+  \upshape
+}
+\def\th@remark{%
+%% Do not indent remarks. [GJ]
+%  \let\theoremindent\indent
+  \let\theoremindent\noindent
+  \theoremheadfont{\scshape}% heading font small caps
+  \theoremnotefont{\mdseries\upshape}%
+  \theorempreskipamount.5\baselineskip\@plus.2\baselineskip
+                                    \@minus.2\baselineskip
+  \theorempostskipamount\theorempreskipamount
+  \upshape
+}
+\renewenvironment{proof}[1][\proofname]{\par \normalfont
+%% Do not indent proofs. [GJ]
+%  \topsep6\p@\@plus6\p@ \trivlist \itemindent\normalparindent
+  \topsep-4\p@\@plus6\p@ \trivlist%
+  \item[\hskip\labelsep\scshape
+    #1\@addpunct{.}]\ignorespaces
+}{%
+  \qed\endtrivlist
+}
+\swapnumbers
+% theorem environments numbered consecutively through document
+\newtheorem{theorem}{Theorem}
+\newtheorem{corollary}[theorem]{Corollary}
+\newtheorem{lemma}[theorem]{Lemma}
+\theoremstyle{remark}
+\newtheorem*{remark}{Remark}
+\theoremstyle{definition}
+\newtheorem*{definition}{Definition}

-%%%%%%%%%%%%%%%%%%%%    USEFUL DEFINITIONS
-
-\def\comsp{\@ifnextchar ,\relax{\@ifnextchar\ \relax{\ \relax}}}
-\def\ie{{\it i.e.}\comsp}
-\def\eg{{\it e.g.}\comsp}
-\def\cf{{\it cf.}\comsp}
-\def\etal{{\it et al.}\comsp}
-
-%%%  for math mode:

-\def\half{{\textstyle{1\over 2}}}
-\def\Half{{1\over 2}}
-\DeclareMathSymbol{\e}{\mathalpha}{operators}{`e}
-\def\Tr{\mathop{\operator@font Tr}\nolimits}
-
-
-\def\seteqprefix#1{\renewcommand{\p@equation}{#1}}
-\def\reseteqprefix#1{\setcounter{equation}{0}\renewcommand{\p@equation}{#1}}
-
-
-\clubpenalty\@highpenalty
-\widowpenalty\@highpenalty
-
-\RequirePackage{latexsym}
-%\endinput
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-\def\eqalabel#1{\@bsphack
-  \protected@write\@auxout{}%
-         {\string\newlabel{#1}{{\p@equation\arabic{equation}}{\thepage}}}%
-\@esphack}
-
-\def\@eqlettcr{%
-\if@eqnsw\@eqncr\stepcounter{eqlett}\addtocounter{equation}{-1}\else%
-\@eqncr\fi%
-}
-
-\def\@@eqlettcr{\let\reserved@a\relax
-    \ifcase\@eqcnt \def\reserved@a{& & &}\or \def\reserved@a{& &}%
-     \or \def\reserved@a{&}\else
-       \let\reserved@a\@empty
-       \@latex@error{Too many columns in eqlettarray environment}\@ehc\fi
-     \reserved@a \if@eqnsw\@eqnnum\stepcounter{eqlett}\fi
-     \global\@eqnswtrue\global\@eqcnt\z@\cr}
-
-\newenvironment{eqlettarray}{%
-    \PackageWarning{appolb}{^^JThe environment "eqlettarray" is now obsolete.^^JUse new environment "eqletters" instead}
-    \typeout{-----  "eqletters" environment example  -----^^J\string\begin{eqletters}^^J\string\label{WholeSet}}
-    \typeout{\string\begin{eqnarray}^^J\string\label{eqnLabel}^^J...}
-    \typeout{\string\end{eqnarray}^^J\string\end{eqletters}}
-    \typeout{---------------------------------------------^^J}
-  \setcounter{eqlett}{1}
-    \def\theequation{\@arabic\c@equation\alph{eqlett}}%
-    \def\@@eqncr{\let\reserved@a\relax
-    \ifcase\@eqcnt \def\reserved@a{& & &}\or \def\reserved@a{& &}%
-     \or \def\reserved@a{&}\else
-       \let\reserved@a\@empty
-       \@latex@error{Too many columns in eqnarray environment}\@ehc\fi
-     \reserved@a \if@eqnsw\@eqnnum\stepcounter{eqlett}\fi
-     \global\@eqnswtrue\global\@eqcnt\z@\cr}
-     \eqnarray
-}
-{%
-\endeqnarray
-\ifnum\value{eqlett} >1\stepcounter{equation}\fi
-}

 \endinput
-%% End of file `appolb.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns