Implementing a counter in markup text: Difference between revisions

mNo edit summary
warning in red
 
Line 38: Line 38:
\markup { Set first counter to 15: \setcounter #"mycounter" #15 }
\markup { Set first counter to 15: \setcounter #"mycounter" #15 }
\markup { It is increasing: \counter #"mycounter" }
\markup { It is increasing: \counter #"mycounter" }
\markup { don't rush it: }
\markup \with-color #red { Don't rush it: }
\markup { Three calls in a row: \counter #"mycounter", \counter #"mycounter" and \counter #"mycounter" }
\markup { Three calls in a row: \counter #"mycounter", \counter #"mycounter" and \counter #"mycounter" }
\markup { It is increasing: \counter #"mycounter" }
\markup { It is increasing: \counter #"mycounter" }