页眉页脚页边距

This commit is contained in:
KAAAsS 2022-03-30 00:48:12 +08:00
parent 6dccd4be25
commit eb653f0388
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE

View File

@ -41,8 +41,7 @@
\def \titleEN#1{\gdef\@titleEN{#1}}
\def \authorEN#1{\gdef\@authorEN{#1}}
\def \supervisorEN#1{\gdef\@supervisorEN{#1}}
\ifmasterdegree \newcommand{\@degree}{} \else \newcommand{\@degree}{} \fi
\newcommand{\thesissubject}{\@degree{}}
\newcommand{\thesissubject}{~~~~}
\renewcommand{\today}{\the\year~~\the\month~~\the\day~}
%% sty packages
@ -60,9 +59,17 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[left=2.5cm,right=2.5cm,bottom=2.5cm,top=2.5cm,%25mm
headheight=1.5cm,%
footskip=1cm %
\RequirePackage[
a4paper,
% 3
% 2
left=3cm,right=3cm,bottom=2.5cm,top=2cm,
% 1.5 = top-height-sep
% Word top+
headheight=0.5cm,
headsep=0.38cm,
% 1.5 = bot-skip
footskip=0.5cm
]{geometry}
%%
@ -78,7 +85,7 @@
\setCJKmainfont{SimSun}
\setCJKfamilyfont{song}{SimSun}
\setCJKfamilyfont{hei}{SimHei}
% \setCJKfamilyfont{kai}{KaiTi_GB2312}
\setCJKfamilyfont{kai}{KaiTi}
\setCJKfamilyfont{fang}{FangSong_GB2312}
\newcommand{\songti}{\CJKfamily{song}}
@ -132,7 +139,7 @@
\newcommand{\absnameen}{\bfseries\sihao} % ``Abstract''
\newcommand{\abskeyen}{\bfseries\sihao} % ``KEY WORDS''
\newcommand{\abskeysen}{\songti\xiaosihao\normalfont} %
\newcommand{\headfont}{\songti\wuhao\normalfont} %
\newcommand{\headfont}{\kaiti\xiaosihao} %
\newcommand{\toctitlefont}{\heiti\xiaoerhao} %
\newcommand{\tocchapterfont}{\heiti\xiaosihao} % X
\newcommand{\tocsectionfont}{\normalsize} % X.Y
@ -332,16 +339,21 @@
%\sethead[ even-left ][ even-center ][ even-right ] { odd-left }{ odd-center }{ odd-right }
\newpagestyle{revtitlestyle}{
\ifchapterx
\sethead[][{\headfont{}\thesissubject}][] %
{}{{\headfont{}\@chapterxname}}{} %
\sethead[][{\headfont\thesissubject}][] %
{}{{\headfont\thesissubject}}{} %
\else
\sethead[][{\headfont{}\thesissubject}][] %
{}{{\headfont{}\chaptertitlename\quad\chaptertitle}}{} %
\sethead[][{\headfont\thesissubject}][] %
{}{{\headfont\thesissubject}}{} %
\fi
\setfoot[][\headfont{}\thepage][] %
{}{\headfont{}\thepage}{}%
\setfoot[][\rightline{ \headfont\thepage }][] %
{}{\rightline{ \headfont\thepage }}{}%
\headrule%线
\setheadrule{1.5pt}%线
\setheadrule{0.5pt}%线
}
\newpagestyle{prerevtitlestyle}{
\headrule%线
\setheadrule{1pt}%线
}
\let\orig@bibliography=\bibliography
@ -357,8 +369,8 @@
}
\renewcommand\frontmatter{ %
\pagenumbering{Roman}% Roman style page number
\pagestyle{plain}
\let\ps@plain=\ps@prerevtitlestyle
\pagestyle{prerevtitlestyle}
\@mainmatterfalse
}%
@ -427,17 +439,19 @@
%使\charpter*{}\chapterx{Abstract}
\newenvironment{abstractCN}{
\chapter*{
~\\ %
%
\centerline{\songti\xiaosanhao {\@title} }
\vskip 1.8em
\absnamecn
}
\addcontentsline{toc}{chapter}{}
% \addcontentsline{toc}{chapter}{}
}{}
\newenvironment{abstractEN}
{
\chapter*{
~\\ %
% Times New Roman
\centerline{\xiaosanhao {\@titleEN} }
%
@ -447,7 +461,7 @@
\vskip 1.8em
\absnameen Abstract
}
\addcontentsline{toc}{chapter}{Abstract}
% \addcontentsline{toc}{chapter}{Abstract}
}{}
\newcommand{\keywordsCN}[1]{