# how do i get header chapter and specific page number latex?

\newpage

\pagestyle{fancy}

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}

\itshape

\leftmark}

\fancyfoot[C]{168}

\fancypagestyle{plain}{

\fancyhf{}

\fancyfoot[C]{\168}
}



I want a header like this picture

• Have you looked into the package documentation? May 18, 2018 at 11:47
• I tried yes but with not the results i wanted May 18, 2018 at 12:26
• What document class are you using? Book does this automatically (part of the \chapter definition), more or less. May 18, 2018 at 14:56
• What book?Sorry,but i am really new to latex May 18, 2018 at 17:40
• You should start by reading an introduction. May 19, 2018 at 5:04

You should be more specific to what class or packages you can/can't use, and please provide a MWE next time.

If you use the book class you don't have to add any extra package for that effect.

\documentclass[a4paper]{book}
\usepackage{lipsum}

\begin{document}
\setcounter{page}{237}
\chapter{Introduction}\label{ch:intro}
\newpage

\lipsum[3]
\end{document}


If, however, for any reason you can't use book class or you must use a specific class. Then use fancyhdr:

\documentclass[a4paper]{report}
\usepackage{lipsum}
\usepackage{fancyhdr}