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{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

3
songbook_core/data/latex/crepbook.sty

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

Loading…
Cancel
Save