lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

numbering a series of exercises


From: Josiah Boothby
Subject: numbering a series of exercises
Date: Sun, 8 Mar 2015 18:09:21 -0700

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]