Code: Select all
Code, edit and compile here:
\documentclass[a4paper,8pt]{report}\usepackage[a4paper]{geometry}\setlength{\textwidth} {374pt}\setlength{\hoffset} {22pt}\usepackage{fancyhdr}\pagestyle{fancy}\renewcommand{\chaptermark}[1]{\markboth{#1}{}}\renewcommand{\sectionmark}[1]{\markright{#1}}\fancypagestyle{plain}{%\fancyhf{}\setlength{\headheight}{1cm}\setlength{\headwidth}{\textwidth}\fancyhead[L]{\footnotesize left head}\fancyhead[R]{\footnotesize right head}\fancyfoot[L]{\footnotesize \nouppercase{\leftmark}}\fancyfoot[C]{\footnotesize \nouppercase{\rightmark}}\fancyfoot[R]{\footnotesize \thepage}\renewcommand{\headrulewidth}{0.0pt}\renewcommand{\footrulewidth}{0.1pt}}\begin{document}\chapter{Lorum}Lorem ipsum dolor sit amet.\vspace{500pt}\section{Maecenas}Mi Aliquam convallis scelerisque.\end{document}