Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
275 changes: 209 additions & 66 deletions README.md

Large diffs are not rendered by default.

Binary file removed content/.DS_Store
Binary file not shown.
Binary file removed csuthesis_main_template.pdf
Binary file not shown.
68 changes: 42 additions & 26 deletions CSUthesis.cls → csuthesis_template/CSUthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,21 @@ Just choose `xelatex', no `pdflatex' or `latex' and so on.}
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
}
% 协议页的标题按模板是华文新魏
\setCJKfamilyfont{hwxw}{STXinwei}[AutoFakeBold]
\newcommand{\huawenxinwei}{\CJKfamily{hwxw}}

% 重定义ctex定义好的宋体和黑体,以支持伪加粗AutoFakeBold
% 即支持类似word里的给黑体、宋体等中文字体加粗的操作,用\bfseries
% 需要设置主字体,避免正文使用默认字体(Linux可能为FandolSong-Regular)
\setCJKmainfont[AutoFakeBold]{SimSun}
% 设定多种字体定义
\let\heiti\relax
\newCJKfontfamily[hei]\heiti{SimHei}[AutoFakeBold]
\let\songti\relax
\newCJKfontfamily[song]\songti{SimSun}[AutoFakeBold]
\let\TimesNewRoman\relax
\newCJKfontfamily[TimesNewRoman]\TimesNewRoman{Times New Roman}[AutoFakeBold]

% 协议页的标题按模板是华文新魏
\setCJKfamilyfont{hwxw}{STXinwei}[AutoFakeBold]
\newcommand{\huawenxinwei}{\CJKfamily{hwxw}}

% 每行缩进两个汉字
\setlength{\parindent}{2em}
Expand Down Expand Up @@ -628,11 +631,17 @@ Just choose `xelatex', no `pdflatex' or `latex' and so on.}
\renewcommand{\thefigure}{\arabic{section}-\arabic{figure}}
% \renewcommand{\thefigure} {\thesection-\arabic{figure}}

\renewenvironment{figure}
% 图片按照单独的段落进行留白设计,需要在正文排版搭配规范使用
% 此处满足图片段前一行空行,段后一行空行,图片与标题间没有空白
\renewenvironment{figure}[1][]
{
\setlength\abovecaptionskip{4pt} %% 调整标题与图片距离
\setlength\belowcaptionskip{0pt} %% 调整标题与下文距离
\@float{figure}}
\setlength{\parskip}{10pt}% 调整浮动体上下的垂直间距
\setlength{\intextsep}{20pt}% 调整浮动体和正文之间的垂直间距
\setlength{\abovecaptionskip}{0pt}% 删除图片标题与下文的垂直间距
\setlength{\belowcaptionskip}{0pt}% 删除图片标题与上文的垂直间距
\setlength{\floatsep}{20pt}% 删除图片和正文之间的垂直间距
\@float{figure}[#1]% 引入图片,不可与setlength交换顺序
}
{\end@float}

%\captionsetup[subfigure]{labelfont=bf,labelsep=period,labelformat=mysublabelfmt}
Expand Down Expand Up @@ -662,13 +671,33 @@ Just choose `xelatex', no `pdflatex' or `latex' and so on.}
position=top
}

\renewenvironment{table}
{%\vspace{0.3cm} % 调整表格与上文距离
\setlength\abovecaptionskip{0pt} %% 调整标题与表格距离
\setlength\belowcaptionskip{10pt} %% 调整标题与下文距离
\@float{table}}
% 表格按照单独的段落进行留白设计,需要在正文排版搭配规范使用
% 此处满足表格段前一行空行,段后没有空行,表格与标题间没有空白
% 模板对于表格后是否应该有空行没有明确要求(示例有正文段前空行)
% 如果要在表格后删除空行,可将parskip改为20
\renewenvironment{table}[1][]
{
\setlength{\parskip}{10pt}% 调整浮动体上下的垂直间距
\setlength{\intextsep}{20pt}% 调整浮动体和正文之间的垂直间距
\setlength{\abovecaptionskip}{0pt}% 删除表格标题与下文的垂直间距
\setlength{\belowcaptionskip}{0pt}% 调整表格标题与上文的垂直间距
\setlength{\floatsep}{20pt}% 删除表格和正文之间的垂直间距
\@float{table}[#1]% 引入表格,不可与setlength交换顺序
\centering% 将表格居中对齐
}
{\end@float}

% 修改tabular 环境, 设置表格中的行间距为正文行间距.
\let\csu@oldtabular\tabular
\let\csu@endoldtabular\endtabular
\renewenvironment{tabular} {
\bgroup
\renewcommand{\arraystretch}{1.38}
\csu@oldtabular
} {
\csu@endoldtabular\egroup
}

% 算法
% ------------------------------------------------------%
\floatname{algorithm}{算法}
Expand All @@ -694,19 +723,6 @@ Just choose `xelatex', no `pdflatex' or `latex' and so on.}
labelwidth=2em % 包含标签的盒子的正常宽度;若实际宽度更宽,则使用实际宽度。
}

