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: Benjamin Bruce
Subject: Re: How to fix markup horizontal position relative to edge of page
Date: Mon, 10 Apr 2023 16:29:18 -0600
User-agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6

I tried that, but the markup position is still set relative to the paper 
line-width, so if I change the paper line-width, the markup moves with it.

𐑪𐑯 2023-04-10 𐑨𐑑 15:35, Ya Gloops <yagloops@yahoo.fr> 𐑮𐑴𐑑:
> 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]