Latex-PG-SJTU
Author
oliverck
Last Updated
2년 전
License
Creative Commons CC BY 4.0
Abstract
This is a thesis template of postgraduate for Shanghai Jiao Tong University. The github repository: https://github.com/oliverck/Latex-PG-SJTU
This is a thesis template of postgraduate for Shanghai Jiao Tong University. The github repository: https://github.com/oliverck/Latex-PG-SJTU
\documentclass[UTF8,a4paper,12pt]{ctexart}
%\usepackage{ctex}
\usepackage{amsmath}
\numberwithin{equation}{section}
\allowdisplaybreaks[4] %多行公式中换页
\usepackage{array}
\usepackage[font=small,font=bf,labelsep=none]{caption}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{dutchcal}
\usepackage{color}
\usepackage{graphicx} %插入图片
\usepackage{times}
\usepackage{mathptmx}
\usepackage{fancyhdr} %页眉页脚
\usepackage[backend=biber, style=gb7714-2015]{biblatex}
\usepackage{bicaption}
% 文献表条目间的间距
\setlength{\bibitemsep}{0pt}
% 导入参考文献数据库
\addbibresource{main.bib}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\usepackage{setspace}
\setlength{\baselineskip}{20pt}
\newcommand*{\circled}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
circle (.5em) node {\makebox[1em][c]{\small #1}};}}
\usepackage{hyperref} %目录
\hypersetup{colorlinks=true,linkcolor=black}
\captionsetup[figure][bi-second]{name=Figure} %设置图的英文编号前缀
\captionsetup[table][bi-second]{name=Table} %设置表的英文编号前缀
\numberwithin{equation}{section}%公式按章节编号
\numberwithin{figure}{section}%图表按章节编号
\numberwithin{table}{section}
\renewcommand {\thefigure} {\thesection{}-\arabic{figure}}%设定图片的编号。这样设置的实现效果为图1-1
\renewcommand {\thetable} {\thesection{}-\arabic{figure}}
\usepackage[justification=centering]{caption} %保持居中,防止标题过长导致左对齐
\usepackage{caption}
\captionsetup{font={small},labelsep=quad}%文字5号,之间空一个汉字符位。
\captionsetup[table]{font={bf}} %表格表号与表题加粗
\usepackage{appendix}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} %为目录中section补上引导点
\usepackage{titletoc}
\titlecontents{section}[0pt]{\addvspace{6pt}\filright\bf}%
{\contentspush{\thecontentslabel \quad }}%
{}{\titlerule*[8pt]{.}\contentspage}
\makeatletter %双线页眉
\def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi%
\hrule\@height 1.5pt \@width\headwidth\vskip1.5pt%上面线为1pt粗
\hrule\@height 0.5pt\@width\headwidth %下面0.5pt粗
\vskip-2\headrulewidth\vskip-1pt} %两条线的距离1pt
\vspace{6mm}} %双线与下面正文之间的垂直间距
\makeatother
% \CTEXsetup[format={\heiti \zihao{3} \bfseries \center}]{section}
% \CTEXsetup[number={第\chinese{section}章}]{section}
\ctexset{section={
format={\heiti \zihao{3} \bfseries \center},
number={第\chinese{section}章}
}}
\usepackage[explicit]{titlesec}
\titlespacing*{\section}{0pt}{24pt plus .24pt minus .24pt}{18pt plus .0ex}
\newif \ifreview
%\reviewtrue %开启盲审模式,反之注释掉
\reviewfalse %关闭盲审模式
\begin{document}
\input{sec/0.0-front.tex}
\ifreview
\else
\input{sec/0.1-statement.tex}
\fi
\pagenumbering{Roman}
\fancyhead[LH]{上海交通大学学位论文}
\fancyhead[RH]{第一章\quad 绪论}
\input{sec/0.2-abstract.tex}
\input{sec/0.3-menu.tex}
\pagenumbering{arabic}
\input{sec/1-intro.tex}
\input{sec/2-related.tex}
\input{sec/3-framework.tex}
\input{sec/4-summary.tex}
\input{sec/-1.0-reference.tex}
\input{sec/-1.1-appendix.tex}
\ifreview
\input{sec/-1.2-ouput-review.tex}
\else
\input{sec/-1.2-ouput.tex}
\fi
\ifreview
\else
\input{sec/-1.3-thanks.tex}
\fi
\end{document}