[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: |
Tue, 11 Apr 2023 07:38:16 -0600 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 |
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.gruen@xyz.de 𐑮𐑴𐑑:
> OK, this was not correct. There is a left-margin-default set and the
> indent does not shift the line but makes it shorter(?) Here is another
> approach:
>
> %%%%%%%%%%%%%%%%%%%%%%%%
>
> \version "2.24.0"
>
> #(define (set-score-width lw)
> (let* (
> (pw (ly:output-def-lookup $defaultpaper 'paper-width))
> (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
> (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
> (ind (/ (- pw lmd rmd lw) 2)))
>
> #{ \layout {
> line-width = #(+ lw ind)
> indent = #ind
> short-indent = #ind
> } #} ))
>
> \score {
> #(set-score-width 120)
> \repeat unfold 20 \relative c { c' d e f g a b }
> }
>
> \markup \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."
>
> %%%%%%%%%%%%%%%%%%%%%%%%
>
> Juergen.
- How to fix markup horizontal position relative to edge of page, Benjamin Bruce, 2023/04/10
- Re: How to fix markup horizontal position relative to edge of page, Ya Gloops, 2023/04/10
- RE: How to fix markup horizontal position relative to edge of page, gruen . weinbach, 2023/04/11
- Message not available
- Re: How to fix markup horizontal position relative to edge of page,
Benjamin Bruce <=
- Re: How to fix markup horizontal position relative to edge of page, Benjamin Bruce, 2023/04/11
- RE: Re: How to fix markup horizontal position relative to edge of page, juergen . gruen, 2023/04/11
- Re: How to fix markup horizontal position relative to edge of page, Benjamin Bruce, 2023/04/11
- RE: Re: How to fix markup horizontal position relative to edge of page, juergen . gruen, 2023/04/11
- Re: How to fix markup horizontal position relative to edge of page, Benjamin Bruce, 2023/04/12
Re: How to fix markup horizontal position relative to edge of page, Jean Abou Samra, 2023/04/12