Hi all, I'm just wondering if there's a way to get each subheading in a table of contents to automatically appear on a new page? My table of contents is divided into three sections, and I would like each section to start on a new page:
\version "2.22.1" \paper { tocSubMarkup = \markup \large \column { \hspace #1 \fill-line { \null \fontsize #3 \bold \fromproperty #'toc:text \null } \hspace #1 \vspace #1 } tocInsMarkup = \markup { \fontsize #1.5 \italic \fromproperty #'toc:text } tocTitleMarkup = \markup \bold \column { \fill-line { \null \fontsize #8 \underline "Table of Contents" \null } \hspace #1 \vspace #1 } tocItemMarkup = \markup {\fontsize #1.5 \italic \tocItemWithDotsMarkup } } tocSub = #(define-music-function (parser location text) (markup?) (add-toc-item! 'tocSubMarkup text)) tocIns = #(define-music-function (parser location text) (markup?) (add-toc-item! 'tocInsMarkup text)) scoreOne = \bookpart { \tocSub \markup "Subtitle 1" \tocItem \markup "List of items 1" \score { \relative c' {c1} } } scoreTwo = \bookpart { \tocSub \markup "Subtitle 2" \tocItem \markup "List of items 2" \score { \relative c' {c1} } } scoreThree = \bookpart { \tocSub \markup "Subtitle 3" \tocItem \markup "List of items 3" \score { \relative c' {c1} } } \markuplist \table-of-contents \bookpart { \scoreOne } \bookpart { \scoreTwo } \bookpart { \scoreThree } Thanks for any help, Brent.