Browse Source

Abandon de \lang (cette valeur peut être retrouvée avec Babel)

pull/15/head
Louis 11 years ago
parent
commit
59d7670440
  1. 63
      songbook_core/data/latex/crepbook.cls

63
songbook_core/data/latex/crepbook.cls

@ -111,28 +111,27 @@
\def\picture#1{\gdef\@picture{#1}} \def\picture#1{\gdef\@picture{#1}}
\def\picturecopyright#1{\gdef\@picturecopyright{#1}} \def\picturecopyright#1{\gdef\@picturecopyright{#1}}
\def\footer#1{\gdef\@footer{#1}} \def\footer#1{\gdef\@footer{#1}}
\def\lang#1{\gdef\@lang{#1}}
\clearheadinfo \clearheadinfo
\newcommand{\l@belVersion}{ \newcommand{\l@belVersion}{
\IfStrEq{\@lang}{english}{\bf version:}{} \iflanguage{english}{\bf version:}{}
\IfStrEq{\@lang}{french}{\bf version :}{} \iflanguage{french}{\bf version :}{}
} }
\newcommand{\l@belDate}{ \newcommand{\l@belDate}{
\IfStrEq{\@lang}{english}{\bf date:}{} \iflanguage{english}{\bf date:}{}
\IfStrEq{\@lang}{french}{\bf date :}{} \iflanguage{french}{\bf date :}{}
} }
\newcommand{\l@belAuthor}{ \newcommand{\l@belAuthor}{
\IfStrEq{\@lang}{english}{\bf authors:}{} \iflanguage{english}{\bf authors:}{}
\IfStrEq{\@lang}{french}{\bf auteurs :}{} \iflanguage{french}{\bf auteurs :}{}
} }
\newcommand{\l@belWeb}{ \newcommand{\l@belWeb}{
\IfStrEq{\@lang}{english}{\bf web:}{} \iflanguage{english}{\bf web:}{}
\IfStrEq{\@lang}{french}{\bf web :}{} \iflanguage{french}{\bf web :}{}
} }
\newcommand{\l@belMail}{ \newcommand{\l@belMail}{
\IfStrEq{\@lang}{english}{\bf mail:}{} \iflanguage{english}{\bf mail:}{}
\IfStrEq{\@lang}{french}{\bf mail :}{} \iflanguage{french}{\bf mail :}{}
} }
\renewcommand\maketitle{ \renewcommand\maketitle{
@ -229,7 +228,7 @@
\renewcommand{\extendpostlude}{ \renewcommand{\extendpostlude}{
{\footnotesize% {\footnotesize%
\IfStrEq{\songoriginal}{}{}{ \IfStrEq{\songoriginal}{}{}{
\IfStrEq{\@lang}{english}{Original song:}{Chanson originale :} \iflanguage{english}{Original song:}{Chanson originale :}
\songoriginal \songoriginal
} }
} }
@ -446,36 +445,36 @@
%% End of tabs.sty file %% End of tabs.sty file
\newcommand*{\Intro}{% \newcommand*{\Intro}{%
\IfStrEq{\@lang}{english}{intro}{}% \iflanguage{english}{intro}{}%
\IfStrEq{\@lang}{french}{intro}{}% \iflanguage{french}{intro}{}%
}% }%
\newcommand*{\Outro}{% \newcommand*{\Outro}{%
\IfStrEq{\@lang}{english}{outro}{}% \iflanguage{english}{outro}{}%
\IfStrEq{\@lang}{french}{outro}{}% \iflanguage{french}{outro}{}%
}% }%
\newcommand*{\Bridge}{% \newcommand*{\Bridge}{%
\IfStrEq{\@lang}{english}{bridge}{}% \iflanguage{english}{bridge}{}%
\IfStrEq{\@lang}{french}{pont}{}% \iflanguage{french}{pont}{}%
}% }%
\newcommand*{\Chorus}{% \newcommand*{\Chorus}{%
\IfStrEq{\@lang}{english}{chorus}{}% \iflanguage{english}{chorus}{}%
\IfStrEq{\@lang}{french}{refrain}{}% \iflanguage{french}{refrain}{}%
}% }%
\newcommand*{\Verse}{% \newcommand*{\Verse}{%
\IfStrEq{\@lang}{english}{verse}{}% \iflanguage{english}{verse}{}%
\IfStrEq{\@lang}{french}{couplet}{}% \iflanguage{french}{couplet}{}%
}% }%
\newcommand*{\Solo}{% \newcommand*{\Solo}{%
\IfStrEq{\@lang}{english}{solo}{}% \iflanguage{english}{solo}{}%
\IfStrEq{\@lang}{french}{solo}{}% \iflanguage{french}{solo}{}%
}% }%
\newcommand*{\Pattern}{% \newcommand*{\Pattern}{%
\IfStrEq{\@lang}{english}{pattern}{}% \iflanguage{english}{pattern}{}%
\IfStrEq{\@lang}{french}{motif}{}% \iflanguage{french}{motif}{}%
}% }%
\newcommand*{\Rythm}{% \newcommand*{\Rythm}{%
\IfStrEq{\@lang}{english}{rythm}{}% \iflanguage{english}{rythm}{}%
\IfStrEq{\@lang}{french}{rythme}{}% \iflanguage{french}{rythme}{}%
}% }%
\newcommand*{\Adlib}{% \newcommand*{\Adlib}{%
\emph{ad~lib.}% \emph{ad~lib.}%
@ -485,7 +484,7 @@
\renewcommand{\musicnote}[2][]{% \renewcommand{\musicnote}[2][]{%
\vspace{.1cm} \vspace{.1cm}
\IfStrEq{}{#1}{\musicnoteORIG{#2}}{ \IfStrEq{}{#1}{\musicnoteORIG{#2}}{
\IfStrEq{\@lang}{#1}{\musicnoteORIG{#2}}{} \iflanguage{#1}{\musicnoteORIG{#2}}{}
} }
} }
@ -493,7 +492,7 @@
\renewcommand{\textnote}[2][]{% \renewcommand{\textnote}[2][]{%
\vspace{.1cm} \vspace{.1cm}
\IfStrEq{}{#1}{\textnoteORIG{#2}}{ \IfStrEq{}{#1}{\textnoteORIG{#2}}{
\IfStrEq{\@lang}{#1}{\textnoteORIG{#2}}{} \iflanguage{#1}{\textnoteORIG{#2}}{}
} }
} }
@ -559,8 +558,8 @@
\newcommand{\transposition}[1]{% \newcommand{\transposition}[1]{%
\ifnorepeatchords% \ifnorepeatchords%
\musicnote{% \musicnote{%
\IfStrEq{\@lang}{english}{transposition:~}{}% \iflanguage{english}{transposition:~}{}%
\IfStrEq{\@lang}{french}{transposition~:~}{}% \iflanguage{french}{transposition~:~}{}%
\ifthenelse{#1>0}{#1$\Uparrow$}{\removefirstch@r#1$\Downarrow$}% \ifthenelse{#1>0}{#1$\Uparrow$}{\removefirstch@r#1$\Downarrow$}%
}% }%
\else% \else%

Loading…
Cancel
Save