Am 07.10.2011 um 16:16 schrieb Vyatcheslav Yatskovsky:

> Fantastic snippet, thank you Wolfgang!
> 
> My original code is a bit more complicated, it often (but not always) 
> involves artist, tempo and tonality data, like this
> 
> \define[1]\artist{{\itx #1}}
> \define[1]\bpm{{\tfx #1 bpm}}}
> 
> ...
> 
> \item Sway
>       \artist{Pussycat Dolls}
>       \bpm{136-138}   
> \item Fly me to the moon \key{Em}
>       \artist{Julie London}
> \item Hit the road jack \key{Am}
>       \artist{Ray Charles}
>       \bpm{94}
> ...
> 
> How can I incorporate this optional data into song? My guess \song{Hit the 
> road jack \bpm{94}} does not work.

There is a easy way to find out if it works:

1. Create a new file,
2. add the code you want to test and
3. run ConTeXt.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to