diff --git a/templates/ancient.tmpl b/templates/ancient.tmpl index 12742bfc..bc5ea22b 100644 --- a/templates/ancient.tmpl +++ b/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} diff --git a/templates/minimal.tmpl b/templates/minimal.tmpl index 3ac88293..3bdcd58a 100644 --- a/templates/minimal.tmpl +++ b/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} diff --git a/templates/patacrep.tmpl b/templates/patacrep.tmpl index 8a820ff9..6aace041 100644 --- a/templates/patacrep.tmpl +++ b/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}