lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \markup \score with independent \paper settings


From: Michael Käppler
Subject: Re: \markup \score with independent \paper settings
Date: Thu, 21 Feb 2019 19:32:01 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi Urs,
like this?
I think it does what is specified; it aligns the center of the markup-score to the note you attached it to.
I'm not sure, however, if this is what you want to achieve.

\version "2.19.80"

\paper {
  ragged-right = ##f
  system-count = 1
}

{
  c'1
  \override TextScript.self-alignment-X = #CENTER
  c'1 ^\markup \score {
    \new Staff {
      c''1
    }
    \layout {
      indent = #0
      ragged-right = ##t
      \context {
        \Voice
         \override NoteHead.color = #red
      }
    }
  }
  c'1
}



Am 21.02.2019 um 19:07 schrieb Urs Liska:

Is it possible to initialize a score created through \markup \score with a fresh set of (or specific) \paper settings that are independent from the surrounding document?

I'm using \markup \score to center some music in a measure. However, when I have a paper setting that justifies the last system the new score also has the full line-width. See the following example where the "red" score is "properly" centered over the middle measure, but of course ridiculously wide.

Any suggestion?
Thanks
Urs

\version "2.19.82"

\paper {
  ragged-right = ##f
  system-count = 1
}

{
  c'1
  \override TextScript.self-alignment-X = #CENTER
  c'1 ^\markup \score {
    \new Staff {
      c''1
    }
    \layout {
      \context {
        \Voice
         \override NoteHead.color = #red
      }
    }
  }
  c'1
}

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

[Prev in Thread] Current Thread [Next in Thread]