Browse Source

Utilisation de TeX au lieu de tabulars imbriqués

pull/32/head
Luthaf 11 years ago
parent
commit
44a1c4f2fe
  1. 43
      songbook_core/data/latex/crepbook.sty

43
songbook_core/data/latex/crepbook.sty

@ -26,23 +26,20 @@
% Default names (english) % Default names (english)
\def\labelversionname{Version:} \def\labelversionname{Version:}
\def\labeldatename{Date:} \def\labeldatename{Date:}
\def\labelauthorname{aAuthors:} \def\labelauthorname{Authors:}
\def\labelwebname{Web:} \def\labelwebname{Web:}
\def\labelmailname{Email:} \def\labelmailname{Email:}
\IfStrEq{\mainlanguage}{french}{ \IfStrEq{\mainlanguage}{french}{
% French names % French names
\def\labelversionname{Version :} \def\labelversionname{Version~:}
\def\labeldatename{Date :} \def\labeldatename{Date~:}
\def\labelauthorname{Auteurs :} \def\labelauthorname{Auteurs~:}
\def\labelwebname{Web :} \def\labelwebname{Web~:}
\def\labelmailname{Mail :} \def\labelmailname{Mail~:}
}{} }{}
} }
\def\andname{and}
\def\lastandname{\unskip, and}
\def\lang#1{\def\mainlanguage{#1}} \def\lang#1{\def\mainlanguage{#1}}
@ -86,7 +83,18 @@
\def\@titlefont{\Huge\bfseries\boldmath} \def\@titlefont{\Huge\bfseries\boldmath}
\def\@subtitlefont{\large\bfseries\boldmath} \def\@subtitlefont{\large\bfseries\boldmath}
\def\@getelement#1{\csname @#1\endcsname}
\def\@labelelement#1{\csname label#1name\endcsname}
\def\@insertelement#1{\if!\@getelement{#1}!
\else %
\@labelelement{#1}& %
\@getelement{#1} \cr %
\fi %
}
\def\@maketitle{ \def\@maketitle{
\def\and{\unskip,\cr&}
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
\begin{center} \begin{center}
@ -98,15 +106,14 @@
{\rule{\textwidth}{1mm}} {\rule{\textwidth}{1mm}}
\end{center} \end{center}
\vfil \vfil
\begin{flushleft} \ialign{
\begin{tabular}{l l} \bf{##} \hfil & ## \hfil \cr % Lines definition
\if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi \@insertelement{version} %
\if!\@date!\else{\textbf{\labeldatename}} & \@date \\ \fi \@insertelement{date} %
\if!\@author!\else{\textbf{\labelauthorname}} & \begin{tabular}[t]{c}\@author\end{tabular} \\ \fi \@insertelement{author} %
\if!\@web!\else{\textbf{\labelwebname}} & \url{\@web} \\ \fi \@insertelement{web} %
\if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi \@insertelement{mail} %
\end{tabular} }
\end{flushleft}
\vfil \vfil
\begin{center} \begin{center}
\includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture} \includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture}

Loading…
Cancel
Save