+2004-11-20 Graham Percival <gperlist@shaw.ca>
+
+ * Documentation/user/notation.itely: added info about typesetting
+ boxed bar numbers.
+
2004-11-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
* flower/interval.cc (T_to_string): gcc4 fixes.
@c umm, is the manual the right place for feature requests? :) -gp
@c FIXME - should make that tunable.
+To use boxed bar numbers instead of letters, see @ref{Bar numbers}.
+
The mark is incremented automatically if you use @code{\mark
\default}, but you can also use an integer argument to set the mark
manually. The value to use is stored in the property
@subsection Bar numbers
-@cindex bar numbers
+@cindex Bar numbers
@cindex measure numbers
@cindex @code{currentBarNumber}
@lilypondfile[raggedright,quote]{bar-number-regular-interval.ly}
+Bar numbers can be typeset manually by tweaking the
+@code{markFormatter} property
+
+@lilypond[verbatim,raggedright,quote]
+\relative c' {
+ \set Score.markFormatter
+ = #(lambda (mark context)
+ (make-bold-markup
+ (make-box-markup (number->string (ly:context-property context 'currentBarNumber)))))
+
+ c1 \bar "||" \mark \default c1 c1 \mark \default c1 \bar "|."
+}
+@end lilypond
+
Bar numbers can be manually changed by setting the
@code{Staff.currentBarNumber} property