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. 9
      songbook_core/data/latex/crepbook.sty

9
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,16 +95,19 @@
\clearheadinfo \clearheadinfo
\ifcustomtitle
\def\maketitle{ \def\maketitle{
\@maketitle \@maketitle
\clearheadinfo \clearheadinfo
} }
\fi
\newcounter{@inst} \newcounter{@inst}
\newcounter{@auth} \newcounter{@auth}
\newcounter{auco} \newcounter{auco}
\ifcustomtitle
\def\@titlefont{\Huge\bfseries\boldmath} \def\@titlefont{\Huge\bfseries\boldmath}
\def\@subtitlefont{\large\bfseries\boldmath} \def\@subtitlefont{\large\bfseries\boldmath}
@ -147,6 +155,7 @@
\end{flushright} \end{flushright}
\end{titlepage} \end{titlepage}
} }
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Loading…
Cancel
Save