Browse Source

Change option handling in the crepbook latex class

remotes/origin/translate_notes
Alexandre Dupas 15 years ago
parent
commit
8d69c774b9
  1. 30
      crepbook.cls

30
crepbook.cls

@ -5,6 +5,21 @@
\ProvidesClass{crepbook}[2009/11/12 v0.4.2 LaTeX document class for Crep \ProvidesClass{crepbook}[2009/11/12 v0.4.2 LaTeX document class for Crep
Books] 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 % Base class
\LoadClass[a4paper]{article} \LoadClass[a4paper]{article}
@ -21,15 +36,10 @@
urlcolor=tango-blue-3]{hyperref} urlcolor=tango-blue-3]{hyperref}
\RequirePackage{tikz} \RequirePackage{tikz}
% Options \iflyric%
\newif{\iftabs} \tabsfalse%
\DeclareOption{tabs}{\ifchorded\tabstrue\fi} \lilypondfalse%
\newif{\iflilypond} \fi
\DeclareOption{lilypond}{\ifchorded\lilypondtrue\fi}
% Default options : pass to the songs package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{songs}}
\ProcessOptions
% Start % Start
\def\andname{and} \def\andname{and}
@ -150,7 +160,7 @@
\else% \else%
\mbox{% \mbox{%
\includegraphics[height=\capoheight]{capodastre}% \includegraphics[height=\capoheight]{capodastre}%
\put(-22,8){\normalsize #1} \put(-22,8){\Large #1}
}% }%
\hspace{\coverspace}% \hspace{\coverspace}%
\fi% \fi%

Loading…
Cancel
Save