I'm having problems combining the framed
package with the longtable
package. In the example below, if I comment out the \begin{leftbar}... \end{leftbar}
then the table works correctly. But when I add the bar, the continuation header and both the footers disappear from the table.
Please ignore the rpt loop (courtesy of this answer) and the dodgy formatting at the end. I just used that to reduce the number of lines in the example code. The same problem occurs when I write out all the lines by hand.
\documentclass{article}
\usepackage{longtable}
\usepackage{framed}
\usepackage{forloop}% http://ctan.org/pkg/forloop
\newcounter{loopcntr}
\newcommand{\rpt}[2][1]{%
\forloop{loopcntr}{0}{\value{loopcntr}<#1}{#2}%
}
\begin{document}
\begin{leftbar}
\begin{longtable}{|l|l|}
\hline First top & First top\\ \hline\endfirsthead
\hline Top & Top\\ \hline \endhead
\hline Last bottom & Last bottom \\ \hline \endlastfoot
\hline \multicolumn{2}{|l|}{Continued\ldots} \\ \hline \endfoot
\rpt[47]{Left & Right \\} \\
\hline
\end{longtable}
\end{leftbar}
\end{document}