页眉页脚页边距

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