简体   繁体   中英

Aligning instrument name followed by vertical I and II

I am trying to specify instrumentName like this:

       instrumentName = \markup {
          "Oboe"
          \center-column {
            \line { "I" }
            \line { "II" }
          }
        }

Which looks like this: 仪器名称

But I want the word "Oboe" vertically centered. How do I do that?

Maybe not the perfect solution, but it works:

    \markup {
      \column {
        \vspace #0.5
        "Oboe"
      }
      \center-column {
        \line { "I" }
        \line { "II" }
      }
    }

As pointed out by @OleV.V. in the comments above, the best way of handling this is using the \vcenter command. See example below:

\new Staff \with {
    instrumentName = \markup {
        \vcenter
        "Oboe"
        \center-column {
            \line { "I" }
            \line { "II" }
        }
    }
}
{
    c'4 d'4 e'4 f'4
}

Producing:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM