scu_thesis_2020 icon indicating copy to clipboard operation
scu_thesis_2020 copied to clipboard

[Issue] 请问如何设置偶数页为"四川大学博士学位论文",奇数页为当前章节名

Open ScGPS opened this issue 9 months ago • 0 comments

您好!

我解决了这个问题.

\newcommand{\makefancyhf}[1]{
\fancypagestyle{plain}{\pagestyle{fancy}}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.8pt}
\fancyhead[CE]{\zihao{-5}\songti
	% The chapter title for even page
	\@title
	%四川大学博士学位论文
	}

\renewcommand{\headrulewidth}{0.8pt}
\fancyhead[CO]{\zihao{-5}\songti
	% The chapter title for odd page
	#1
	%\leftmark
	%四川大学博士学位论文
	}
\fancyfoot[CO,CE]{\zihao{-5}\thepage}
}

改成

\newcommand{\makefancyhf}[1]{
\fancypagestyle{plain}{\pagestyle{fancy}}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.8pt}
\fancyhead[CE]{\zihao{-5}\songti
	% The chapter title for even page
	%\@title
	四川大学博士学位论文
	}

\renewcommand{\headrulewidth}{0.8pt}
\fancyhead[CO]{\zihao{-5}\songti
	% The chapter title for odd page
	%#1
	\leftmark
	%四川大学博士学位论文
	}
\fancyfoot[CO,CE]{\zihao{-5}\thepage}
}

就好了.

ScGPS avatar May 08 '24 03:05 ScGPS