## LaTeX forum ⇒ Theses, Books, Title pages ⇒ How to add Chinese characters in header of Masters/Doctoral Thesis format?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Nafees
Posts: 3
Joined: Thu May 23, 2019 6:05 pm

### How to add Chinese characters in header of Masters/Doctoral Thesis format?

Hey! I am using the MasterDoctrolThesis.cls format to write my thesis. This format shows the chapter name and heading of the current page in the header. I want to add Chinese specific character on each page of my thesis. The code of MasterDoctrolThesis.cls for a header is:

I need to add the following characters given in the picture in my header:

Header.png (38.34 KiB) Viewed 1237 times

and need to put just red line with the page number footer like showing in the below given picture

Footer.png (21.75 KiB) Viewed 1237 times

For this the following code I have used, but it could not work:
\pagestyle{fancy} % all pages will follow same fancy header and footer style except title page\fancyhf{} % Clear header and footer\fancyhead[C]{\begin{CJK*}{UTF8}{gkai}        \fontsize{20}{20} \textbf{华\hspace{0.5cm}中\hspace{0.5cm}科\hspace{0.5cm}技\hspace{0.5cm}大\hspace{0.5cm}学\hspace{0.5cm}研\hspace{0.5cm}究\hspace{0.5cm}生\hspace{0.5cm}院} \end{CJK*}}\fancyfoot[C]{\thepage}\renewcommand{\headrulewidth}{0.7pt} % Line at the header visible

How should I do this? Please help me out to this problem?

Johannes_B
Site Moderator
Posts: 4173
Joined: Thu Nov 01, 2012 4:08 pm
Crosspost on TeX.sx
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Nafees
Posts: 3
Joined: Thu May 23, 2019 6:05 pm
Johannes_B wrote:Crosspost on TeX.sx

Please give me the solution, I am very bad stuck

Johannes_B
Site Moderator
Posts: 4173
Joined: Thu Nov 01, 2012 4:08 pm
Copied from TeX.SX:

Add footsepline to the global options.
headsepline, % Uncomment to get a line under the headerfootsepline,% <-------%chapterinoneline, % Uncomment to place the chapter title next to the number on one line%consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout]{MastersDoctoralThesis} % The class file specifying the document structure %\usepackage[utf8]{inputenc} % Required for inputting international characters%\usepackage[T1]{fontenc} % Output font encoding for international characters %\usepackage{mathpazo} % Use the Palatino font by default\usepackage{fontspec}\setmainfont{Noto Serif CJK}\clearpairofpagestyles\cfoot*{\pagemark}\chead{华\hspace{0.5cm}中\hspace{0.5cm}科\hspace{0.5cm}技\hspace{0.5cm}大\hspace{0.5cm}学\hspace{0.5cm}研\hspace{0.5cm}究\hspace{0.5cm}生\hspace{0.5cm}院}\setkomafont{pagehead}{\normalfont\bfseries}\addtokomafont{pageheadfoot}{\color{red!80!black}}