Browse Source

Documentation des options

pull/32/head
Louis 11 years ago
parent
commit
fc93b1059d
  1. 17
      songbook_core/data/latex/SongbookUtils.sty
  2. 3
      songbook_core/data/latex/crepbook.sty

17
songbook_core/data/latex/SongbookUtils.sty

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

3
songbook_core/data/latex/crepbook.sty

@ -8,8 +8,11 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{crepbook}[2014/04/13 Crepbook Package, version 0.1]
% fancy-capo: TODO
\newif{\iffancycapo}
\DeclareOption{fancy-capo}{\fancycapotrue}
% Remaining options are passed to the SongbookUtils package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}}
\ProcessOptions\relax

Loading…
Cancel
Save