From e1a67ded88844be1e6be6c883b67e04302905dd5 Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Thu, 13 Oct 2011 21:32:08 +0200 Subject: [PATCH] move lang-based labels out of title environment --- crepbook.cls | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/crepbook.cls b/crepbook.cls index 2547c8d7..ce01f41d 100644 --- a/crepbook.cls +++ b/crepbook.cls @@ -77,7 +77,6 @@ \gdef\@email{} \gdef\@picture{} \gdef\@picturecopyright{} - \gdef\@lang{english} } \def\subtitle#1{\gdef\@subtitle{#1}} @@ -92,6 +91,27 @@ \def\lang#1{\gdef\@lang{#1}} \clearheadinfo +\newcommand{\l@belVersion}{ + \IfStrEq{\@lang}{english}{\bf version:}{} + \IfStrEq{\@lang}{french}{\bf version :}{} +} +\newcommand{\l@belDate}{ + \IfStrEq{\@lang}{english}{\bf date:}{} + \IfStrEq{\@lang}{french}{\bf date :}{} +} +\newcommand{\l@belAuthor}{ + \IfStrEq{\@lang}{english}{\bf authors:}{} + \IfStrEq{\@lang}{french}{\bf auteurs :}{} +} +\newcommand{\l@belWeb}{ + \IfStrEq{\@lang}{english}{\bf web:}{} + \IfStrEq{\@lang}{french}{\bf web :}{} +} +\newcommand{\l@belMail}{ + \IfStrEq{\@lang}{english}{\bf mail:}{} + \IfStrEq{\@lang}{french}{\bf mail :}{} +} + \renewcommand\maketitle{ \@maketitle @@ -127,27 +147,6 @@ \vspace{1.5cm} - \newcommand{\l@belVersion}{ - \IfStrEq{\@lang}{english}{\bf version:}{} - \IfStrEq{\@lang}{french}{\bf version :}{} - } - \newcommand{\l@belDate}{ - \IfStrEq{\@lang}{english}{\bf date:}{} - \IfStrEq{\@lang}{french}{\bf date :}{} - } - \newcommand{\l@belAuthor}{ - \IfStrEq{\@lang}{english}{\bf authors:}{} - \IfStrEq{\@lang}{french}{\bf auteurs :}{} - } - \newcommand{\l@belWeb}{ - \IfStrEq{\@lang}{english}{\bf web:}{} - \IfStrEq{\@lang}{french}{\bf web :}{} - } - \newcommand{\l@belMail}{ - \IfStrEq{\@lang}{english}{\bf mail:}{} - \IfStrEq{\@lang}{french}{\bf mail :}{} - } - \begin{flushleft} \begin{tabular}{l l} \if!\@version!\else{\l@belVersion} & \@version \\ \fi