Hi all,
I'm updating the various template files I use for producing parts and and
the like and I've come upon an issue when attempting to use \box markup.
I'd like for two-lined instrument names (say, when I have to include a
tonality indication for a transposing instrument) to be formatted pretty
much the same as when everything fits on a single line. I've tried the
following:
\version "2.24.4"
tagline = #f
\book { %%one-line instrument name
\bookOutputSuffix "SingleLine"
\header {
copyright = "[Copyright text]"
}
\paper {
#(layout-set-staff-size 18) %%6.3 mm
#(set-paper-size "letter")
top-margin = 12.5\mm
bottom-margin = 12.5\mm
left-margin = 18\mm
right-margin = 18\mm
}
\markup \center-column {
\vspace #-1.2
\fontsize #3.0 \bold \box \pad-markup #0.5 "KLARINETTE"
}
\markup \fill-line {
\center-column {
\vspace #-0.2
\fontsize #3.0
\bold { "Title" }
"Subtitle"
\vspace #-0.25
\fill-line { " " "Composer" }
\vspace #0.5
}
}
}
\book { %%two-line instrument name
\bookOutputSuffix "DoubleLine"
\header {
copyright = "[Copyright text]"
}
\paper {
#(layout-set-staff-size 18) %%6.3 mm
#(set-paper-size "letter")
top-margin = 12.5\mm
bottom-margin = 12.5\mm
left-margin = 18\mm
right-margin = 18\mm
}
\markup {
\center-column {
\vspace #-1.2
\box \pad-markup #0.5 {
\fontsize #3.0 \bold "KLARINETTE"
\fontsize #3.0 \bold "IN B"
}
}
}
\markup \fill-line {
\center-column {
\vspace #-1.2
\fontsize #3.0
\bold { "Title" }
"Subtitle"
\vspace #-0.25
\fill-line { " " "Composer" }
\vspace #0.5
}
}
}
But that produces separate boxes around the two lines:
[image: image.png]
Slightly changing the order of the markup for the instrument name:
\markup {
\vspace #-1.2
\box \pad-markup #0.5 {
\center-column {
\fontsize #3.0 \bold "KLARINETTE"
\fontsize #3.0 \bold "IN B"
}
}
}
Provides the desired results in terms of look, but the \vspace adjustment
seems to be ignored as a result.
What am I missing to make this work?
Cheers,
Aleksa Jakovljevic,
harpsichordist / organist / musicologist
Montreal, Quebec, Canada