lilypond-user
[Top][All Lists]
Advanced

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

Re: How to fix markup horizontal position relative to edge of page


From: Ya Gloops
Subject: Re: How to fix markup horizontal position relative to edge of page
Date: Mon, 10 Apr 2023 21:35:41 +0000 (UTC)

Hello 

Maybe

\version "2.24.1"
\paper { 
  line-width = 180 
  indent = 0 
} 
\score { 
  \layout { 
    line-width = 125 % score is always left-aligned if this is set
  } 
  \relative c { c' d e f g a b c, d e f g a b c, d e f g a b c, d e f g a b c, 
d e f g a b c, d e f g a b c, d e f g a b c, d e f g a b }
}
\markup \override #'(line-width . 74) \wordwrap-string "Bacon ipsum dolor amet 
hamburger aliqua incididunt sunt in. Excepteur consequat ad laboris anim flank 
jowl. Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto 
leberkas."








Le lundi 10 avril 2023 à 23:27:11 UTC+2, Benjamin Bruce <benjamin@koine.gr> a 
écrit : 





Hello all,
I am trying to layout some documents where the score is centered on the page, 
and underneath it is some markup text that is aligned left, relative to the 
edge of the page. In some documents the score will be wider, in some it will be 
narrower, but the text below it should always be in the same horizontal 
position relative to the page.

If I set line-width in the \paper block, it will be applied to everything, and 
the markup will be aligned relative to the line-width. If I set line-width in 
the \layout block, the markup is independent, but the score is now 
left-aligned, not centered.

I am attaching my (somewhat) tiny example in case this doesn't make sense. Is 
there a way to accomplish what I'm trying to do, even if it's hacky? Thanks for 
your help!


reply via email to

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