I am writing some exercises, for my students.

Those are mostly one line examples, and this time I need a measure to extend over whole line, so one big measure with ending bar, nothing else.

What do I need to override to obtain this effect?

Here is my sample exercise, showing blank guitar strings:

    music = \relative c' {
        \clef treble
        \key c \major

        % enter your music here
        e,1\6 a\5 d\4 g\3 b\2 e\1 \break

This ends on about half page width, and I would like it to take whole line.

addition I also added this, because I do not need barlines in this example, nor time signature.

    \score {

        \new Staff \with {
            fontSize = #+1
                \override StaffSymbol.staff-space = #(magstep +1)
                \omit TimeSignature
                \omit BarLine
        } \music

        \layout {
            ragged-right = ##t
        \midi {}
  • Sorry, was because of bad formatting.
    – branquito
    Commented Nov 5, 2014 at 15:48

1 Answer 1


After changing

    \layout {
        ragged-right = ##t


    \layout {
        ragged-right = ##f

it works!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.