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



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to