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


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to