From 750ce57eb74c27a0e85e03d1f76c8c8a41e19efd Mon Sep 17 00:00:00 2001
From: gpercival <gpercival>
Date: Sat, 20 Nov 2004 21:19:34 +0000
Subject: [PATCH] Added info about boxed bar numbers.

---
 ChangeLog                         |  5 +++++
 Documentation/user/notation.itely | 18 +++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index aeb3a14b61..d44fec5bcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/Documentation/user/notation.itely b/Documentation/user/notation.itely
index e66b2368a7..b37a61d8b8 100644
--- a/Documentation/user/notation.itely
+++ b/Documentation/user/notation.itely
@@ -4995,6 +4995,8 @@ c1 \mark \default
 @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
@@ -5070,7 +5072,7 @@ Examples: @inputfileref{input/@/regression,rehearsal@/-mark@/-letter@/.ly},
 @subsection Bar numbers
 
 
-@cindex bar numbers
+@cindex Bar numbers
 @cindex measure numbers
 @cindex @code{currentBarNumber}
 
@@ -5085,6 +5087,20 @@ whose source is available as
 
 @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
 
-- 
2.39.5