]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/spacing/alignment-order.ly
Fix #362 (2)
[lilypond.git] / input / lsr / spacing / alignment-order.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 This snippet shows of to use the @code{alignBelowContext} and
6 @code{alignAboveContext} properties, which may be needed for text
7 elements (e.g. lyrics) positioning, but also for musical contents such
8 as ossias.
9 " }
10
11 % ****************************************************************
12 % ly snippet:
13 % ****************************************************************
14
15 \paper {
16   ragged-right = ##t
17 }
18
19 \relative <<
20   \new Staff = "1" { c4 c s2 }
21   \new Staff = "2" { c4  c s2 }
22   \new Staff = "3" { c4  c s2 }
23   { \skip 2
24     <<
25       \lyrics {
26         \set alignBelowContext = #"1"
27         below8 first staff
28       }
29       \new Staff {
30         \set Staff.alignAboveContext = #"3"
31         \times 4/6 {
32           \override TextScript #'padding = #3
33           c8^"this" d_"staff" e^"above" d_"last" e^"staff" f
34         }
35       }
36     >> }
37 >>
38
39
40
41 % ****************************************************************
42 % end ly snippet
43 % ****************************************************************
44