[Tex/LaTex] Chapter name in the header with \chapter*

chaptersheader-footer

I need to display the chapter name with the \chapter* command to the left side of the header. This is one example of what I tried:

    \documentclass[12pt,a4paper,oneside]{book}
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \lhead{}
    \chead{}
    \rhead{\fancyplain{}{\textit{\leftmark}}}

    \begin{document}
    \chapter*{\centerline{Chapter Name}}

    \end{document}

How can I do this?

Best Answer

Try

\chapter*{chapter name}
\markboth{chapter name}{}

And consider using titlesec package rather using \centerline as a visual formatting approach.

Related Question