On 05/11/2025 13:49, Stephan Schöll wrote:
So I'm thinking about
- calling \table-of-contents but make it invisible (or worse: print it
as a last page and eventually cut this page off); or
- overriding \table-of-contents so that it doesn't output anything
While having no clue about Scheme and not being able to lead ChatGPT
to a working solution, I’m about to give up — unless someone here
knows a simple fix off the top of their head.
Perhaps this is suitable.
\version "2.24.0"
\paper {
markup-system-spacing = #0
tocTitleMarkup = \markup \null
tocItemMarkup = \markup \null
}
\markuplist { \override #'(baseline-skip . 0) \table-of-contents }
\score {
\relative c' {
\sectionLabel "Intro"
\tocItem \markup "Intro"
\repeat unfold 4 {
c d e d
}
\break
\sectionLabel "Verse"
\tocItem \markup "Verse 1"
\repeat unfold 4 {
e f g f
}
\pageBreak
\sectionLabel "Chorus"
\tocItem \markup "Chorus"
\repeat unfold 4 {
g a c a
}
}
}
--
Timothy Lanfear, Bristol, UK.