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

2023-04-12 Thread Benjamin Bruce
I think this solution will work best for my purposes. My first thought about making the procedure only calculate the indent was "Why didn't I think of that?" Thanks for working through this with me. Jean, I like your solution, the only problem is that the right-margin applies to the markup as

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

2023-04-12 Thread Jean Abou Samra
Le mercredi 12 avril 2023 à 11:31 -0700, Aaron Hill a écrit : > One option I did not see mentioned was putting the score into a markup > to horizontally center it: > > > asdf = \score { >    \relative { c'4 d e f \break g a b c } >    \layout { line-width = 4\in } > } > > \markup

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

2023-04-12 Thread Aaron Hill
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

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

2023-04-12 Thread Jean Abou Samra
Le lundi 10 avril 2023 à 15:25 -0600, Benjamin Bruce 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

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

2023-04-11 Thread juergen . gruen
Ok. Wasn't aware of that. Still learning too... I changed the procedure so it is just calculating the indent and not creating a layout block... (more code in the layout block necessary) %% \version "2.24.0" #(define (get-indent lw)    (let* (            

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

2023-04-11 Thread Benjamin Bruce
I did try that, but in the output the the score appears twice since there are two layout blocks. Is there no way to merge them? Ѫѯ 2023-04-11 Ѩё 08:36, juergen.gr...@xyz.de ѮѴё: > This >> #{ >> line-width = #(+ lw ind) >> indent = #ind >> short-indent = #ind >> #} > is part of the scheme

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

2023-04-11 Thread juergen . gruen
This #{ line-width = #(+ lw ind) indent = #ind short-indent = #ind #} is part of the scheme procedure. You can use lilypond syntax - put into #{ ...#}  - in scheme procedures. I create a new layout-block in the procedure. You can not nest layout blocks but you can have parallel layout-blocks.

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

2023-04-11 Thread Benjamin Bruce
Quick question, in the scores I am working on I already have a \layout block with several other settings within it. How can I insert just the line-width, indent, and short-indent settings into the already-existent \layout block without creating another one? If I try just #{

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

2023-04-11 Thread Benjamin Bruce
This is exactly what I needed. I figured it could be done with some Scheme code, but that's beyond my knowledge. Thanks so much for your help! Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё: > OK, this was not correct. There is a left-margin-default set and the > indent does not shift the

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

2023-04-10 Thread gruen . weinbach
Hello, maybe % \version "2.24.0" paperWidth = 180.0 lineWidth = 140 ind = #(/ (- paperWidth lineWidth) 2) \paper {   paper-width = \paperWidth } \score {   \layout {     line-width = \lineWidth     indent =  \ind     short-indent =  \ind   }   \repeat unfold 20

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

2023-04-10 Thread Benjamin Bruce
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 ѮѴё: > Hello  > > Maybe > > \version "2.24.1" > \paper {  >   line-width = 180  >   indent = 0  > }  > \score { 

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

2023-04-10 Thread Aaron Hill
On 2023-04-10 2:35 pm, Ya Gloops wrote: ...Bacon ipsum... Ah, I see you are an individual of culture. :) -- Aaron Hill

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

2023-04-10 Thread Ya Gloops
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

How to fix markup horizontal position relative to edge of page

2023-04-10 Thread Benjamin Bruce
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