% 表格 %
% ------------------------------------------------------%
% 修改tabular 环境, 设置表格中的行间距为正文行间距.
\let\csu@oldtabular\tabular
\let\csu@endoldtabular\endtabular
\renewenvironment{tabular} {
\bgroup
\renewcommand{\arraystretch}{1.38}
\csu@oldtabular
} {
\csu@endoldtabular\egroup
}

% 表格字号应比正文小,一般五号/10.5pt,但是暂时没法再cls里设置(不然会影响到封面等tabular环境)
% 所以目前只好在主文件里局部\AtBeginEnvironment

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 19 additions & 19 deletions content/appendix.tex → csuthesis_template/content/appendix.tex
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{~}
\vspace{18pt}
\section{附录A (附录名称 )(三号黑体,加粗)(必要时)} % 无章节编号
附录正文…
…(格式参考正文)。
换行示例
%\newpage
%
%{~}
%\vspace{18pt}
%\section{附录B (附录名称 )(三号黑体,加粗)(必要时)} % 无章节编号
%
%附录正文…
%…(格式参考正文)。
%换行示例
%。
{~}
\vspace{18pt}
\section{附录A (附录名称 )(三号黑体,加粗)(必要时)} % 无章节编号

附录正文…
…(格式参考正文)。
换行示例

%\newpage
%
%{~}
%\vspace{18pt}
%\section{附录B (附录名称 )(三号黑体,加粗)(必要时)} % 无章节编号
%
%附录正文…
%…(格式参考正文)。
%换行示例
%。
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 16 additions & 11 deletions csuthesis_main.tex → csuthesis_template/csuthesis_main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
\renewcommand{\headrulewidth}{0pt}
% 中文摘要之前无需页码

\include{content/info}
\include{content/information}



Expand All @@ -48,31 +48,32 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 扉页
% -----------------------------------------------%

\maketitlepage

\clearpage
\mbox{}
\clearpage

\setlength{\headheight}{9.6mm}
\setlength{\footskip}{7.9mm}
\setlength{\textheight}{681.5pt} % 调整版面高度
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 声明页
% -----------------------------------------------%
\setlength{\headheight}{9.6mm}
\setlength{\footskip}{7.9mm}
\setlength{\textheight}{681.5pt}
\announcement
\clearpage
\mbox{}
\clearpage
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 设置页眉和页脚 %
% 全局设置页眉、页脚和页面高度 %
\setlength{\headheight}{9.6mm}
\setlength{\footskip}{7.9mm}
\setlength{\textheight}{681.5pt}
% 套用页面格式模板
\pagestyle{fancy}
\fancyhf[CF]{\TimesNewRoman \zihao{-5} \thepage} % 所有(奇数和偶数)中间页脚,TimesNewRoman小五号
% 所有(奇数和偶数)中间页脚,TimesNewRoman小五号
\fancyhf[CF]{\TimesNewRoman \zihao{-5} \thepage}

\addtocontents{toc}{\vspace{-8pt}}

Expand Down Expand Up @@ -184,6 +185,10 @@

% 正文
{
% 模板在cls文件中定义的页边距未考虑geometry的布局模型
% 导致在页眉与正文第一行之间的距离不为零(25pt)
% 此处为临时补救措施,以实现视觉统一(By WolfBolin)
\setlength{\headsep}{10pt}
% 表格字号应比正文小,一般五号/10.5pt,但是暂时没法再cls里设置(不然会影响到封面等tabular环境)
% 所以目前只好在主文件里局部\AtBeginEnvironment
\AtBeginEnvironment{tabular}{\zihao{5}}
Expand Down Expand Up @@ -226,9 +231,9 @@
\phantomsection %% 解决目录中超链接地址错误问题
\addcontentsline{toc}{section}{参考文献} % 由于参考文献不是section,这句把参考文献加入目录
\zihao{-4} \setmainfont{Times New Roman}
\setlength{\baselineskip}{20pt} % 基准行间距
\bibliographystyle{gbt7714-2015-little}
\bibliography{thesis-references}
\setlength{\baselineskip}{20pt} % 基准行间距
\bibliographystyle{gbt7714/2015-numerical} % 使用2005会带来一些错误
\bibliography{references}

\clearpage
% 附录
Expand Down
File renamed without changes.
Loading