lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing font of "Table of Contents"


From: Nicolas Sceaux
Subject: Re: Changing font of "Table of Contents"
Date: Sun, 26 Apr 2009 11:11:41 +0200

Le 26 avr. 09 à 01:38, Nick Payne a écrit :

I'm putting together a book of pieces, and using a particular font for
headers, footers, titles, subtitles, etc. The one place where I haven't figured out how to get that font used is for the header text for the table of contents that Lilypond creates. Each tocItem has the font I want by using \override #'(font-name etc, but how do I change the font for the actual text "Table of Contents" that Lilypond inserts corresponding to the \markuplines
\table-of-contents in the ly source.

I tried using

\markuplines {
        \override #'(font-name . "SpectrumMT SC")
        \table-of-contents
}

In the same way as inside \markup blocks, but that doesn't parse correctly
and gives errors.

Patrick already answered, but here are some extra information about
why you get an error.

\table-of-content is a markup-list command, that is, it does not build
a single markup, but a list of markups (in that case, the table of content title and lines). \override is a markup command which second argument shall
be a markup, not a markup list, and which returns a single markup, not a
markup list.

You should instead use \override-lines, which is like \override, but accepts
a markup list as its second parameter, and returns a markup list.

Markup lists were introduced to make a piece of text spread over several
pages; indeed, a markup is a solid block, which must be placed on a single page,
whereas a long table of contents may spread over several pages.

nicolas





reply via email to

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