I need the special code header for:
Asked
Active
Viewed 97 times
0
1 Answers
2
In the absence of a MWE, it's hard to know if this solution is right for you. But, here is a proposal using the report document class. (Don't know which document class you are actually using). It uses:
fancyhdrfmtcountto get the chapter number written out as a word (using\numberstringnum{\thechapter}. See Convert any number to corresponding word.\leftmarkgives the chapter name, but we need add\renewcommand{\chaptermark}[1]{\markboth{#1}{}}to remove the word chapter, see Add Chapter Title to Header - without “Chapter 1”.
\documentclass{report}
\usepackage{blindtext} % For dummy text
\usepackage{fmtcount} % Display the value of a counter
\usepackage{fancyhdr} % For fancy headers
\pagestyle{fancy}
\lhead{Chapter \numberstringnum{\thechapter}}
\rhead{\leftmark}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\begin{document}
\chapter{Test}
\chapter{Test}
\chapter{Symmetrical components}
\blindtext[5]
\end{document}
Milo
- 9,440


\documentclass{...}followed by preamble,\begin{document}, some short dummy text as document body and with\end{document}on the end. – Zarko Jul 25 '18 at 07:00