bell notificationshomepageloginNewPostedit profiledmBox

Hoots : Subtitle won't wrap In my piece I have a long subtitle that runs off the sides of the page. What I would really like is to manually add a newline or carriage return, or perhaps at least get wordwrap to work. I've followed - freshhoot.com

10% popularity   0 Reactions

Subtitle won't wrap
In my piece I have a long subtitle that runs off the sides of the page.

What I would really like is to manually add a newline or carriage return, or perhaps at least get wordwrap to work.

I've followed the directions and examples in the docs for using wordwrap - maybe I'm doing something wrong?

Simple Sample Compilable Code

version "2.19.80"

header {
title = "Long Subtitle"
subtitle = markup wordwrap { "THIS IS A TEST OF THE EMERGENCY BROADCAST SYSTEM. REPEAT: THIS IS ONLY A TEST. If this had been an actual emergency, the Attention Signal you just heard would have been followed by official information, news or instructions. " }
}

score { << new Staff << relative c''{ a b c d } >> >> }

What it outputs (the gray indicates the edges of the paper):


Load Full (2)

Login to follow hoots

2 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

Perhaps you could try the following:

subtitle = markup {
column {
wordwrap {
THIS IS A TEST OF THE EMERGENCY BROADCAST SYSTEM. REPEAT: THIS IS ONLY A TEST. If this had been an actual emergency, the Attention Signal you just heard would have been followed by official information, news or instructions.
}
}
}

Note the removal of the quotation marks and nesting markup, column, and wordwrap within each other. You can read more about Formatting Text in the documentation.


10% popularity   0 Reactions

Remove the quotes. That's all what is needed: wordwrap expects individual words to wrap. Alternatively, use wordwrap-string.

The following works fine here:

header {
title = "Test"
subtitle = markup wordwrap {
THIS IS A TEST OF THE EMERGENCY BROADCAST SYSTEM. REPEAT: THIS IS ONLY A TEST. If this had been an actual emergency, the Attention Signal you just heard would have been followed by official information, news or instructions.
}
}

score { c'1 }

You state:

I've followed the directions and examples in the docs for using wordwrap - maybe I'm doing something wrong?

Obviously this cannot be the case here, so if you have suitable suggestions of how the documentation could be improved in order to keep others from making the same mistake, you'd likely want to forward them to the bug report list of LilyPond or at least discuss them on the user mailing list.


Back to top Use Dark theme