Dear all,
I need to insert Section name into the middle of Proof.
To be more specific,as the Proof takes multiple pages, I need to insert Section name on the top of each page, although it is still within the same proof.
Any suggestions?
Thanks a lot.
Text Formatting ⇒ How to insert Section in the middle of Proof?
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to insert Section in the middle of Proof?
I dont't understand... in the middle or on top of each page? You confused me there.ychao wrote:Dear all,
I need to insert Section name into the middle of Proof.
To be more specific,as the Proof takes multiple pages, I need to insert Section name on the top of each page, although it is still within the same proof...
What exactly do you want to do? Which document class are you using? What are your current settings for the relevant objects mentioned (the proof, the section)?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: How to insert Section in the middle of Proof?
Sorry for the confusion.
Actually, I want to put the Section name on top of each page for a long proof, BUT not the first page of the proof. That's why I want to insert the Section name into the middle of proof.
Any ideas?
Actually, I want to put the Section name on top of each page for a long proof, BUT not the first page of the proof. That's why I want to insert the Section name into the middle of proof.
Any ideas?
How to insert Section in the middle of Proof?
With the help of the titlesec package you can define a new page style and then apply it from the second page of the proof on, as the following simple example schematically shows:
Code: Select all
\documentclass{article}
\usepackage[pagestyles]{titlesec}
\usepackage{amsthm}
\usepackage{lipsum}
\newpagestyle{proofheader}{%
\sethead{}{Proof of the main result}{}
}
\begin{document}
\section{Proof of the main result}
\begin{proof}
\lipsum[1-7]
{% to keep the page style local
\pagestyle{proofheader}
\lipsum[1-30]\thispagestyle{proofheader}
}
\end{proof}
\section{Another section}
\lipsum[1-20]
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...