vertically on the baseline of the text. Between systems,
@code{\interscoreline} is inserted vertically to have stretchable space.
The horizontal dimension of the @code{\hbox} is given by the
-@code{linewidth} parameter from LilyPond's @code{\paper} block (using the
-natural line width if its value is@w{ }@minus{}1).
+@code{linewidth} parameter from LilyPond's @code{\paper} block.
+
After the last system LilyPond emits a stronger variant of
@code{\interscoreline} only if the macro @code{\lilypondpaperlastpagefill}
#(define magfact 3.0)
\score { \notes { as'2 r4 }
\paper {
- linewidth = -1.
+ raggedright = ##t
\translator {
\ScoreContext
AccidentalPlacement \override #'right-padding = #3.0
c'4 e''4 e'4 b'4 |
\stemDown b'4 e''4 a'4 e''4|
}
- \paper { linewidth = -1. } }
+ \paper { raggedright = ##t } }
@end lilypond
@cindex regular rhythms
@item singleline
Produce a single, naturally spaced, unjustified line
-(i.e., linewidth = @minus{}1).
+(i.e., @code{raggedright = ##t}).
@item multiline
The opposite of @code{singleline}: Justify and break lines.
a4. g4
}
\paper {
- linewidth = -1.0
+ raggedright = ##t
\translator { \StaffContext
\consists "Measure_grouping_engraver"
}}}
^\markup { \musicglyph #"custodes-mensural-u0" }
}
\paper {
- linewidth = -1.0
+ raggedright = ##t
interscoreline = 1
\translator {
\ScoreContext
c'4 e''4 e'4 b'4 |
b'4 e''4 b'4 e''4|
}
- \paper { linewidth = -1. } }
+ \paper { raggedright = ##t } }
@end lilypond
@cindex SpacingSpanner, overriding properties
\context Staff = down { [c8 c \translator Staff=up <<c d>> c
\translator Staff=down c c c] }
>
- \paper { linewidth = -1 }
+ \paper { raggedright = ##t }
}
@end lilypond
The most basic settings influencing the spacing are @code{indent} and
@code{linewidth}. They are set in the @code{\paper} block. They
control the indentation of the first line of music, and the lengths of
-the lines. If @code{linewidth} set to a negative value, a single
-unjustified line is produced. A similar effect for scores that are
-longer than one line, can be produced by setting @code{raggedright} to
-true in the @code{\paper} block.
+the lines.
+
+If @code{raggedright} is set to true in the @code{\paper}
+block, then the lines are justified at their natural length. This
+useful for short fragments, and for checking how tight the natural
+spacing is.
@cindex page layout
@cindex vertical spacing
Join us now __ and
share the soft -- ware; }
}
-\paper { linewidth = -1. }
+\paper { raggedright = ##t }
}
@end lilypond
Join us now __ and
share the soft -- ware; @}
@}
-\paper @{ linewidth = -1. @}
+\paper @{ raggedright = ##t @}
@}
@end example
@lilypond
\score {
\notes { c'4 d'4 }
- \paper { linewidth = -1.0 }
+ \paper { raggedright = ##t }
}
@end lilypond
@flushright
composer = "F. Bar Baz"
tagline = "small is beautiful" @}
-\paper @{ linewidth = -1.0 @}
+\paper @{ raggedright = ##t @}
%@{
@separate
@example
\paper @{
- linewidth = -1.0 @}
+ raggedright = ##t @}
@end example
A paper block at top level (i.e. not in a @code{\score} block) sets
the default page layout. The following @code{\score} blocks do not
have @code{\paper} sections so the settings of this block are used.
-The variable @code{linewidth} normally sets the length of the systems
-on the page. However, a negative value has a special meaning. If
-@code{linewidth} is less than 0, no line breaks are inserted into the
-score, and the spacing is set to natural length: a short phrase takes
-up little space, a longer phrase takes more space, all on the same line.
+When @code{raggedright} is set, the spacing is set to natural length:
+a short phrase takes up little space, a longer phrase takes more
+space, all on the same line.
@example
%@{
composer = "F. Bar Baz"
tagline = "small is beautiful" @}
-\paper @{ linewidth = -1.0 @}
+\paper @{ raggedright = ##t @}
\score @{
\notes @{ c'4 d'4 @}
c2 g'2 \times 2/3 { f8 e d } c'2 g4
}
\paper {
- linewidth = -1
+ raggedright = ##t
}
}
@end lilypond
PACKAGE_NAME=LilyPond
MAJOR_VERSION=1
MINOR_VERSION=7
-PATCH_LEVEL=16
+PATCH_LEVEL=17
MY_PATCH_LEVEL=
# Use the above to send patches: MY_PATCH_LEVEL is always empty for a
if 'singleline' in opts:
if not linewidth:
- linewidth = 'linewidth = -1.0'
+ linewidth = 'raggedright = ##t'
if not indent:
indent = 'indent = 0.0\mm'
elif not linewidth: