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) <noreply@anthropic.com>
This commit is contained in:
shahondin1624
2026-04-02 20:32:47 +02:00
parent bb2f829e2f
commit 63fe1effdb

View File

@@ -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}%