1\version "2.19.26"
2
3\header {
4  texidoc = "@code{OneStaff} contexts can be used for letting several
5contexts use the same vertical position.  This example shows chords being
6placed in a staff and immediately following it."
7}
8
9\layout {
10  ragged-right = ##t
11}
12
13\new OneStaff
14{
15  << % First element in <<>> so that it is not kept alive spuriously
16    \new Staff
17    {
18      c'4 d' e' f'
19      \chords \with { \override ChordName.Y-offset = -1 }
20      { d1:m7 b1:min7.5- }
21    }
22  >>
23  \chords \with { \override ChordName.Y-offset = -1 }
24  { d1:m7 b1:min7.5- }
25}
26