I use the book
document class and make the headers with fancyhdr
:
\documentclass[12pt, a4paper, reqno, oneside]{book}
\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm}
\usepackage{fancyhdr}
\lhead{gggggggggggggggggggg }
\rhead{\parbox{0.58\linewidth}{\begin{center}\small{\leftmark}\end{center}}}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.2pt}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
\begin{document}
\end{document}
Now I want to change right header on one page, can you help me ??
I tried to use : \thispagestyle{empty}
to delete the header on one page.
Best Answer
I'll do with the assumption that you don't want the header in the chapter starting page:
There's no need for a
\parbox
, unless your titles are unusually long. However I'd set them flush right. If you really need a\parbox
, don't use\begin{center}...\end{center}
in it, butand don't forget to look at the warnings by
fancyhdr
to know the correct value to assign to\headheight
.If you need to change the page style for other pages, define a specific style:
and issue
\thispagestyle{peculiar}
where you need it. By redefining theplain
page style you have a different style on the chapter starting pages.