lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining tocItemWithDotsMarkup and different font


From: Nick Payne
Subject: Re: Combining tocItemWithDotsMarkup and different font
Date: Sun, 23 Mar 2014 17:49:57 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 23/03/14 17:43, Nick Payne wrote:

If I want to fill the ToC line between items and page numbers with dots I use tocItemMarkup = \tocItemWithDotsMarkup


If I want to change the font used for ToC items, including the font used for the page numbers, I use something like
 

tocItemMarkup = \markup \override #'(font-name . "Spectrum MT SC") {

\fill-line { \fromproperty #'toc:text \fromproperty #'toc:page }


But I haven't been able to find how to combine the two, to get both the dots and also to override the font used for the page numbers? In the following, for example, I can override the font used for each tocItem, but the page numbers are still in the default font.


Well, I should have waited a couple of minutes before asking. I just had a look in toc-init.ly, and the fix was to grab the definition of tocItemWithDotsMarkup and add it together with the font override to my paper block:

tocItemMarkup = \markup \override #'(font-name . "SpectrumMT SC") \fill-with-pattern #1 #RIGHT .

\fromproperty #'toc:text \fromproperty #'toc:page



reply via email to

[Prev in Thread] Current Thread [Next in Thread]