Browse Source

Ajout d 'une option 'nocustomfonts' pour désactiver la redéfinition des fontes

pull/32/head
Louis 11 years ago
parent
commit
3ea3be98a1
  1. 35
      songbook_core/data/latex/crepbook.sty

35
songbook_core/data/latex/crepbook.sty

@ -17,6 +17,11 @@
\customtitletrue \customtitletrue
\DeclareOption{nocustomtitle}{\customtitlefalse} \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 % Remaining options are passed to the SongbookUtils package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}}
@ -177,20 +182,22 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts definitions % Fonts definitions
\def\chordfont#1{\gdef\@chordfont{#1}} \ifcustomfonts
\def\@chordfont{\small\it} \def\chordfont#1{\gdef\@chordfont{#1}}
\def\@chordfont{\small\it}
\renewcommand{\idxtitlefont}{\sffamily\bfseries}
\renewcommand{\idxauthfont}{\sffamily\bfseries} \renewcommand{\idxtitlefont}{\sffamily\bfseries}
\renewcommand{\idxheadfont}{\sffamily\it\LARGE} \renewcommand{\idxauthfont}{\sffamily\bfseries}
\renewcommand{\idxrefsfont}{\bfseries} \renewcommand{\idxheadfont}{\sffamily\it\LARGE}
\renewcommand{\stitlefont}{\LARGE\bf} \renewcommand{\idxrefsfont}{\bfseries}
\renewcommand{\printchord}[1]{\@chordfont #1} \renewcommand{\stitlefont}{\LARGE\bf}
\renewcommand{\chorusfont}{\it} \renewcommand{\printchord}[1]{\@chordfont #1}
\renewcommand{\lyricfont}{\normalfont\normalsize} \renewcommand{\chorusfont}{\it}
\renewcommand{\showauthors}{% \renewcommand{\lyricfont}{\normalfont\normalsize}
\hbox{\normalsize\songauthors}% \renewcommand{\showauthors}{%
} \hbox{\normalsize\songauthors}%
}
\fi
\titleprefixword{} \titleprefixword{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Loading…
Cancel
Save