lilypond-user
[Top][All Lists]
Advanced

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

Re: automatic numbers for examples


From: Reinhold Kainhofer
Subject: Re: automatic numbers for examples
Date: Sun, 11 Jan 2009 00:53:31 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 10. Januar 2009 23:11:35 schrieb Stefan Thomas:
> Dear Kieren,
> thanks! I did'nt think on the possibilitie to do this with latex!

No need to use latex for this. In LilyPond you have the full power of Scheme / 
GUILE available, so you can define your own markup command to display a 
counter value (that automatically increases).

Attached is a sample file. Simply copy the definitions at the beginning of the 
file (counter-alist and the counter and set-counter markup functions) to your 
file and get started!

Cheers,
Reinhold

PS: The LSR is currently down, so I can't add it there :(
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJaTT9TqjEwhXvPN0RAs86AKCySCUrnGrClJn+UYZqgaaYZ/jwiQCeIPij
SNG40un6Cx+HkFeYovy5utE=
=KOVx
-----END PGP SIGNATURE-----

Attachment: counter.pdf
Description: Adobe PDF document

Attachment: counter.ly
Description: Text Data


reply via email to

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