Code: Select all
Code, edit and compile here:
\providepairofpagestyles[thesisSimple]{thesis}{%\automark*[section]{}%}\providepairofpagestyles[thesisSimple]{review}{%\ofoot[\shorttitle/\authorname]{\shorttitle/\authorname}\ifoot[\today]{\today}}\pagestyle{thesis}\ifbool{headsepline}{\KOMAoption{headsepline}{true}}{}\PreventPackageFromLoading[\ClassError{\classname}{Package `fancyhdr' isincompatible\MessageBreak with this class}{The pagesyles are definedusing package `scrlayer-scrpage', please consult the\MessageBreakKOMA-script documentation for details.}]{fancyhdr}\newcommand{\blank@p@gestyle}{empty}\newcommand{\chapter@p@gestyle}{plain}\NewDocumentCommand{\blankpagestyle}{ m }{%\ClassWarning{\classname}{\string\blankpagestyle\space isobsolete,\MessageBreak use \string\setblankpagestyle \space instead}\renewcommand{\blank@p@gestyle}{}{#1}}\NewDocumentCommand{\setblankpagestyle}{ m }{\renewcommand{\blank@p@gestyle}{#1}}\NewDocumentCommand{\setchapterpagestyle}{ m }{\renewcommand{\chapter@p@gestyle}{#1}}\DeclareDocumentCommand\cleardoublepage{}{\clearpage\if@twoside \ifodd\c@page\else\hbox{}\thispagestyle{\blank@p@gestyle}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi%}
I need to add the following characters given in the picture in my header:
and need to put just red line with the page number footer like showing in the below given picture For this the following code I have used, but it could not work:
Code: Select all
Code, edit and compile here:
\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