I have \appendix in my document and I want to have referenced text throud pages for current section. For example:

Asked
Active
Viewed 196 times
1
Martin Scharrer
- 262,582
Yaroslav Boichuk
- 123
1 Answers
3
In principle you can add a text at the top of the next page(s) using \afterpage from the afterpage package. You should define a macro which \afterpage-s itself but is reset when you don't need it any longer.
Here some principle code:
\documentclass{report}
\usepackage{afterpage}
\usepackage{blindtext}
\begin{document}
\blinddocument
\appendix
\chapter{SOME APPENDIX}
\newcommand\mycontinue{\noindent\makebox[\linewidth][r]{\textbf{Continue SOME APPENDIX}}\afterpage{\mycontinue}}
\afterpage{\mycontinue}
\Blindtext \Blindtext \Blindtext
\Blindtext \Blindtext \Blindtext
\let\mycontinue\relax % disable text
\chapter{Other stuff}
other text \Blindtext
\end{document}
Martin Scharrer
- 262,582
-
1Thank You a lot, that's amazing, but there is issue. When I use \lstinputlisting it's create one blank page, and on other page is two of "Continue SOME APPENDIX". ***************code example***** \section{SOME APPENDIX} \subsection{some text} \lstinputlisting[language=Java]{code/Worker.java} – Yaroslav Boichuk May 04 '12 at 06:14
\appendix. At best add a minimal working example (MWE) that illustrates your basic usage. -- I removed thexetextag because your question is not XeTeX specific. – Martin Scharrer May 03 '12 at 19:15fancyhdrpackage and its capabilities. – Mico May 03 '12 at 20:15