From 63fe1effdb0ca2743ec1d3781f73df5d980ecccc Mon Sep 17 00:00:00 2001 From: shahondin1624 Date: Thu, 2 Apr 2026 20:32:47 +0200 Subject: [PATCH] Fix TOC: embed title in longtable to prevent blank first page Move "Inhaltsverzeichnis" title into the longtable as a multicolumn first row so it stays with the table content. Remove duplicate header on continuation pages. Reduce header rotation to 60 degrees with scriptsize font. Co-Authored-By: Claude Opus 4.6 (1M context) --- songbook-style.sty | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/songbook-style.sty b/songbook-style.sty index aeb0409..0e88c62 100644 --- a/songbook-style.sty +++ b/songbook-style.sty @@ -170,14 +170,12 @@ % --- Rotated column header --- \newcommand{\rotheader}[1]{% - \begin{turn}{70}\footnotesize\textbf{#1}\end{turn}% + \begin{turn}{60}\scriptsize\textbf{#1}\end{turn}% } % --- Print the song TOC table --- \newcommand{\printsongtoc}{% \thispagestyle{fancy}% - {\Large\bfseries Inhaltsverzeichnis\par}% - \vspace{5mm}% \footnotesize \rowcolors{2}{tocrowgray}{white}% \begin{longtable}{% @@ -189,21 +187,15 @@ >{\centering\arraybackslash}p{0.07\textwidth}|% >{\centering\arraybackslash\columncolor{tocheadgray}}p{0.09\textwidth}% } + \multicolumn{7}{l}{\Large\bfseries Inhaltsverzeichnis} \\[2mm] & \rotheader{BuLiBu} & \rotheader{CL (gr.)} & \rotheader{SwA} & \rotheader{Barde} & \rotheader{LiBock} - & \rotheader{\normalsize Carmina\newline\normalsize Leonis} \\ + & \rotheader{Carmina\newline Leonis} \\ \hline \endfirsthead - & \rotheader{BuLiBu} - & \rotheader{CL (gr.)} - & \rotheader{SwA} - & \rotheader{Barde} - & \rotheader{LiBock} - & \rotheader{\normalsize Carmina\newline\normalsize Leonis} \\ - \hline \endhead \InputIfFileExists{\jobname.songtoc}{}{}% \end{longtable}%