Browse Source

Maketitle fix. Les commandes necessaires sont a présent longues.

Fix #29
pull/31/head
Luthaf 11 years ago
parent
commit
02fd41605f
  1. 67
      songbook_core/data/latex/crepbook.sty

67
songbook_core/data/latex/crepbook.sty

@ -40,32 +40,35 @@
\def\andname{and} \def\andname{and}
\def\lastandname{\unskip, and} \def\lastandname{\unskip, and}
\def\lang#1{\def\mainlanguage{#1}}
% End of multilanguage management % End of multilanguage management
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title page % Title page
\long\def\subtitle#1{\long\def\@subtitle{#1}}
\def\version#1{\def\@version{#1}}
\def\web#1{\def\@web{#1}}
\def\mail#1{\def\@mail{#1}}
\def\email#1{\def\@email{#1}}
\def\picture#1{\def\@picture{#1}}
\def\picturecopyright#1{\def\@picturecopyright{#1}}
\def\footer#1{\def\@footer{#1}}
\def\clearheadinfo{ \def\clearheadinfo{
\gdef\@author{No Author Given}% \author{No Author Given}%
\gdef\@title{No Title Given}% \title{No Title Given}%
\gdef\@subtitle{} \subtitle{}%
\gdef\@version{} \version{}%
\gdef\@web{} \web{}%
\gdef\@mail{} \mail{}%
\gdef\@email{} \email{}%
\gdef\@picture{} \picture{}%
\gdef\@picturecopyright{} \picturecopyright{}%
} }
\def\subtitle#1{\gdef\@subtitle{#1}}
\def\version#1{\gdef\@version{#1}}
\def\web#1{\gdef\@web{#1}}
\def\mail#1{\gdef\@mail{#1}}
\def\email#1{\gdef\@email{#1}}
\def\picture#1{\gdef\@picture{#1}}
\def\picturecopyright#1{\gdef\@picturecopyright{#1}}
\def\footer#1{\gdef\@footer{#1}}
\def\lang#1{\gdef\mainlanguage{#1}}
\clearheadinfo \clearheadinfo
\def\maketitle{ \def\maketitle{
@ -84,29 +87,15 @@
\def\@maketitle{ \def\@maketitle{
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
% \markboth{}{}% \hfil%
% \def\lastand{\ifnum\value{@inst}=2\relax
% \unskip{} \andname\
% \else
% \unskip \lastandname\
% \fi}%
% \def\and{\stepcounter{@auth}\relax
% \ifnum\value{@auth}=\value{@inst}%
% \lastand
% \else
% \unskip,
% \fi}%
\begin{center}%
{\rule{\textwidth}{1mm}} {\rule{\textwidth}{1mm}}
{\@titlefont\@title\par} {\@titlefont\@title\par}
\if!\@subtitle!\else \if!\@subtitle!\else
{\hfil\@subtitlefont\@subtitle\par} {\hfil\@subtitlefont\@subtitle\par}
\fi \fi
{\rule{\textwidth}{1mm}} {\rule{\textwidth}{1mm}}
\end{center}% \hfil%
\vfil \vfil
\begin{flushleft} \begin{flushleft}
\begin{tabular}{l l} \begin{tabular}{l l}
\if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi \if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi
@ -116,14 +105,11 @@
\if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi \if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi
\end{tabular} \end{tabular}
\end{flushleft} \end{flushleft}
\vfil \vfil
\begin{center} \begin{center}
\includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture} \includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture}
{\hfil \small \@picturecopyright} {\hfil \small \@picturecopyright}
\end{center} \end{center}
\@footer \@footer
\end{titlepage} \end{titlepage}
} }
@ -162,9 +148,4 @@
\hbox{\normalsize\songauthors}% \hbox{\normalsize\songauthors}%
} }
% color used to shade song numbers.
%\definecolor{SongbookShade}{HTML}{d1e4ae}
\endinput \endinput
Loading…
Cancel
Save