I have following:


And I have a longtable:

\begin{longtable}[ht]{p{.37\textwidth} p{.518\textwidth}}

This longtable will go over two - three pages and I want my textblock displayed on every page, where this longtable will be continued. Currently it is only displayed on first page. (Code above is in a separated file "file.tex")

My code:

\usepackage{listings, mdframed}




In the file.tex is only the textblock* and longtable. Nothing else.

As a workaround I have solved this by defining it in header. So I use


where \text is my \newcommand which is the textblock. But a proper solution to include in file.tex and simply repeat it as hook(?) on every continued page would be great.

  • I think, you should provide more information. Do you have a \endfirsthead statement after this textblock stuff? – user31729 Apr 24 '15 at 9:24
  • I have updated my question – x4k3p Apr 24 '15 at 9:27
  • Yes, but even now, it does not compile. It complains about spacing – user31729 Apr 24 '15 at 9:34
  • I don't have any problems to compile it – x4k3p Apr 24 '15 at 9:46
  • 1
    Well, you've got the whole stuff on your disk ;-) – user31729 Apr 24 '15 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.