countPercentRepeats example.
* Documentation/user/advanced-notation.itely (Other text markup
issues): remove remark about normal-font. We have \normal-text
2005-08-24 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * Documentation/user/basic-notation.itely (Measure repeats): add
+ countPercentRepeats example.
+
+ * Documentation/user/advanced-notation.itely (Other text markup
+ issues): remove remark about normal-font. We have \normal-text
+
* input/regression/tie-chord.ly: add note about remaining bugs.
* lily/tie.cc (print): try Tie_column::set_directions () if
* Overview of text markup commands::
* Font selection::
* New dynamic marks::
-* Other text markup issues::
@end menu
@end lilypond
-@node Other text markup issues
-@subsection Other text markup issues
-
-To use a normal font within a title, you must define it manually
-
-@example
-#(def-markup-command (normal-font layout props arg) (markup?)
- "Switch to normal text font"
- (interpret-markup layout (cons '((font-series . 'medium) (font-shape . 'upright)) props) arg))
-
-\header@{
- title = \markup@{ ABCD \normal-font ABCD @}
-@}
-@end example
-
-
@node Preparing parts
@section Preparing parts
* Balloon help::
* Blank music sheet::
* Hidden notes::
-* Shape note heads ::
+* Shape note heads ::
* Easy Notation note heads::
* Analysis brackets::
* Coloring objects::
}
@end lilypond
-Isolated percents can also be printed. This is done by putting a multi
-measure rest, with a different print function,
+Measure repeats of more than 2 measures get a counter, if you switch
+on the @code{countPercentRepeats} property,
+
+@lilypond[relative=2, quote,verbatim,raggedright]
+\set countPercentRepeats = ##t
+\new Voice
+ \repeat "percent" 4 { c1 }
+@end lilypond
+
+Isolated percents can also be printed. This is done by putting a multi
+measure rest with a different print function,
+
@lilypond[fragment,verbatim]
\override MultiMeasureRest #'print-function
= #Multi_measure_rest::percent
@end lilypond
+
+
@seealso
Program reference: @internalsref{RepeatSlash},
(define (wordwrap-stencils stencils
- justify base-space line-width
- )
+ justify base-space line-width)
"Perform simple wordwrap, return stencil of each line."
+
(define space (if justify
;; justify only stretches lines.
"Set all font related properties (except the size) to get the default normal text font, no matter what font was used earlier."
;; ugh - latin1
(interpret-markup layout
- (cons '((font-family . roman) (font-shape . upright) (font-series . medium) (font-encoding . latin1)) props)
- arg))
+ (cons '((font-family . roman) (font-shape . upright)
+ (font-series . medium) (font-encoding . latin1))
+ props)
+ arg))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; symbols.