-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSketch.cls
executable file
·61 lines (54 loc) · 1.92 KB
/
Sketch.cls
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
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{Sketch}[2017/01/21 beta2.0 thesis]
\LoadClass[a4paper, 11pt]{article}
\RequirePackage{geometry,fontspec,xltxtra,xunicode,listings,latexsym,amssymb,amsmath,xcolor,colortbl,ifthen,graphicx,xspace,eucal,verbatim,enumerate,indentfirst,hyperref,ulem,titlesec,multicol}
\usepackage[justification=centering]{caption}
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm}
\sloppy
% ----- Language Selection -----
\DeclareOption{CHN}
{\typeout{当前设定为中文}%
\def\figurename{图}%
\def\tablename{表}%
\renewcommand{\contentsname}{目录}%
\renewcommand{\today}{\number\year 年\number\month 月\number\day 日}%
\renewcommand\refname{参考文献}%
\renewcommand{\abstractname}{摘要}
\setlength{\parindent}{2em}}
\DeclareOption{ENG}{\typeout{当前设定为英文}}
\ExecuteOptions{ENG}
\ProcessOptions
% ----- Chinese Supporting -----
\geometry{letterpaper}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont{SimSun}
\XeTeXlinebreaklocale “zh”
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\newfontfamily{\H}{SimHei}
\newfontfamily{\E}{Arial}
% ----- graphics -----
\graphicspath{{./}{./img/}{./fig/}{./image/}{./figure/}{./picture/}{./imgs/}{./figs/}{./images/}{./figures/}{./pictures/}}
% ----- listing -----
\definecolor{grey}{rgb}{0.8,0.8,0.8}
\definecolor{darkgreen}{rgb}{0,0.6,0}
\definecolor{darkblue}{rgb}{0,0,0.9}
\definecolor{darkred}{rgb}{0.8,0,0}
\def\lstbasicfont{\fontfamily{pcr}\selectfont\footnotesize}
\lstset{
%indexing,
%numbers=left,
%numberstyle=\small,
%character display
showstringspaces=false,
showspaces=false,
tabsize=4,
frame=lines,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\color{cyan}\bfseries,
identifierstyle=\color{red},
commentstyle=\color{darkgreen},%\itshape,
stringstyle=\color{orange},
}
\lstloadlanguages{C,C++,Java,Matlab,Mathematica}