Browse Source

Ajout d'une option 'nocustomtitle' pour désactiver la modification de la page de titre

pull/32/head
Louis 11 years ago
parent
commit
ca9ffe3347
  1. 27
      songbook_core/data/latex/crepbook.sty

27
songbook_core/data/latex/crepbook.sty

@ -12,6 +12,11 @@
\newif{\iffancycapo} \newif{\iffancycapo}
\DeclareOption{fancy-capo}{\fancycapotrue} \DeclareOption{fancy-capo}{\fancycapotrue}
% nocustomtitle: Disable title page fancy definition (back to LaTeX default)
\newif{\ifcustomtitle}
\customtitletrue
\DeclareOption{nocustomtitle}{\customtitlefalse}
% Remaining options are passed to the SongbookUtils package % Remaining options are passed to the SongbookUtils package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}}
@ -90,30 +95,33 @@
\clearheadinfo \clearheadinfo
\def\maketitle{ \ifcustomtitle
\def\maketitle{
\@maketitle \@maketitle
\clearheadinfo \clearheadinfo
} }
\fi
\newcounter{@inst} \newcounter{@inst}
\newcounter{@auth} \newcounter{@auth}
\newcounter{auco} \newcounter{auco}
\def\@titlefont{\Huge\bfseries\boldmath} \ifcustomtitle
\def\@subtitlefont{\large\bfseries\boldmath} \def\@titlefont{\Huge\bfseries\boldmath}
\def\@subtitlefont{\large\bfseries\boldmath}
\def\@getelement#1{\csname @#1\endcsname} \def\@getelement#1{\csname @#1\endcsname}
\def\@labelelement#1{\csname label#1name\endcsname} \def\@labelelement#1{\csname label#1name\endcsname}
\def\@insertelement#1{\if!\@getelement{#1}! \def\@insertelement#1{\if!\@getelement{#1}!
\else % \else %
\@labelelement{#1}& % \@labelelement{#1}& %
\@getelement{#1} \cr % \@getelement{#1} \cr %
\fi % \fi %
} }
\def\@maketitle{ \def\@maketitle{
\def\and{\unskip,\cr&} \def\and{\unskip,\cr&}
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
@ -146,7 +154,8 @@
\@footer \@footer
\end{flushright} \end{flushright}
\end{titlepage} \end{titlepage}
} }
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Loading…
Cancel
Save