Author: richefeu
Date: 2008-12-16 14:50:57 +0100 (Tue, 16 Dec 2008)
New Revision: 1601
Added:
trunk/extra/mgpost/doc/refart.cls
Log:
a forgotten file in mgpost/doc
Added: trunk/extra/mgpost/doc/refart.cls
===================================================================
--- trunk/extra/mgpost/doc/refart.cls 2008-12-16 13:45:18 UTC (rev 1600)
+++ trunk/extra/mgpost/doc/refart.cls 2008-12-16 13:50:57 UTC (rev 1601)
@@ -0,0 +1,901 @@
+%%
+%% This is file `refart.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% refman.dtx (with options: `refart')
+%%
+%% Copyright (C) 1988-1994 by H. Partl.
+%% Copyright (C) 1994-1999 by Axel Kielhorn. All rights reserved.
+%% For additional copyright information see further down in this file.
+%%
+%% This file is to be used with the LaTeX2e system.
+%% ------------------------------------------------
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+%% \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{refart}
+ [2006/11/13 v2.0e
+ LaTeX document class]
+\newcomma...@ptsize{}
+\newif...@restonecol
+\newif...@titlepage
+...@titlepagefalse
+\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}}
+\newlength\papermarginwidth
+\setlength\papermarginwidth {1in}
+\DeclareOption{smallborder}
+ {\setlength\papermarginwidth {0.25in}}
+\DeclareOption{landscape}
+ {\setleng...@tempdima {\paperheight}%
+ \setlength\paperheight {\paperwidth}%
+ \setlength\paperwidth {...@tempdima}}
+\DeclareOption{square}
+ {\setlength\paperheight {\paperwidth}}
+\DeclareOption{dvips}{\AtBeginDocument{\AtBeginDvi{%
+ \special{papersize=\the\paperwidth,\the\paperheight}}}}
+
+\DeclareOption{pdftex}{\AtBeginDocument{%
+ \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight}}
+\newcommand{\...@ifpdfoutput}[2]{%
+ \begingro...@ifundefined{pdfoutput}{\endgroup #2}{\endgroup%
+ \ifnum\pdfoutput>0\relax #1\else #2\fi}}%
+...@ifundefined{ifpdfoutput}{%
+ \let\ifpdfoutput\...@ifpdfoutput}{%
+\PackageInfo{refart}
+ {\string\ifpdfoutput\space already defined.\MessageBreak
+ If \string\ifpdfoutput\space does not behave like\MessageBreak
+ is is described at the Refman manual, try find out\MessageBreak
+ at which package \string\ifpdfoutput\space was defined.}}
+\DeclareOption{pagesize}{\AtBeginDocument{%
+ \...@ifpdfoutput
+ {\pdfpagewidth=\paperwidth\pdfpageheight=\paperheight}
+ {\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}}}}
+\declareoption{10pt}{\renewcomma...@ptsize{0}}
+\declareoption{11pt}{\renewcomma...@ptsize{1}}
+\declareoption{12pt}{\renewcomma...@ptsize{2}}
+\declareoption{oneside...@twosidefalse \...@mparswitchfalse}
+\declareoption{twoside...@twosidetrue \...@mparswitchtrue}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\DeclareOption{titlepage} {...@titlepagetrue}
+\declareoption{notitlepage...@titlepagefalse}
+\declareoption{onecolumn...@twocolumnfalse}
+\DeclareOption{twocolumn}{%
+ \ClassError{Refart}
+ {There is no twocolumn layout in this class!}
+ {Can you imagine how twocolumn layout will look\MessageBreak
+ in this class? That's why!}
+ \...@twocolumnfalse}
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+ \AtEndOfClass{%
+ \renewcomma...@openbib@code{%
+ \advance\leftmargin\bibindent
+ \itemindent -\bibindent
+ \listparindent \itemindent
+ \parsep \z@
+ }%
+ \renewcommand\newblock{\par}}%
+}
+\newif\ifdescriptioncolon \descriptioncolontrue
+\newif\ifdescriptionleft \descriptionleftfalse
+\newif\ifmaxipagerule \maxipageruletrue
+\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
+\ProcessOptions
+\input{[email protected]}
+\setlength\lineskip{...@}
+\setlength\normallineskip{...@}
+\renewcommand\baselinestretch{}
+\setlength\parskip {0.5\baselineskip \...@plus 2...@}
+\setlength\parindent {...@}
+...@lowpenalty 51
+...@medpenalty 151
+...@highpenalty 301
+\setlength\headsep {\baselineskip}
+\newdimen\leftmarginwidth
+\newdimen\fullwidth
+\newdimen\emptyfoottopmargin
+\newdimen\emptyheadtopmargin
+\newcommand\settextfraction[1]%
+{
+ \setlength\fullwidth{\paperwidth}
+ \addtolength\fullwidth{-2\papermarginwidth}
+ \...@settopoint\fullwidth
+ \...@twocolumn
+ \setlength\textwidth{\fullwidth}
+ \else
+ \setlength\textwidth{#1\fullwidth}
+ \fi
+ \...@settopoint\textwidth
+ \setlength\leftmarginwidth{\fullwidth}
+ \addtolength\leftmarginwidth{-\textwidth}
+ \setlength\oddsidemargin {-1in}
+ \addtolength\oddsidemargin {\papermarginwidth}
+ \addtolength\oddsidemargin {\leftmarginwidth}
+ \...@settopoint\oddsidemargin
+ \setlength\evensidemargin {\oddsidemargin}
+ \setlength\marginparwidth {\leftmarginwidth
+ }
+ \addtolength\marginparwidth {-\marginparsep}
+ \setlength\marginparpush {...@}
+}
+...@onlypreamble\settextfraction
+\settextfraction {0.7}
+
+\setleng...@tempdima {\paperheight}
+\addtoleng...@tempdima{-2\papermarginwidth}
+\addtoleng...@tempdima{-.5in}
+\divi...@tempdima\baselineskip
+...@tempcnta=\@tempdima
+\setlength\textheigh...@tempcnta\baselineskip}
+\advance\textheight by \topskip
+\setlength\topmargin {\paperheight}
+\addtolength\topmargin{-\headheight}
+\addtolength\topmargin{-\headsep}
+\addtolength\topmargin{-\textheight}
+\addtolength\topmargin{-\footskip} % this might be wrong!
+\addtolength\topmargin{-.5\topmargin}
+\addtolength\topmargin{-1in}
+...@settopoint\topmargin
+\setlength\emptyfoottopmargin {\topmargin}
+\addtolength\emptyfoottopmargin{\baselineskip}
+\setlength\emptyheadtopmargin {\topmargin}
+\addtolength\emptyheadtopmargin{-\baselineskip}
+\setcounter{topnumber} {2}
+\renewcommand\topfraction {.7}
+\setcounter{bottomnumber} {1}
+\renewcommand\bottomfraction{.3}
+\setcounter{totalnumber} {3}
+\renewcommand\textfraction{.2}
+\renewcommand\floatpagefraction{.5}
+\setcounter{dbltopnumber} {2}
+\renewcommand\dbltopfraction{.7}
+\renewcommand\dblfloatpagefraction{.5}
+...@twoside
+ \def...@plain{%
+ \l...@mkboth\@gobbletwo
+ \l...@oddhead\@empty
+ \l...@evenhead\@empty
+ \d...@oddfoot{\normalfont\hfil\thepage}
+ \d...@evenfoot{\normalfont\thepage\hfil}}
+\else
+ \def...@plain{%
+ \l...@mkboth\@gobbletwo
+ \l...@oddhead\@empty
+ \l...@evenhead\@empty
+ \d...@oddfoot{\normalfont\hfil\thepage}
+ \l...@evenfoot\@oddfoot}
+\fi
+...@twoside
+ \def...@headings{%
+ \l...@oddfoot\@empty\l...@evenfoot\@empty
+ \d...@evenhead{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \...@xt@\fullwidth{\thepage\hfil\slshape\leftmark}
+ \vskip 3\p@ \hrule}}%
+ \d...@oddhead{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}
+ \vskip 3\p@ \hrule}}%
+ \l...@mkboth\markboth
+ \topmargin\emptyfoottopmargin
+ \def\sectionmark##1{%
+ \markboth {\ifnum \...@secnumdepth >\z@
+ \thesection\quad\fi
+ ##1}{}}%
+ \def\subsectionmark##1{%
+ \markright {\ifnum \...@secnumdepth >\...@ne
+ \thesubsection\quad\fi
+ ##1}}}
+\else
+ \def...@headings{%
+ \l...@oddfoot\@empty
+ \d...@oddhead{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}
+ \vskip 3\p@ \hrule}}%
+ \l...@mkboth\markboth
+ \topmargin\emptyfoottopmargin
+ \def\sectionmark##1{%
+ \markright {\ifnum \...@secnumdepth >\...@ne
+ \thesection\quad\fi
+ ##1}}}
+\fi
+
+...@twoside
+ \def...@footings{%
+ \l...@oddhead\@empty\l...@evenhead\@empty
+ \d...@evenfoot{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \hrule \vskip 3\p@
+ \...@xt@\fullwidth{\thepage\hfil\slshape\leftmark}}}%
+ \d...@oddfoot{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \hrule \vskip 3\p@
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}}}%
+ \l...@mkboth\markboth
+ \topmargin\emptyheadtopmargin
+ \def\sectionmark##1{%
+ \markboth {\ifnum \...@secnumdepth >\z@
+ \thesection\quad\fi
+ ##1}{}}%
+ \def\subsectionmark##1{%
+ \markright {\ifnum \...@secnumdepth >\...@ne
+ \thesubsection\quad\fi
+ ##1}}}
+\else
+ \def...@footings{%
+ \l...@oddhead\@empty
+ \d...@oddfoot{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \hrule \vskip 3\p@
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}}}%
+ \l...@mkboth\markboth
+ \topmargin\emptyheadtopmargin
+ \def\sectionmark##1{%
+ \markright {\ifnum \...@secnumdepth >\...@ne
+ \thesection\quad\fi
+ ##1}}}
+\fi
+\def...@myheadings{%
+ \l...@oddfoot\@empty\l...@evenfoot\@empty
+ \d...@evenhead{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \...@xt@\fullwidth{\thepage\hfil\slshape\leftmark}
+ \vskip 3\p@ \hrule}}%
+ \d...@oddhead{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}
+ \vskip 3\p@ \hrule}}%
+ \l...@mkboth\@gobbletwo
+ \let\sectionma...@gobble
+ \let\subsectionma...@gobble
+ \topmargin\emptyfoottopmargin
+ }
+\def...@myfootings{%
+ \l...@oddhead\@empty\l...@evenhead\@empty
+ \d...@evenfoot{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \hrule \vskip 3\p@
+ \...@xt@\fullwidth{\thepage\hfil\slshape\leftmark}}}%
+ \d...@oddfoot{\hss\vbox to \...@{\vss\hsize=\fullwidth
+ \hrule \vskip 3\p@
+ \...@xt@\fullwidth{{\slshape\rightmark}\hfil\thepage}}}%
+ \l...@mkboth\@gobbletwo
+ \let\sectionma...@gobble
+ \let\subsectionma...@gobble
+ \topmargin\emptyheadtopmargin
+ }
+...@titlepage
+ \newcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\footnoterule\relax
+ \let\footnote\thanks
+ \renewcommand\thefootnot...@fnsymbol\c@footnote}%
+ \d...@makefnmark%
+ {\rla...@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\d...@makefntext##1{%
+ \...@setpar{\@@par
+ \...@tempdima = \hsize
+ \advan...@tempdima -1em
+ \parshape \...@ne 1em \...@tempdima}%
+ \par\parindent 1em \noindent
+ \...@xt@\...@{\hss\@textsuperscript{\normalfo...@thefnmark}\,}##1}
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \...@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \...@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \...@date \par}% % Set date in \large size.
+ \end{center}\par
+ \...@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\l...@thanks\@empty
+ \global\l...@author\@empty
+ \global\l...@date\@empty
+ \global\l...@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\else
+ \newcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnot...@fnsymbol\c@footnote}%
+ \d...@makefnmark%
+ {\rla...@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\d...@makefntext##1{%
+ \...@setpar{\@@par
+ \...@tempdima = \hsize
+ \advan...@tempdima -1em
+ \parshape \...@ne 1em \...@tempdima}%
+ \par\parindent 1em \noindent
+ \...@xt@\...@{\hss\@textsuperscript{\normalfo...@thefnmark}\,}##1}
+ \...@twocolumn
+ \ifnum \...@number=\@ne
+ \...@maketitle
+ \else
+ \twocolum...@maketitle]%
+ \fi
+ \else
+ \newpage
+ \glob...@topnum\z@ % Prevents figures from going at top of page.
+ \...@maketitle
+ \fi
+ \thispagestyle{empt...@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\l...@maketitle\relax
+ \global\l...@thanks\@empty
+ \global\l...@author\@empty
+ \global\l...@date\@empty
+ \global\l...@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+ \d...@maketitle{%
+ \newpage
+ \null
+ \longthickrule\vskip1.5em%
+ \let \footnote \thanks
+ {\secshape \parskip\z@ \parindent\z@
+ \Large\bfseries \...@title \par}%
+ \vskip1.5em\longthickrule\vskip1.5em%
+ {\normalsize
+ \lineskip .5em%
+ \begin{flushright}%
+ {\slsha...@author\par}
+ \vskip 1em%
+ {...@date}%
+ \end{flushright}\par}%
+ \vskip 1.5em}
+\fi
+\setcounter{secnumdepth}{3}
+\newcounter {part}
+\newcounter {section}
+\newcounter {subsection}[section]
+\newcounter {subsubsection}[subsection]
+\newcounter {paragraph}[subsubsection]
+\newcounter {subparagraph}[paragraph]
+\renewcommand\thepart {...@roman\c@part}
+\renewcommand\thesection {...@arabic\c@section}
+\renewcommand\thesubsection {\thesectio...@arabic\c@subsection}
+\renewcommand\thesubsubsection {\thesubsection ....@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsectio...@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagrap...@arabic\c@subparagraph}
+\newcommand\part{%
+ \...@noskipsec \leavevmode \fi
+ \par
+ \addvspace{4ex}%
+ \...@afterindentfalse
+ \secd...@part\@spart}
+
+\d...@part[#1]#2{%
+ \ifnum \...@secnumdepth >\...@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ \longrule\medskip
+ {\parindent \z@ \raggedright
+ \interlinepenalty \...@m
+ \normalfont
+ \Large
+ \ifnum \...@secnumdepth >\...@ne
+ \thepart.\quad
+ \fi
+ #2\par \medskip
+ \longrule\bigskip%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \...@afterheading}
+\d...@spart#1{%
+ \longrule\medskip
+ {\parindent \z@ \raggedright
+ \interlinepenalty \...@m
+ \normalfont
+ \Large #1\par}%
+ \medskip\longrule
+ \nobreak
+ \vskip 3ex
+ \...@afterheading}
+\newcommand\secshape{\leftskip=-\leftmarginwidth%
+ \rightski...@flushglue%
+ \hyphenpenalty=2000}
+\newcommand\sectio...@startsection {section}{1}...@}%
+ {-2ex \...@plus -1ex \...@minus -.2ex}%
+ {0.5ex \...@plus .2ex}%
+ {\secshape\normalfont\large\bfseries}}
+\newcommand\subsectio...@startsection{subsection}{2}{\z@}%
+ {-1.5...@plus -.5ex \...@minus -.2ex}%
+ {0.5ex \...@plus .2ex}%
+
{\secshape\normalfont\normalsize\bfseries}}
+\newcommand\subsubsectio...@startsection{subsubsection}{3}{\z@}%
+ {-1.5...@plus -.5ex \...@minus -.2ex}%
+ {0.5ex \...@plus .2ex}%
+
{\secshape\normalfont\normalsize\mdseries}}
+\newcommand\paragrap...@startsection{paragraph}{4}{\z@}%
+ {2...@plus 1ex \...@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries}}
+\newcommand\subparagrap...@startsection{subparagraph}{5}{\parindent}%
+ {2ex \...@plus 1ex \...@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries}}
+...@twocolumn
+ \setlength\leftmargini {2em}
+\else
+ \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv {1.7em}
+...@twocolumn
+ \setlength\leftmarginv {.5em}
+ \setlength\leftmarginvi {.5em}
+\else
+ \setlength\leftmarginv {1em}
+ \setlength\leftmarginvi {1em}
+\fi
+\setlength\leftmargin {\leftmargini}
+\setlength \labelsep {.5em}
+\setlength \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+...@beginparpenalty -...@lowpenalty
+...@endparpenalty -...@lowpenalty
+...@itempenalty -...@lowpenalty
+\d...@listi{\leftmargin\leftmargini
+ \parsep \parskip
+ \topsep \z@
+ \itemse...@}
+\l...@listi\@listI
+...@listi
+\d...@listii {\leftmargin\leftmarginii
+ \labelwidth\leftmarginii
+ \advance\labelwidth-\labelsep
+ \topsep \z@
+ \parsep \parskip
+ \itemsep \...@}
+\d...@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii
+ \advance\labelwidth-\labelsep
+ \topsep \z@
+ \parsep \parskip
+ \partopsep \z@
+ \itemsep \topsep}
+\d...@listiv {\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv
+ \advance\labelwidth-\labelsep}
+\d...@listv {\leftmargin\leftmarginv
+ \labelwidth\leftmarginv
+ \advance\labelwidth-\labelsep}
+\d...@listvi {\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi
+ \advance\labelwidth-\labelsep}
+\renewcommand\theenumi {...@arabic\c@enumi}
+\renewcommand\theenumii {...@alph\c@enumii}
+\renewcommand\theenumii...@roman\c@enumiii}
+\renewcommand\theenumiv {...@alph\c@enumiv}
+\newcommand\labelenumi {\theenumi.}
+\newcommand\labelenumii {(\theenumii)}
+\newcommand\labelenumiii{\theenumiii.}
+\newcommand\labelenumiv {\theenumiv.}
+\renewcomman...@enumii {\theenumi}
+\renewcomman...@enumiii {\theenumi(\theenumii)}
+\renewcomman...@enumiv {...@enumiii\theenumiii}
+\newcommand\labelitemi {\textbullet}
+\newcommand\labelitemii {\normalfont\bfseries \textendash}
+\newcommand\labelitemiii{\textasteriskcentered}
+\newcommand\labelitemiv {\textperiodcentered}
+\newenvironment{description}
+ {\list{}{%
+ \labelsep\marginparsep
+ \labelwidth\leftmarginwidth
+ \advance\labelwidth by \leftmargin
+ \advance\labelwidth by -\labelsep
+ \let\makelabel\descriptionlabel}}
+ {\endlist}
+\newcommand*\descriptionlabel[1]{%
+ \ifdescriptionleft\else \hfil\fi
+ \normalfont #1 \ifdescriptioncolon :\fi
+ \ifdescriptionleft \hfil \fi}
+...@titlepage
+ \newenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \...@beginparpenalty\@lowpenalty
+ \begin{center}
+ \bfseries \abstractname
+ \...@endparpenalty\@M
+ \end{center}}
+ {\par\vfil\null\endtitlepage}
+\else
+ \newenvironment{abstract}{%
+ \...@twocolumn
+ \section*{\abstractname}%
+ \else
+ \small
+ \begin{center}%
+ {\bfseries \abstractname\vspace{-.5em}\vspace...@}}%
+ \end{center}%
+ \quote
+ \fi}
+ {...@twocolumn\else\endquote\fi}
+\fi
+\newenvironment{verse}
+ {\let\...@centercr
+ \list{}{\itemsep \z@
+ \itemindent -1.5em%
+ \listparindent\itemindent
+ \rightmargin \leftmargin
+ \advance\leftmargin 1.5em}%
+ \item\relax}
+ {\endlist}
+\newenvironment{quotation}
+ {\list{}{\listparindent 1.5em%
+ \itemindent \listparindent
+ \rightmargin \leftmargin
+ \parsep \z@ \...@plus\p@}%
+ \item\relax}
+ {\endlist}
+\newenvironment{quote}
+ {\list{}{\rightmargin\leftmargin}%
+ \item\relax}
+ {\endlist}
+\newenvironment{example}
+ {...@beginparpenalty=\@highpenalty
+ \let\...@centercr
+ \list{}{\itemsep \z@
+ \itemindent -1.5em%
+ \listparindent\itemindent
+ \rightmargin \leftmargin
+ \advance\leftmargin 1.5em}%
+ \ttfamily
+ \item\relax}
+ {\endlist}
+\newenvironment{titlepage}
+ {...@twocolumn
+ \...@restonecoltrue\onecolumn
+ \else
+ \...@restonecolfalse\newpage
+ \fi
+ \thispagestyle{empty}%
+ \setcounter{pag...@ne
+ }
+ {...@restonecol\twocolumn \else \newpage \fi
+ \...@twoside\else
+ \setcounter{pag...@ne
+ \fi
+ }
+\newcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesectio...@alph\c@section}}
+\setlength\arraycolsep {...@}
+\setlength\tabcolsep {...@}
+\setlength\arrayrulewidth{....@}
+\setlength\doublerulesep {...@}
+\setlength\tabbingsep {\labelsep}
+\sk...@mpfootins = \skip\footins
+\setlength\fboxsep {...@}
+\setlength\fboxrule{....@}
+\renewcommand\theequatio...@arabic\c@equation}
+\newcounter{figure}
+\renewcommand \thefigure {...@arabic\c@figure}
+\def\...@figure{tbp}
+\def\ft...@figure{1}
+\def\...@figure{lof}
+\def\f...@figure{\figurename~\thefigure}
+\newenvironment{figure}
+ {...@float{figure}}
+ {\...@float}
+\newenvironment{figure*}
+ {...@dblfloat{figure}}
+ {\...@dblfloat}
+\newcounter{table}
+\renewcommand\thetabl...@arabic\c@table}
+\def\...@table{tbp}
+\def\ft...@table{2}
+\def\...@table{lot}
+\def\f...@table{\tablename~\thetable}
+\newenvironment{table}
+ {...@float{table}}
+ {\...@float}
+\newenvironment{table*}
+ {...@dblfloat{table}}
+ {\...@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{1...@}
+\setlength\belowcaptionskip{...@}
+\long\d...@makecaption#1#2{%
+ \vskip\abovecaptionskip
+ \sb...@tempboxa{#1: #2}%
+ \ifdim \...@tempboxa >\hsize
+ #1: #2\par
+ \else
+ \global \...@minipagefalse
+ \...@xt@\hsize{\hfil\b...@tempboxa\hfil}%
+ \fi
+ \vskip\belowcaptionskip}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\declareoldfontcommand{\sl}{\normalfont\slshape...@nomath\sl}
+\declareoldfontcommand{\sc}{\normalfont\scshape...@nomath\sc}
+\declarerobustcommand*{\cal...@fontswitch\relax\mathcal}
+\declarerobustcommand*{\mit...@fontswitch\relax\mathnormal}
+\newcomma...@pnumwidth{1.55em}
+\newcomma...@tocrmarg {2.55em}
+\newcomma...@dotsep {4.5}
+\setcounter{tocdepth}{3}
+\newcommand\tableofcontents{%
+ \section*{\contentsname
+ \...@mkboth{\contentsname}{\contentsname}}%
+ \...@starttoc{toc}%
+ \...@restonecol\twocolumn\fi
+ }
+\newcommand...@part[2]{%
+ \ifnum \...@tocdepth >-2\relax
+ \addpenal...@secpenalty
+ \addvspace{2.25em \...@plus\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \...@pnumwidth
+ \parfillskip -...@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hbox t...@pnumwidth{\hss #2}}\par
+ \nobreak
+ \glob...@nobreaktrue
+ \everypar{\glob...@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\newcommand...@section[2]{%
+ \ifnum \...@tocdepth >\z@
+ \addpenal...@secpenalty
+ \addvspace{1.0em \...@plus\p@}%
+ \setleng...@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \rightskip \...@pnumwidth
+ \parfillskip -...@pnumwidth
+ \leavevmode \bfseries
+ \advance\leftsk...@tempdima
+ \hskip -\leftskip
+ #1\nobreak\hfil \nobreak...@xt@\...@pnumwidth{\hss #2}\par
+ \endgroup
+ \fi}
+\newcommand...@subsection {...@dottedtocline{2}{1.5em}{2.3em}}
+\newcommand...@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
+\newcommand...@paragraph {...@dottedtocline{4}{7.0em}{4.1em}}
+\newcommand...@subparagraph {...@dottedtocline{5}{10em}{5em}}
+\newcommand\listoffigures{%
+ \section*{\listfigurename
+ \...@mkboth{\listfigurename}%
+ {\listfigurename}}%
+ \...@starttoc{lof}%
+ }
+\newcommand...@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand\listoftables{%
+ \section*{\listtablename
+ \...@mkboth{\listtablename}{\listtablename}}%
+ \...@starttoc{lot}%
+ }
+\le...@table\l@figure
+\newdimen\bibindent
+\bibindent=1.5em
+\newenvironment{thebibliography}[1]
+ {\section*{\refname
+ \...@mkboth{\refname}{\refname}}%
+ \lis...@biblabel{\@arabi...@enumiv}}%
+ {\settowidth\labelwidt...@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \...@openbib@code
+ \usecounter{enumiv}%
+ \le...@enumiv\@empty
+ \renewcommand\theenumi...@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \...@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\...@m}
+ {\d...@noitemerr
+ {...@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\newcommand\newblock{\hskip [email protected]\@minus.07em}
+\l...@openbib@co...@empty
+\newenvironment{theindex}
+ {...@twocolumn
+ \...@restonecolfalse
+ \else
+ \...@restonecoltrue
+ \fi
+ \begin{fullpage}
+ \let\twocolumn\...@twocolumn
+ \columnseprule \z@
+ \columnsep 35\p@
+ \twocolumn[\section*{\indexname}]%
+ \...@mkboth{\indexname}%
+ {\indexname}%
+ \parindent\z@
+ \parskip\z@ \...@plus ....@\relax
+ \let\it...@idxitem}
+ {\end{fullpage}...@restonecol\onecolumn\else\clearpage\fi}
+\newcomma...@idxitem {\par\hangindent 4...@}
+\newcommand\subitem {...@idxitem \hspace*{2...@}}
+\newcommand\subsubite...@idxitem \hspace*{3...@}}
+\newcommand\indexspace{\par \vskip 10\p@ \...@plus5\p@ \...@minus3\p@\relax}
+\renewcommand\footnoterule{%
+ \kern-3\p@
+ \[email protected]\columnwidth
+ \kern 2....@}
+\long\d...@makefntext#1{%
+ \...@setpar{\@@par
+ \...@tempdima = \hsize
+ \advan...@tempdima -1em
+ \parshape \...@ne 1em \...@tempdima}%
+ \par\parindent 1em \noindent
+ \...@xt@\...@{\hss\@textsuperscript{\normalfo...@thefnmark}\,}#1}
+\d...@addmarginpar{\@ne...@marbox\@currlis...@cons\@freeli...@marbox
+ \...@cons\@freeli...@currbox}\@latexb...@tempcnta\@ne
+ \...@twocolumn
+ \...@firstcolumn \...@tempcnta\m@ne \fi
+ \else
+ \...@tempcnta\m@ne
+ \fi
+ \ifn...@tempcnta <\z@ \global\setb...@marbox\box\@currbox \fi
+ \...@tempdima\@mparbottom
+ \advan...@tempdima -...@pageht
+ \advan...@tempdima\ht\@marbox
+ \ifd...@tempdima >\z@
+ \@@warning{Marginpar on page \thepage\space moved}%
+ \else
+ \...@tempdima\z@
+ \fi
+ \glob...@mparbottom\@pageht
+ \global\advan...@mparbottom\@tempdima
+ \global\advan...@mparbottom\dp\@marbox
+ \global\advan...@mparbottom\marginparpush
+ \advan...@tempdima -\...@marbox
+ \global\setbox \...@marbox
+ \vbox {\vskip \...@tempdima \box \...@marbox}%
+ \global \...@marbox \z@
+ \global \...@marbox \z@
+ \kern -...@pagedp
+ \nointerlineskip
+ \...@xt@\columnwidth
+ {\ifnum \...@tempcnta >\z@
+ \hskip\columnwidth \hskip\marginparsep
+ \else
+ \hskip -\marginparsep \hskip -\marginparwidth
+ \fi
+ \b...@marbox \hss}%
+ \nointerlineskip
+ \hbox{\vrule \...@height\z@ \...@width\z@ \...@depth\@pagedp}}
+\newcommand*{\marginlabel}[1]
+{\mbox{}\marginpar{\raggedleft #1}\ignorespaces}
+\newcommand*{\seealso}[1]
+ {\mbox{}\marginpar{\small $\rightarrow$ #1}\ignorespaces}
+\newcommand*{\attention}[1][\attentionsymbol]
+ {\mbox{}\marginpar{\raggedleft #1}}
+\newcommand*{\attentionsymbol}{\large\bfseries ! $\rightarrow$}
+\def\longrule{\par...@xt@\linewidth{\hss
+ \vrule width \fullwidth height 0.4\p@ depth \...@}\par}
+\def\longthickrule{\par...@xt@\linewidth{\hss
+ \vrule width \fullwidth height 1.0\p@ depth \...@}\par}
+\newenvironment{maxipage}{\par
+ \mbox{}\kern-\leftmarginwidth %\ker...@totalleftmargin
+ \begin{minipage}{\fullwidth}
+ \medskip \ifmaxipagerule \hrule\medskip \fi
+ \parskip = 0.5\baselineskip
+ \def\marginpar{%
+ \ClassError{Refart}
+ {Marginpar not allowed within Maxipage.}
+ {Where should I put them?\MessageBreak
+ I'm using the full pagewidth.}}}
+ {\par \vskip\parskip
+ \medskip \ifmaxipagerule \hrule\medskip \fi
+ \end{minipage}\par}
+\newenvironment{fullpage}{%
+ \clearpage
+ \textwidth=\fullwidth
+ \addtolength\oddsidemargin {-\leftmarginwidth}
+ \setlength\evensidemargin{\oddsidemargin}
+ \leftmarginwidth=\z@
+ \hsize=\fullwidth
+ \linewidth=\fullwidth
+ \columnwidth=\fullwidth
+ \def\marginpar{%
+ \ClassError{Refart}
+ {Marginpar not allowed within Fullpage.}
+ {Where should I put them? I'm already\MessageBreak
+ using the whole page for text.}}}
+ {\clearpage}
+\def\condbreak#1{\vskip \z@ plus #1\pagebreak[3]\vskip \z@ plus -#1\relax}
+\def\noparskip{\vskip-\parskip}
+\let\...@twocolumn\twocolumn
+\def\twocolumn{%
+\ClassError{Refart}
+{Sorry, there is no twocolumn layout in this class}
+{Can you imagine how twocolumn layout will look?\MessageBreak
+ That's why!}}
+\newcommand\contentsname{Contents}
+\newcommand\listfigurename{List of Figures}
+\newcommand\listtablename{List of Tables}
+\newcommand\refname{References}
+\newcommand\indexname{Index}
+\newcommand\figurename{Figure}
+\newcommand\tablename{Table}
+\newcommand\partname{Part}
+\newcommand\appendixname{Appendix}
+\newcommand\abstractname{Abstract}
+\def\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{1...@}
+\setlength\columnseprule{...@}
+\pagestyle{plain}
+\pagenumbering{arabic} % Arabic page numbers
+...@twoside
+\else
+ \raggedbottom
+\fi
+...@twocolumn
+ \twocolumn
+ \sloppy
+ \flushbottom
+\else
+ \onecolumn
+\fi
+\endinput
+%%
+%% End of file `refart.cls'.
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp