|
@ -15,36 +15,47 @@ |
|
|
\RequirePackage{ifthen} |
|
|
\RequirePackage{ifthen} |
|
|
\RequirePackage{tikz} |
|
|
\RequirePackage{tikz} |
|
|
|
|
|
|
|
|
|
|
|
% tabs: display the guitar tabs |
|
|
\newif{\iftabs} |
|
|
\newif{\iftabs} |
|
|
\DeclareOption{tabs}{\tabstrue} |
|
|
\DeclareOption{tabs}{\tabstrue} |
|
|
|
|
|
|
|
|
|
|
|
% lilypond: display Lilypond music sheets |
|
|
\newif{\iflilypond} |
|
|
\newif{\iflilypond} |
|
|
\DeclareOption{lilypond}{\lilypondtrue} |
|
|
\DeclareOption{lilypond}{\lilypondtrue} |
|
|
|
|
|
|
|
|
\newif{\iflilypondauto} |
|
|
\newif{\iflilypondauto} |
|
|
\DeclareOption{lilypond}{\lilypondautotrue\lilypondtrue} |
|
|
\DeclareOption{lilypond}{\lilypondautotrue\lilypondtrue} |
|
|
|
|
|
|
|
|
|
|
|
% diagram: display chord diagrams at the beginning |
|
|
\newif{\ifdiagram} |
|
|
\newif{\ifdiagram} |
|
|
\DeclareOption{diagram}{\diagramtrue} |
|
|
\DeclareOption{diagram}{\diagramtrue} |
|
|
|
|
|
|
|
|
|
|
|
% importantdiagramonly: only display important chords |
|
|
\newif{\ifimportantdiagramonly} |
|
|
\newif{\ifimportantdiagramonly} |
|
|
\DeclareOption{importantdiagramonly}{\importantdiagramonlytrue\diagramtrue} |
|
|
\DeclareOption{importantdiagramonly}{\importantdiagramonlytrue\diagramtrue} |
|
|
|
|
|
|
|
|
|
|
|
% pictures: display song covers and songbook titlepage picture |
|
|
\newif{\ifpictures} |
|
|
\newif{\ifpictures} |
|
|
\DeclareOption{pictures}{\picturestrue} |
|
|
\DeclareOption{pictures}{\picturestrue} |
|
|
|
|
|
|
|
|
|
|
|
% repeatchords: display chords in every verse if the song allows it |
|
|
\newif{\ifrepeatchords} |
|
|
\newif{\ifrepeatchords} |
|
|
\DeclareOption{repeatchords}{\repeatchordstrue} |
|
|
\DeclareOption{repeatchords}{\repeatchordstrue} |
|
|
|
|
|
|
|
|
|
|
|
% onesongperpage: force single page for each song |
|
|
|
|
|
\newif{\ifonesongperpage} |
|
|
|
|
|
\DeclareOption{onesongperpage}{\onesongperpagetrue} |
|
|
|
|
|
|
|
|
|
|
|
%%% Instruments |
|
|
|
|
|
% ukulele: display ukulele tabs |
|
|
\newif{\ifukulele} |
|
|
\newif{\ifukulele} |
|
|
\DeclareOption{ukulele}{\ukuleletrue} |
|
|
\DeclareOption{ukulele}{\ukuleletrue} |
|
|
|
|
|
|
|
|
|
|
|
% guitar: display guitar tabs |
|
|
\newif{\ifguitar} |
|
|
\newif{\ifguitar} |
|
|
\DeclareOption{guitar}{\guitartrue} |
|
|
\DeclareOption{guitar}{\guitartrue} |
|
|
|
|
|
|
|
|
\newif{\ifonesongperpage} |
|
|
% Remaining options are passed to the songs package |
|
|
\DeclareOption{onesongperpage}{\onesongperpagetrue} |
|
|
|
|
|
|
|
|
|
|
|
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{songs}} |
|
|
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{songs}} |
|
|
|
|
|
|
|
|
\ProcessOptions\relax |
|
|
\ProcessOptions\relax |
|
|