From 8d844a46566d6beb720c3dbda7033117c0fffc8e Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 10 Mar 2008 15:48:02 +0100 Subject: [PATCH] Multiline authors --- lematema.cls | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lematema.cls b/lematema.cls index 6be2cf0..334cba9 100644 --- a/lematema.cls +++ b/lematema.cls @@ -163,9 +163,9 @@ Class for articles in ``Le Matematiche''] \def\makeshortauthor#1#2 #3\relax{ \if@shortauthortoks -\expandafter\@shortauthortoks\expandafter{\the\@shortauthortoks{} - #1. #3}% +\expandafter\@shortauthortoks\expandafter{\the\@shortauthortoks\space - \MakeUppercase{#1}. \MakeUppercase{#3}}% \else -\@shortauthortoks{#1. #3}% +\@shortauthortoks{\MakeUppercase{#1}. \MakeUppercase{#3}}% \@shortauthortokstrue \fi \def\@shortauthor{\the\@shortauthortoks}% @@ -176,9 +176,9 @@ Class for articles in ``Le Matematiche''] \def\authormark#1{\gdef\@hauthor{\MakeUppercase{#1}}} \def\author#1{% \if@authortoks -\expandafter\@authortoks\expandafter{\the\@authortoks{} - #1}% +\expandafter\@authortoks\expandafter{\the\@authortoks\space - \MakeUppercase{#1}}% \else -\@authortoks{#1}% +\expandafter\@authortoks\expandafter{\the\@authortoks\MakeUppercase{#1}}% \@authortokstrue \fi \makeshortauthor#1\relax% @@ -187,9 +187,17 @@ Class for articles in ``Le Matematiche''] \@lastauthor{#1}% } \newtoks\@authortoks +\@authortoks{} \newif\if@authortoks\@authortoksfalse \newtoks\@lastauthor +\def\authorline@hyphen{ - } +\let\authorline@sep\authorline@hyphen +\def\authorline{% +\@authortoksfalse +\expandafter\@authortoks\expandafter{\the\@authortoks\protect\authorline@sep}% +} + \def\shortauthormark{\authormark{\the\@shortauthortoks}} \def\address#1{% @@ -307,7 +315,8 @@ Vol.~\LM@Vol~(\LM@Year)~--~Fasc.~\LM@Num,~pp.~\LM@FirstPg--\LM@LastPg \vskip 0.5truecm% {\fontsize{11.5}{14}\selectfont \begin{tabular}[t]{c}% - \expandafter\MakeUppercase\expandafter{\ifshortauthors\@shortauthor\else\@author\fi} + \let\authorline@sep\tabularnewline + \ifshortauthors\@shortauthor\else\@author\fi \end{tabular}\par }% \end{center}% -- 2.32.0.93.g670b81a890