Based on egregs answer to "Breakable vboxes" I coded the following environment. It collects its vertical input and then breaks it using plainTeX's internal breaking mechanism (\vsplit) and places both part in an \fbox. This will not work for large material which break across three pages, but this feature could be added.
\documentclass{article}
\usepackage{blindtext}% just for example text
\newbox\totalbox
\newbox\partialbox
\newdimen\partialboxdim
\newenvironment{continueframe}{%
\advance\linewidth-2\fboxsep
\advance\linewidth-2\fboxrule
\hsize=\linewidth
\partialboxdim=\dimexpr\pagegoal-\pagetotal-\pageshrink-6pt-\baselineskip\relax
\setbox\totalbox=\vbox\bgroup\begingroup
}{%
\endgraf\endgroup\egroup
\setbox\partialbox=\vsplit\totalbox to\partialboxdim
\par\smallskip
\hbox{\fbox{\vbox{\unvbox\partialbox}}}\nopagebreak
\par\smallskip\mbox{}\hfill\textbf{Continued on next page}\par\pagebreak%
\hbox{\fbox{\vbox{\noindent\textbf{Contuined from last page}\par\smallskip\unvbox\totalbox}}}%
\par\medskip
}
\begin{document}
\blindtext
\blindtext
\blindtext
\begin{continueframe}
\blindtext
\blindtext
\blindtext
\end{continueframe}
\blindtext
\blindtext
\blindtext
\end{document}
You can easily achieve what you want using tikz placing a node at current page.north with anchor=north and a yshift specified through an argument, controlling the vertical separation between the top border of the page and the top border of the node:
Best Answer
Based on egregs answer to "Breakable vboxes" I coded the following environment. It collects its vertical input and then breaks it using plainTeX's internal breaking mechanism (
\vsplit
) and places both part in an\fbox
. This will not work for large material which break across three pages, but this feature could be added.