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}{}%
50 \def\MSC#1{\gdef\@MSC{#1}}
52 \def\keywords#1{\gdef\@keywords{#1}}
61 %% Redefine \date to parse a string yyyy/mm/dd, which will be used
66 \def\date#1{\LM@parsedate#1\LM@enddate}
67 \def\LM@parsedate#1/#2/#3\LM@enddate{%
68 \setcounter{LM@year}{#1}%
69 \setcounter{LM@month}{#2}%
70 \setcounter{LM@day}{#3}%
73 \def\@itmonth#1{\ifcase#1\or gennaio\or febbraio\or marzo\or aprile\or
74 maggio\or giugno\or luglio\or agosto\or settembre\or ottobre\or novembre\or
76 \def\itmonth#1{\expandafter\@itmonth\csname c@#1\endcsname}
79 \noindent\footnotesize LE MATEMATICHE\\
80 Vol.~\LM@Vol~(\LM@Year)~--~Fasc.~\LM@Num,~pp.~\LM@FirstPg--\LM@LastPg
82 \renewcommand{\maketitle}{%
84 \renewcommand\thefootnote{}%
86 \long\def\@makefntext##1{\parindent 1em\noindent##1}%
88 \global\@topnum\z@ % Prevents figures from going at top of page.
90 \thispagestyle{empty}\@thanks
92 \setcounter{footnote}{0}%
93 \global\let\thanks\relax
94 \global\let\maketitle\relax
95 \global\let\@maketitle\relax
96 \global\let\@thanks\@empty
97 \global\let\@author\@empty
98 \global\let\@date\@empty
99 \global\let\@title\@empty
100 \global\let\title\relax
101 \global\let\author\relax
102 \global\let\date\relax
103 \global\let\and\relax
104 \global\let\MSC\relax
105 \global\let\@MSC\relax
106 \global\let\keywords\relax
107 \global\let\@keywords\relax
114 \hskip0.8cm Entrato in redazione \arabic{LM@day} \itmonth{LM@month} \arabic{LM@year}}%
117 \let \footnote \thanks
118 {\Large\bfseries \@title \par}%
121 \begin{tabular}[t]{c}%
128 \renewenvironment{abstract}{%
134 % In case the author forgets it:
135 \AtBeginDocument{\maketitle}