Using Latex
I need to set my headers and footers on a page by page by basis pending the contents of the page. For example if the page contains
(A) then the header and footer needs to say Apple
If the page contains
(B) then the header and footer needs to say Bravo
Hierarchy for example is (B) is more important than (A). If (B) and (A) are on the same page it needs to always say Bravo on the pages where both are there. If it is just (A) on the page Apple is fine.
Is there an easy way to do this in my style/headers? If not, what path should I be looking down?
Example Code for how it should look like
\documentclass[12pt]{article}
\usepackage{blindtext}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\setlength{\headheight}{1in}
\fancyhf{}
\fancyhead[C]{\bfseries{\Large BRAVO}}
\fancyfoot[C]{\thepage \\ \bfseries{\Large BRAVO}}
(A)\Blindtext[1]
(B)\Blindtext[1]
(A)\Blindtext[1]
(A)\Blindtext[1]
\fancyhead[C]{\bfseries{\Large APPLE}}
\fancyfoot[C]{\thepage \\ \bfseries{\Large APPLE}}
(A)\Blindtext[1]
(A)\Blindtext[1]
(A)\Blindtext[1]
(A)\Blindtext[1]
\end{document}
\markcomands. But without informations about your style, it is impossible to be more exact. You even didn't mention if you are using latex or plain or context or something else. – Ulrike Fischer Feb 12 at 16:09