Problem beim vertikalen Zusammenführen von FancyHDR und CALs

Problem beim vertikalen Zusammenführen von FancyHDR und CALs
\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{cals}

\begin{document}

\headheight=81pt

\chead{
\begin{calstable}
\colwidths{{90pt}{90pt}}
\brow
\alignC
\nullcell{ltr}
\cell{b1}
\erow
\brow
\alignC
\nullcell{lr}
\cell{b2}
\erow
\brow
\alignC
\nullcell{lbr}\spancontent{a1, a2, a3}
\cell{b3}
\erow
\end{calstable}
}

\begin{calstable}
\colwidths{{70pt}{70pt}}
%
% 30 row alright,
% 31 row problem, because they begin a new page
%! Incompatible list can't be unboxed.
%\cals@row@dispatch@span ...nvbox \cals@backup@row 
%                                                  \cals@issue@row }\fi \let ...
%l.159 \erow
%           
%? H
%Sorry, Pandora. (You sneaky devil.)
%I refuse to unbox an \hbox in vertical mode or vice versa.
%And I can't open any boxes in math mode.
%
%? X
%No pages of output.
% 
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\end{calstable}

\end{document}

Antwort1

Eine Idee zur Problemumgehung: Lassen Sie die andere Tabelle von einem Nicht-Paket setzen cals. Ich füge ein Beispiel mit der Basisumgebung tabularund eine Vorschau dieser beiden Seiten bei. Dann sollten die unterschiedlichen Dimensionen/Definitionen nicht störend wirken.

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{cals}

\begin{document}
\headheight=81pt

\fancyhead[C]{%
\begingroup
\renewcommand\arraystretch{1.5}
\begin{tabular}{|c|c|c|}
\hline
Hello&World&!!!\\ \hline
!!!&Hello&World\\ \hline
World&!!!&Hello\\ \hline
\end{tabular}
\endgroup
\ifx\relax
\begin{calstable}
\colwidths{{90pt}{90pt}}
\brow
\alignC
\nullcell{ltr}
\cell{b1}
\erow
\brow
\alignC
\nullcell{lr}
\cell{b2}
\erow
\brow
\alignC
\nullcell{lbr}\spancontent{a1, a2, a3}
\cell{b3}
\erow
\end{calstable}%
\fi
}%End of \fancyhead...

\begin{calstable}
\colwidths{{70pt}{70pt}}
%
% 30 row alright,
% 31 row problem, because they begin a new page
%! Incompatible list can't be unboxed.
%\cals@row@dispatch@span ...nvbox \cals@backup@row 
%                                                  \cals@issue@row }\fi \let ...
%l.159 \erow
%           
%? H
%Sorry, Pandora. (You sneaky devil.)
%I refuse to unbox an \hbox in vertical mode or vice versa.
%And I can't open any boxes in math mode.
%
%? X
%No pages of output.
% 
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\brow
\cell{column1}
\cell{column2}
\erow
\end{calstable}

\end{document}

mwe

verwandte Informationen