1 % Class file for Le Matematiche
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesClass{lematema}[2007/01/01 v0.1
4 Class for articles in ``Le Matematiche'']
6 \DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{babel}}
7 \DeclareOption{french}{\PassOptionsToPackage{\CurrentOption}{babel}}
8 \DeclareOption{italian}{\PassOptionsToPackage{\CurrentOption}{babel}}
10 \DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{article}}
14 \LoadClass[10pt,twoside]{article}
15 \RequirePackage[italian]{babel}
17 \RequirePackage{amsmath}
18 \RequirePackage{amssymb}
20 \DeclareUrlCommand\email{\urlstyle{tt}}
22 % %\magnification\magstephalf
23 \RequirePackage[paperwidth=17cm,%
32 bottom=2.5cm]{geometry}
34 \renewcommand{\ps@plain}{%
35 \renewcommand{\@oddhead}{\hfill\@htitle\hfill\thepage}%
36 \renewcommand{\@evenhead}{\thepage\hfill\@hauthor\hfill}%
37 \renewcommand{\@oddfoot}{}%
38 \renewcommand{\@evenfoot}{}%
49 \def\MSC#1{\gdef\@MSC{#1}}
51 \def\keywords#1{\gdef\@keywords{#1}}
60 %% Redefine \date to parse a string yyyy/mm/dd, which will be used
65 \def\date#1{\LM@parsedate#1\LM@enddate}
66 \def\LM@parsedate#1/#2/#3\LM@enddate{%
73 \noindent\footnotesize LE MATEMATICHE\\
74 Vol.~\LM@Vol~(\LM@Year)~--~Fasc.~\LM@Num,~pp.~\LM@FirstPg--\LM@LastPg
76 \renewcommand{\maketitle}{%
78 \renewcommand\thefootnote{}%
80 \long\def\@makefntext##1{\parindent 1em\noindent##1}%
82 \global\@topnum\z@ % Prevents figures from going at top of page.
84 \thispagestyle{empty}\@thanks
86 \setcounter{footnote}{0}%
87 \global\let\thanks\relax
88 \global\let\maketitle\relax
89 \global\let\@maketitle\relax
90 \global\let\@thanks\@empty
91 \global\let\@author\@empty
92 \global\let\@date\@empty
93 \global\let\@title\@empty
94 \global\let\title\relax
95 \global\let\author\relax
96 \global\let\date\relax
99 \global\let\@MSC\relax
100 \global\let\keywords\relax
101 \global\let\@keywords\relax
109 \let \footnote \thanks
110 {\Large\bfseries \@title \par}%
113 \begin{tabular}[t]{c}%
120 \renewenvironment{abstract}{%
126 % In case the author forgets it:
127 \AtBeginDocument{\maketitle}