AnswerBun.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!

Related Questions

Aligning List of Figures Page

1  Asked on February 24, 2021 by debayan-paul

   

Make all fraction bars have the same lenght in a set of equations

2  Asked on February 24, 2021 by alejandro-camino

   

TeXstudio and MiKTeX on Windows 10 Annoying Package Manager notification

1  Asked on February 24, 2021 by jose-enrique-calderon

   

Change behaviour of a custom command

2  Asked on February 23, 2021 by agarg

 

How do I make my pdflatex .pdf compatible with Ingramspark

2  Asked on February 23, 2021 by user3486184

     

Appendix labels in table of content

1  Asked on February 23, 2021 by edvard

   

Tikz matrix with array below and braces

1  Asked on February 23, 2021 by johan-wideberg

 

Conflict between exerquiz and animate: no preview

1  Asked on February 23, 2021 by jpg

   

The error entitled ” miktex-makemf did not succeed.” problem

0  Asked on February 23, 2021 by ali-abbasgun

   

drawing a dashed area using tikz

1  Asked on February 23, 2021 by a-h

   

Tikz 2 triangles picture

2  Asked on February 23, 2021

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir