[Top][All Lists]

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

Re: Changing font of "Table of Contents"

From: Patrick McCarty
Subject: Re: Changing font of "Table of Contents"
Date: Sat, 25 Apr 2009 17:12:52 -0700

Hi Nick,

On Sat, Apr 25, 2009 at 4:38 PM, Nick Payne <address@hidden> wrote:
> 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
> }

You want you change the definition of tocTitleMarkup.  The method is
explained here:

Something like this should work:

\paper {
  tocTitleMarkup =
    \markup \override #'(font-name . "SpectrumMT SC") {
      \fill-line { \null "Table of Contents" \null }

\markuplines \table-of-contents


reply via email to

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