TransWikia.com

How in the chapter first page the left header title page?

TeX - LaTeX Asked by H.Gorbanzad on December 23, 2020

How can the title of the chapter be on the left side header of the first page and be done according to the format to continue the chapter?

documentclass[12pt,a4paper]{book}
%%%%%%%%%%%%Tikz%%%%
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{fontspec}
usepackage{titlesec}

pagestyle{fancy}
% with this we ensure that the chapter and section
newfontfamilyheadingfont[]{Arial}
% headings are in lowercase.
renewcommand{chaptermark}[1]{%
markboth{thechapter #1}{}}
renewcommand{sectionmark}[1]{%
markright{thesection #1}}
fancyhf{} % delete current header and footer
fancyhead[LE,RO]{smallheadingfontthepage}
fancyhead[LO]{smallheadingfontrightmark}
fancyhead[RE]{smallheadingfontleftmark}
fancyfoot[LE]{smallheadingfont{Dissertation Vorname Name}}
fancyfoot[LO]{smallheadingfont{Dissertation Vorname Name}}
renewcommand{headrulewidth}{0.5pt}
renewcommand{footrulewidth}{0.5pt}
addtolength{headheight}{0.5pt} % space for the rule
fancypagestyle{plain}{%
fancyhead{} % get rid of headers on plain pages
renewcommand{headrulewidth}{0pt} % and the line
}

titleformat{chapter}[hang] 
{normalfonthugebfseriessffamily}{thechapter}{40pt}{Huge}   
titlespacing*{chapter}{0pt}{0pt}{30pt}

titlelabel{thetitle.quad}

begin{document}
chapter{Introduction}
thispagestyle{fancy}
lhead{1~~Introduction}


lipsum[1-20]
end{document}

Fig:1
enter image description here

Fig:2
enter image description here

Fig:3
enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP