LilyPond Friends,

I wish to format a table of contents in two columns. The attached tiny file
(at least as tiny as I could figure) shows a standard layout, then a clumsy
visual of what I want (which has no automatic page numbering), then sample
music.

I suspect the answer involves scheme programming beyond my skills at this
point...

Thank you for your time and kind response!

Mark
\version "2.22.2"

\bookpart {
  \paper {
    tocTitleMarkup = \markup \column {
      \fill-line { "Table of Contents" }
    }
    tocItemMarkup = \markup \fill-line {
      \fromproperty #'toc:text \fromproperty #'toc:page
    }
    tocItemMarkup = \tocItemWithDotsMarkup
  }
  \markuplist \table-of-contents
  \markup {
    \null
    \hspace #4
    \column {
      \line { \with-color "white"
              "This line is blank, helps center the column line." }
      \line { "Title One" }
    }
    \hspace #1
    \draw-line #'(0 . -8)
    \hspace #2
    \column {
      \null
      \line { "Title Two" }
    }
  }
  \tocItem \markup { "Title One" }
  \score {
    \header { piece = "Title One" }
    \new Staff
      \relative c' {
        c4 c c c
      }
  }
  \tocItem \markup { "Title Two" }
  \score {
    \header { piece = "Title Two" }
    \new Staff
      \relative c' {
        c4 c c c
      }
  }
}

Reply via email to