diff --git a/jlucswthesis.cls b/jlucswthesis.cls index 79abf84..076c2aa 100644 --- a/jlucswthesis.cls +++ b/jlucswthesis.cls @@ -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]{