From 3ea3be98a19448dfcb1fdb9c274c6de324093b8f Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 21 May 2014 17:55:59 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d=20'une=20option=20=20'nocustomfonts'?= =?UTF-8?q?=20pour=20d=C3=A9sactiver=20la=20red=C3=A9finition=20des=20font?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- songbook_core/data/latex/crepbook.sty | 35 ++++++++++++++++----------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/songbook_core/data/latex/crepbook.sty b/songbook_core/data/latex/crepbook.sty index 0f9d2d34..23d2fa50 100644 --- a/songbook_core/data/latex/crepbook.sty +++ b/songbook_core/data/latex/crepbook.sty @@ -17,6 +17,11 @@ \customtitletrue \DeclareOption{nocustomtitle}{\customtitlefalse} +% nocustomfonts: Disable fancy fonts definition (back to LaTeX default) +\newif{\ifcustomfonts} +\customfontstrue +\DeclareOption{nocustomfonts}{\customfontsfalse} + % Remaining options are passed to the SongbookUtils package \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}} @@ -177,20 +182,22 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Fonts definitions -\def\chordfont#1{\gdef\@chordfont{#1}} -\def\@chordfont{\small\it} - -\renewcommand{\idxtitlefont}{\sffamily\bfseries} -\renewcommand{\idxauthfont}{\sffamily\bfseries} -\renewcommand{\idxheadfont}{\sffamily\it\LARGE} -\renewcommand{\idxrefsfont}{\bfseries} -\renewcommand{\stitlefont}{\LARGE\bf} -\renewcommand{\printchord}[1]{\@chordfont #1} -\renewcommand{\chorusfont}{\it} -\renewcommand{\lyricfont}{\normalfont\normalsize} -\renewcommand{\showauthors}{% - \hbox{\normalsize\songauthors}% -} +\ifcustomfonts + \def\chordfont#1{\gdef\@chordfont{#1}} + \def\@chordfont{\small\it} + + \renewcommand{\idxtitlefont}{\sffamily\bfseries} + \renewcommand{\idxauthfont}{\sffamily\bfseries} + \renewcommand{\idxheadfont}{\sffamily\it\LARGE} + \renewcommand{\idxrefsfont}{\bfseries} + \renewcommand{\stitlefont}{\LARGE\bf} + \renewcommand{\printchord}[1]{\@chordfont #1} + \renewcommand{\chorusfont}{\it} + \renewcommand{\lyricfont}{\normalfont\normalsize} + \renewcommand{\showauthors}{% + \hbox{\normalsize\songauthors}% + } +\fi \titleprefixword{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%