I am working with a long table placed sideways using the longtable and pdflscape packages.
While I have no trouble with the table formatting while it remains on the first page, it sort of breaks down once it goes on to the second page.
My code is:
\documentclass[a4paper, 11pt, oneside]{article}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{pdflscape}
\usepackage{arydshln}
\newcommand{\Mj}{M_{\bar{J}}}
\newcommand{\Hkj}{H_{\mathcal{K}\bar{J}}}
\newcommand{\Mkj}{M_{\mathcal{K}\bar{J}}}
\newcommand{\Hekj}{\left( \Hkj - \eta_{\mathcal{K} \bar{J}}\right)}
\begin{document}
\begin{landscape}
\begin{center}
\begin{longtable}{|c|c|c|c|c|c|}
%% Headers and footers
\caption{}\label{tab: Glue1 }\\
\hline
\textbf{Terms in} $\bm{\delta D_{\mu}M_{\bar{J}}^{(\Lambda_{1})}}$ & \textbf{Terms in} $\bm{\delta D_{\mu}M_{\bar{J}}^{(\alpha_{3})}}$ & \multicolumn{2}{|c|}{\textbf{in }$\bm{\delta D_{\mu}M_{\bar{J}}}$ \textbf{t.b.t.}} & \multicolumn{2}{|c|}{\textbf{in }$\bm{\delta D_{\mu}M_{\bar{J}}}$ \textbf{a.c.}} \\ \hline
\endfirsthead
\multicolumn{6}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\hline \textbf{Terms in} $\bm{\delta D_{\mu}M_{\bar{J}}^{(\Lambda_{1})}}$ & \textbf{Terms in} $\bm{\delta D_{\mu}M_{\bar{J}}^{(\alpha_{3})}}$ & \multicolumn{2}{|c|}{\textbf{in }$\bm{\delta D_{\mu}M_{\bar{J}}}$ \textbf{t.b.t.}} & \multicolumn{2}{|c|}{\textbf{in }$\bm{\delta D_{\mu}M_{\bar{J}}}$ \textbf{a.c.}} \\ \hline
\endhead
\hline \multicolumn{6}{|r|}{{Continued on next page}} \\ \hline
\endfoot
\hline \hline
\endlastfoot
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% C1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% Bloque 1
\multirow{2}{*}{-} & $i \lambda^{(\alpha_{1})}\partial_{\mu} \Phi^{(\alpha_{2})}_{\bar{J}}$ & \multirow{2}{*}{$i\lambda_{\mathcal{K}} \star \partial_{\mu}\Mj$} & \multirow{2}{*}{\eqref{eq: deltaDmuMjtbt1}} & \multirow{2}{*}{$i\lambda_{\mathcal{K}} \star \partial_{\mu}\Mj$} & \multirow{12}{*}{\eqref{eq: deltaDmuMjac1}} \\
& $-i \lambda^{(\alpha_{2})}\partial_{\mu} \Phi^{(\alpha_{1})}_{\bar{J}}$ & & & & \\ \cline{1-5}
%%%%% Bloque 2
\multirow{4}{*}{-} & $-g \lambda^{(\alpha_{1})}A_{\mu}^{(-\alpha_{1})} \Phi^{(\alpha_{3})}_{\bar{J}}$ & \multirow{2}{*}{$g \partial^{\mathcal{K}}\lambda \star A_{\mu} \star \Mj \, +$} & \multirow{2}{*}{\eqref{eq: deltaDmuMjtbt4}} & \multirow{4}{*}{$-g \lambda \star A_{\mu} \star \Mj$} & \\
& $-g \lambda^{(\alpha_{1})}A_{\mu}^{(-\alpha_{1})} \Phi^{(\alpha_{3})}_{\bar{J}}$ & & & & \\ \cdashline{2-4}
& $g A_{\mu}^{(\alpha_{3})}\lambda^{(\alpha_{1})} \Phi^{(-\alpha_{1})}_{\bar{J}}$ & \multirow{2}{*}{$-g \partial^{\mathcal{K}}A_{\mu} \star \lambda \star \Mj $} & \multirow{2}{*}{\eqref{eq: deltaDmuMjtbt7}} & & \\
& $g A_{\mu}^{(\alpha_{3})}\lambda^{(\alpha_{2})} \Phi^{(-\alpha_{2})}_{\bar{J}}$ & & & & \\ \cline{1-5}
%%%%% Bloque 3
\multirow{3}{*}{-} & \multirow{2}{*}{$-g \alpha_{2m} \lambda^{(\alpha_{1})}A_{\mu}^{m(0)} \Phi^{(\alpha_{2})}_{\bar{J}}$} & $ig A_{\mu}^{\mathcal{K}} \star \partial_{\mathcal{K}}\lambda \star \Mj \, +$ & \multirow{2}{*}{\eqref{eq: deltaDmuMjtbt5}} & \multirow{3}{*}{$ig\lambda \star A_{\mu}^{\mathcal{K}} \star \partial_{\mathcal{K}}\Mj$} & \\
& & $ig A_{\mu}^{\mathcal{K}} \star \lambda \star \partial_{\mathcal{K}}\Mj \, +$ & & & \\ \cdashline{3-4}
&$g \alpha_{1m} \lambda^{(\alpha_{2})}A_{\mu}^{m(0)} \Phi^{(\alpha_{1})}_{\bar{J}}$ & $-ig \partial_{\mathcal{K}}\lambda \star A_{\mu}^{\mathcal{K}} \star \Mj$ & \eqref{eq: deltaDmuMjtbt2} & &\\ \cline{1-5}
%%%%% Bloque 4
\multirow{3}{*}{-} & \multirow{2}{*}{$g \alpha_{2m} \lambda^{(\alpha_{1})}A_{\mu}^{(\alpha_{2})} \Phi^{m(0)}_{\bar{J}}$} & $-ig A_{\mu}\star \Hekj \star \partial^{\mathcal{K}}\lambda \, +$ & \eqref{eq: deltaDmuMjtbt3} & \multirow{3}{*}{$-ig\lambda \star \partial^{\mathcal{K}} A_{\mu} \star \Hekj$} & \\ \cdashline{3-4}
& & $-ig \partial^{\mathcal{K}}\lambda \star A_{\mu} \star \Hekj \, +$ & \multirow{2}{*}{\eqref{eq: deltaDmuMjtbt6}} & & \\
& $-g \alpha_{1m} \lambda^{(\alpha_{2})}A_{\mu}^{(\alpha_{1})} \Phi^{m(0)}_{\bar{J}}$ & $-ig \lambda \star \partial^{\mathcal{K}}A_{\mu} \star \Hekj$ & & & \\ \hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% C2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% Bloque 1
$i \Lambda_{1\mathcal{K}}\lambda^{\mathcal{K}(0)}\partial_{\mu} \Phi^{1}_{\bar{J}}$ & $i \alpha_{3m} \lambda^{m(0)} \partial_{\mu}\Phi^{(\alpha_{3})}_{\bar{J}} $ & $\lambda_{\mathcal{K}} \star \partial^{\mathcal{K}}\partial_{\mu} \Mj $ & \eqref{eq: deltaDmuMjtbt1} & $\lambda_{\mathcal{K}} \star \partial^{\mathcal{K}}\partial_{\mu} \Mj $ & \multirow{6}{*}{\eqref{eq: deltaDmuMjac2}} \\ \cline{1-5}
%%%%% When I add this part, table breaks down.
%%%%% Bloque 2
\multirow{2}{*}{-} & $-g \alpha_{3m} \lambda^{m(0)}A_{\mu}^{(\alpha_{1})} \Phi^{(\alpha_{2})}_{\bar{J}}$ & $ig \lambda^{\mathcal{K}} \star \partial_{\mathcal{K}}A_{\mu} \star \Mj$ & \eqref{eq: deltaDmuMjtbt2} & $ig \lambda_{\mathcal{K}} \star \partial^{\mathcal{K}}A_{\mu} \star \Mj \, + $ & \\ \cdashline{3-4}
& $g \alpha_{3m} \lambda^{m(0)}A_{\mu}^{(\alpha_{2})} \Phi^{(\alpha_{1})}_{\bar{J}}$ & $ig A_{\mu} \star \lambda_{\mathcal{K}} \star \partial^{\mathcal{K}} \Mj$ & \eqref{eq: deltaDmuMjtbt3} & $ig \lambda_{\mathcal{K}} \star A_{\mu} \star \partial^{\mathcal{K}}\Mj $ & \\ \cline{1-5}
%%%%% Bloque 3
$-g \Lambda_{1\mathcal{K}}\lambda^{\mathcal{K}(0)} \Lambda_{1m}A_{\mu}^{m(0)} \Phi^{1}_{\bar{J}}$ & $-g \alpha_{3m} \lambda^{m(0)}\alpha_{3\mathcal{K}}A_{\mu}^{\mathcal{K}(0)} \Phi^{(\alpha_{3})}_{\bar{J}}$ & $g A_{\mu}^{\mathcal{K}} \star \lambda_{\mathcal{P}} \star \partial_{\mathcal{K}} \partial^{\mathcal{P}}\Mj$ & \eqref{eq: deltaDmuMjtbt5} & $g \lambda_{\mathcal{K}} \star A_{\mu}^{\mathcal{P}} \star \partial^{\mathcal{K}} \partial_{\mathcal{P}}\Mj$ & \\ \cline{1-5}
%%%%% Bloque 4
$-\sqrt{2} g \Lambda_{1\mathcal{K}}\lambda^{\mathcal{K}(0)} A_{\mu}^{(\alpha_{3})} \Phi^{4}_{\bar{J}}$ & \multirow{2}{*}{$g \alpha_{3m} \lambda^{m(0)}\alpha_{3\mathcal{K}}A_{\mu}^{(\alpha_{3})} \Phi^{\mathcal{K}(0)}_{\bar{J}}$} & $-g \lambda^{\mathcal{P}} \star \partial^{\mathcal{K}} \partial_{\mathcal{P}}A_{\mu} \star \Hekj \, +$ & \eqref{eq: deltaDmuMjtbt6} & $-g \lambda_{\mathcal{K}} \star \partial^{\mathcal{K}} \partial_{\mathcal{P}}A_{\mu} \star \left(H_{\mathcal{P}\bar{J}} - \eta_{\mathcal{P}\bar{J}}\right) \, + $ & \\ \cdashline{3-4}
$-\sqrt{2} g \Lambda_{1\mathcal{K}}\lambda^{\mathcal{K}(0)} A_{\mu}^{(\alpha_{1})} \Phi^{2}_{\bar{J}}$ & & $-g \partial^{\mathcal{K}} A_{\mu} \star \lambda^{\mathcal{P}} \star \partial_{\mathcal{P}}\Hekj $ & \eqref{eq: deltaDmuMjtbt7} & $-g\lambda_{\mathcal{K}} \star \partial_{\mathcal{P}}A_{\mu} \star \partial^{\mathcal{K}}\left(H_{\mathcal{P}\bar{J}} - \eta_{\mathcal{P}\bar{J}} \right) $ & \\ \hline
\hline
\end{longtable}
\end{center}
\end{landscape}
\end{document}
There are some references which will make no sense but that is unimportant. The horrendous result is:
Any clues as to why vertical lines go on to behave like this?
Thank you
\textwidth
and\textheight
in your document? Alternatively, could you tell us how wide the margins are?a4paper
, for a\paperheight
(not\textheight
) equal to 297mm. Yet you also report\textheight=975.2pt
, or 342.75mm. What's going on?\textheight
is about 45mm larger than\paperheight
. That's seriously problematic.