numbering a series of exercises
Hello all, I'm trying to do something that I suspect is easily done with scheme, but I have no idea how: I'd like to create a list of exercises that are automatically numbered. I'm currently using instrumentName for the numbers, to get something that looks something like this: 1. === = 2. === = 3. === === With code that looks something a little like this: next = % simple scheme addition exercise = \markup { \concat \next . } \score { \new Staff \with { instrumentName = \exercise } { % music } } Thanks! —Josiah ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: numbering a series of exercises
Hi Josiah, is this what you want? http://lists.gnu.org/archive/html/bug-lilypond/2010-10/msg00144.html Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: numbering a series of exercises
On Mon, 09 Mar 2015 02:20:51 +0100 Noeck noeck.marb...@gmx.de wrote: Hi Josiah, is this what you want? http://lists.gnu.org/archive/html/bug-lilypond/2010-10/msg00144.html That got me on the right track, thank you! What I ended up with is a bit simpler: #(define sequence-number 0) #(set! sequence-number (1+ sequence-number)) \score { \new Staff \with { instrumentName = \markup { \concat {#(number-string sequence-number)} . % 1. } } % music } #(set! sequence-number (1+ sequence-number)) \score { \new Staff \with { instrumentName = \markup { \concat {#(number-string sequence-number)} . % 2. } } % music } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user