From fe9aed43cffbe5e33bbe49d47e2566f9e69f07e3 Mon Sep 17 00:00:00 2001 From: Alexandre Dupas Date: Mon, 16 Aug 2010 02:07:42 +0200 Subject: [PATCH] Change option handling in the crepbook latex class --- crepbook.cls | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/crepbook.cls b/crepbook.cls index 763e1352..f8d2ccb8 100644 --- a/crepbook.cls +++ b/crepbook.cls @@ -5,6 +5,21 @@ \ProvidesClass{crepbook}[2009/11/12 v0.4.2 LaTeX document class for Crep Books] +\newif{\iftabs} +\newif{\iflilypond} + +% Options +\DeclareOption{tabs}{\tabstrue} +\DeclareOption{lilypond}{\lilypondtrue} + +\DeclareOption{10pt}{\PassOptionsToClass{\CurrentOption}{article}} +\DeclareOption{11pt}{\PassOptionsToClass{\CurrentOption}{article}} +\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{article}} + +% Default options : pass to the songs package +\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{songs}} +\ProcessOptions + % Base class \LoadClass[a4paper]{article} @@ -21,15 +36,10 @@ urlcolor=tango-blue-3]{hyperref} \RequirePackage{tikz} -% Options -\newif{\iftabs} -\DeclareOption{tabs}{\ifchorded\tabstrue\fi} -\newif{\iflilypond} -\DeclareOption{lilypond}{\ifchorded\lilypondtrue\fi} - -% Default options : pass to the songs package -\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{songs}} -\ProcessOptions +\iflyric% + \tabsfalse% + \lilypondfalse% +\fi % Start \def\andname{and} @@ -150,7 +160,7 @@ \else% \mbox{% \includegraphics[height=\capoheight]{capodastre}% - \put(-22,8){\normalsize #1} + \put(-22,8){\Large #1} }% \hspace{\coverspace}% \fi%