From 8055b232783a67461e1f347954938a0b47d99876 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 4 Jan 2007 14:35:57 +0100 Subject: [PATCH] Headings and abstract, plus corrections --- lematema.cls | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++-- lematest.tex | 6 +++- 2 files changed, 96 insertions(+), 4 deletions(-) diff --git a/lematema.cls b/lematema.cls index 431eb91..136c266 100644 --- a/lematema.cls +++ b/lematema.cls @@ -14,27 +14,115 @@ Class for articles in ``Le Matematiche''] \LoadClass[10pt,twoside]{article} \RequirePackage[italian]{babel} \RequirePackage{url} +\RequirePackage{amsmath} +\RequirePackage{amssymb} + \DeclareUrlCommand\email{\urlstyle{tt}} % %\magnification\magstephalf \RequirePackage[paperwidth=17cm,% paperheight=24cm,% + footskip=0pt,% + headsep=0.5cm,% + headheight=0.5cm,% width=12.2cm,% height=18.5cm,% left=2cm,% - top=2cm]{geometry} + top=2cm,% + bottom=2.5cm]{geometry} + +\renewcommand{\ps@plain}{% + \renewcommand{\@oddhead}{\hfill\@htitle\hfill\thepage}% + \renewcommand{\@evenhead}{\thepage\hfill\@hauthor\hfill}% + \renewcommand{\@oddfoot}{}% + \renewcommand{\@evenfoot}{}% +} +\pagestyle{plain} -% TODO testatine -% TODO abstract % TODO bibliografia % TODO font +% TODO +\def\@htitle{titolo} +\def\@hauthor{autore} \def\MSC#1{\gdef\@MSC{#1}} \def\@MSC{} \def\keywords#1{\gdef\@keywords{#1}} \def\@keywords{} +\edef\LM@Year{????} +\def\LM@Vol{???} +\def\LM@Num{??} +\def\LM@FirstPg{??} +\def\LM@LastPg{??} + +%% Redefine \date to parse a string yyyy/mm/dd, which will be used +%% submission date +\newcount\LM@year +\newcount\LM@month +\newcount\LM@day +\def\date#1{\LM@parsedate#1\LM@enddate} +\def\LM@parsedate#1/#2/#3\LM@enddate{% +\LM@year#1\relax +\LM@month#2\relax +\LM@day#3\relax +} + +\def\@articleinfo{% +\noindent\footnotesize LE MATEMATICHE\\ +Vol.~\LM@Vol~(\LM@Year)~--~Fasc.~\LM@Num,~pp.~\LM@FirstPg--\LM@LastPg +} +\renewcommand{\maketitle}{% + \begingroup + \renewcommand\thefootnote{}% + \def\@makefnmark{}% + \long\def\@makefntext##1{\parindent 1em\noindent##1}% + \newpage + \global\@topnum\z@ % Prevents figures from going at top of page. + \@maketitle + \thispagestyle{empty}\@thanks + \endgroup + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\and\relax + \global\let\MSC\relax + \global\let\@MSC\relax + \global\let\keywords\relax + \global\let\@keywords\relax +} + +\def\@maketitle{% + \newpage + \@articleinfo + \vskip 4.5truecm% + \begin{center}% + \let \footnote \thanks + {\Large\bfseries \@title \par}% + \vskip 0.5truecm% + {\Large + \begin{tabular}[t]{c}% + \@author + \end{tabular}\par}% + \end{center}% + \par + \vskip 0.5truecm} + +\renewenvironment{abstract}{% +\small\quotation +}{% +\endquotation +} + % In case the author forgets it: \AtBeginDocument{\maketitle} diff --git a/lematest.tex b/lematest.tex index db2eb47..206a2d7 100644 --- a/lematest.tex +++ b/lematest.tex @@ -39,6 +39,10 @@ Altro Dipartimento, Altra Universit }% } +% Data di entrata in redazione, nella forma anno/mese/giorno +% (numerici) +\date{2007/01/01} + % Altrove gli indirizzi email possono essere inseriti piĆ¹ % semplicemente con il comando \email{indirizzo.email} @@ -49,7 +53,7 @@ Altro Dipartimento, Altra Universit % Abstract \begin{abstract} -Un abstract per questo articolo +\input tufte \end{abstract} % Articolo vero e proprio -- 2.32.0.93.g670b81a890