This repository has been archived by the owner on Oct 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
117 lines (96 loc) · 2.53 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
% !TEX program = xelatex
\documentclass[10.5pt,a4paper,headings]{ctexart}
\usepackage{titling}
\usepackage{metalogo}
% \author{16-1-whoami?}
%
%Margin - 1 inch on all sides
%
\usepackage[letterpaper]{geometry}
\usepackage[OT2,T1]{fontenc}
\usepackage{inconsolata}
\usepackage{subfigure}
\usepackage{float}
\usepackage{rotating}
\usepackage{pdfpages}
\usepackage{csquotes}
\usepackage{svg}
\usepackage{minted}
\usepackage{bm}
\usepackage{xltxtra, xunicode}
\geometry{a4paper,top=1.0in, bottom=1.0in, left=1.0in, right=1.0in}
% array for tabular width
\usepackage{array}
% xeCJK package to resolve CJK font family by yourself.
% \usepackage{xeCJK}
% \setCJKmainfont[BoldFont=SourceHanSerifSC-SemiBold, ItalicFont=STKaiti]{SourceHanSerifSC-Regular}
% \setCJKsansfont[BoldFont=SourceHanSansSC-Bold]{SourceHanSansSC-Regular}
% \setCJKmonofont{NotoSansMonoCJKsc-Regular}
% %
\ctexset{
section/format=\bf\zihao{-4}\raggedright,
subsection/format=\zihao{-4}\raggedright,
}
% times new roman for ascii
\usepackage{times}
%Doublespacing
\usepackage{setspace}
\doublespacing
%\onehalfspacing
\usepackage{enumerate}
%Rotating tables (e.g. sideways when too long)
\usepackage{rotating}
\usepackage{fancyhdr}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage{etoolbox}
\AtBeginEnvironment{minted}{\onehalfspacing
\fontsize{10.5}{13}\selectfont}
%
%Fancy-header package to modify header/page numbering (insert last name)
%
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\thepage}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%To sure we actually have header 0.5in away from top edge
%12pt is one-sixth of an inch. Subtract this from 0.5in to get headsep value
\setlength\headsep{0.333in}
\newcommand{\titleline}[1]{\hspace*{6em} #1 \\}
\newcommand*{\blankpage}{%
\vspace*{\fill}
{\centering\fontsize{32pt}{64pt}\par}
\vspace{\fill}}
\makeatletter
\renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
\blankpage
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%
%Works cited environment
%(to start, use \begin{workscited...}, each entry preceded by \bibent)
% - from Ryan Alcock's MLA style file
%
\newcommand{\bibent}{\noindent \hangindent 40pt}
\newenvironment{workscited}{\newpage \begin{center} 参考文献 \end{center}}{\newpage }
% \newcommand{\fs}{\CJKfamily{fs}}
%
%Begin document
%
\begin{document}
\begin{titlepage}
\scshape
\input{cover/cover}
\newpage
% table
\tableofcontents
\newpage
\input{body/caption}
\input{body/body}
\end{document}