Browse Source

override the lilypond macro in templates

This is needed since we must check if the pdf file has been produced
within the library directory for the makefile to run the lilypond command
remotes/origin/HEAD
Romain Goffe 12 years ago
parent
commit
dc70ad09f7
  1. 6
      templates/ancient.tmpl
  2. 6
      templates/minimal.tmpl
  3. 6
      templates/patacrep.tmpl

6
templates/ancient.tmpl

@ -70,6 +70,12 @@
\graphicspath{ {img/}, {\getLibraryImgDirectory}, {\getLibraryLilypondDirectory}, {\getCacheDirectory} }
\renewcommand{\lilypond}[1]{%
\iflilypond%
\IfFileExists{\getLibraryLilypondDirectory/#1.pdf}{\includegraphics{#1}}{}%
\fi%
}
\definecolor{SongNumberBgColor}{HTML}{\getsongnumberbgcolor}
\definecolor{NoteBgColor}{HTML}{\getnotebgcolor}
\definecolor{IndexBgColor}{HTML}{\getindexbgcolor}

6
templates/minimal.tmpl

@ -43,6 +43,12 @@
\lang{\getlang}
\graphicspath{ {img/}, {\getLibraryImgDirectory}, {\getLibraryLilypondDirectory}, {\getCacheDirectory} }
\renewcommand{\lilypond}[1]{%
\iflilypond%
\IfFileExists{\getLibraryLilypondDirectory/#1.pdf}{\includegraphics{#1}}{}%
\fi%
}
\nosongnumbers
\pagestyle{empty}

6
templates/patacrep.tmpl

@ -70,6 +70,12 @@
\graphicspath{ {img/}, {\getLibraryImgDirectory}, {\getLibraryLilypondDirectory}, {\getCacheDirectory} }
\renewcommand{\lilypond}[1]{%
\iflilypond%
\IfFileExists{\getLibraryLilypondDirectory/#1.pdf}{\includegraphics{#1}}{}%
\fi%
}
\definecolor{SongNumberBgColor}{HTML}{\getsongnumberbgcolor}
\definecolor{NoteBgColor}{HTML}{\getnotebgcolor}
\definecolor{IndexBgColor}{HTML}{\getindexbgcolor}

Loading…
Cancel
Save