From a0d0d28351f604f9638e804f459f4f9c96beec9c Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 10 Jun 2016 12:59:27 +0200 Subject: [PATCH] Bugfix: include capo in csg to tsg conversion --- patacrep/data/templates/songs/chordpro/latex/song | 4 ++++ test/test_song/metadata.tsg | 1 + 2 files changed, 5 insertions(+) diff --git a/patacrep/data/templates/songs/chordpro/latex/song b/patacrep/data/templates/songs/chordpro/latex/song index 08591d3a..af97c285 100644 --- a/patacrep/data/templates/songs/chordpro/latex/song +++ b/patacrep/data/templates/songs/chordpro/latex/song @@ -51,6 +51,10 @@ (( render(chord) )) (* endfor *) +(*- if metadata.capo is defined -*) + \capo{(( metadata.capo ))} +(* endif *) + (* include 'song_body' *) \endsong diff --git a/test/test_song/metadata.tsg b/test/test_song/metadata.tsg index 09c768bf..0f7f1825 100644 --- a/test/test_song/metadata.tsg +++ b/test/test_song/metadata.tsg @@ -16,6 +16,7 @@ Subtitle5}[ ] \cover +\capo{Capo} \textnote{Comment} \musicnote{GuitarComment}