8

It seems like \bold markup in LilyPond automatically adds surrounding spaces. Is there a way to avoid it?

Here is an example:

example

You can clearly see spaces between the brackets and the inside text.

Here is the code:

\version "2.22.1"
\language "italiano"

right = \relative do'' {
    \key sol \minor
    \tempo \markup {\normal-text {Andante con moto [\bold{Неторопливо}]}}
    <fa, sib re>2 <sol sib sol'>2 (
    <fa re' fa>4 <sol do mib>2.)
}

left = \relative do' {
    \key sol \minor
    <sib, sib'>2 <mib, mib'>2 (
    <sib sib'>4 <do do'>2.)
}

\score {
    \new PianoStaff <<
        \new Staff = "right" \right
        \new Staff = "left" { \clef bass \left }
    >>
}
6
  • Just out of interest, why do you want the Russian text bolded? Jul 28 at 16:53
  • 2
    I have an urtext of a piano piece by Musorgsky in a bad quality TIFF file. I am typesetting it to print a nice looking copy, and would like it to look exactly like the original. It plays better this way (part of my mental disability).
    – facetus
    Jul 28 at 17:13
  • 1
    You could save the trouble: Une Larme There's 4 scores there, you could see if one of them looks better than what you've got. (I happen to own the book for the first one.) Jul 28 at 19:55
  • 2
    Besides, I am also having fun typesetting the music.
    – facetus
    Jul 28 at 20:52
  • 1
    Yes, I've played it quite a bit - that's how I recognized it immediately from just the first 4 chords. I'm not a pro by any means, but it is one of the easier pieces in that book. I understand the appeal of typesetting it yourself, just figured I'd let you know that there are alternatives that would save you a bunch of work. Jul 28 at 21:13
9

Use the concatenation function \concat{ }:

\concat{[\bold{Неторопливо}]}


Another option would be to just put the bold function outside of the brackets:

\bold{{[Неторопливо]}}

but this would obviously make the brackets bold too.
(I assume this is not what you want)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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