[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \fill-with-pattern does not center when line-width is overridden?
From: |
Thomas Morley |
Subject: |
Re: \fill-with-pattern does not center when line-width is overridden? |
Date: |
Thu, 29 Oct 2015 00:38:38 +0100 |
2015-10-28 23:41 GMT+01:00 Federico Bruni <address@hidden>:
> Hello LilyPonders
>
> I want to reduce the distance between the tocItem text and its page number
> while keeping the list *centered on the page*.
> I tried the following but the list is left-aligned:
>
>
> \version "2.19.29"
\paper {
tocItemMarkup =
\markup
\large
\fill-line { %% <====
\override #'(line-width . 80)
\fill-with-pattern #1 #CENTER .
\fromproperty #'toc:text
\fromproperty #'toc:page
}
}
>
> \markuplist \table-of-contents
>
> {
> \tocItem \markup "Piece 1"
> \tocItem \markup "Piece 2"
> \tocItem \markup "Piece 3"
> \repeat unfold 20 g'1
> }