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
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
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
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
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* (
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
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.
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
#{
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
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
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 {
On 2023-04-10 2:35 pm, Ya Gloops wrote:
...Bacon ipsum...
Ah, I see you are an individual of culture. :)
-- Aaron Hill
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
13 matches
Mail list logo