-
Notifications
You must be signed in to change notification settings - Fork 24
/
GEEexam.sty
156 lines (132 loc) · 6.39 KB
/
GEEexam.sty
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
\ProvidesPackage{GEEexam}[2017/09/27 v1.0 Non-standard LaTeX package]
%\documentclass[11pt,space]{ctexart}
%\usepackage{GEEexam}
%------------------------------- 大题 ----------------------------------%
\ctexset{section = {name = {,、\hspace*{-5mm}},number = \chinese{section},format = {\zihao{5}\heiti\raggedright}}}
\ctexset{subsection = {name = {\hspace{5mm},\hspace*{-1mm}},number = (\chinese{subsection}),format = {\zihao{5}\heiti\raggedright}}}
\RequirePackage{titlesec}%titlesec宏包调整section与正文间距
\titlespacing*{\section}{0pt}{9pt}{4pt}
%------------------------------- 大题 ----------------------------------%
%------------------------------ 选择题 ----------------------------------%
\usepackage{tasks}%选择题宏包,tasks环境
\settasks{counter-format={tsk[A].},
label-offset={0.4em},
label-align=left,
column-sep={2pt},
item-indent={1pt},before-skip={-0.7em},after-skip={-0.7em}}
% 选择题示例
%\begin{tasks}(4)
% \task
% \task
% \task
% \task
%\end{tasks}
%------------------------------ 选择题 ----------------------------------%
%\setcounter{enumi}{12}
\def\tiankongdaan#1{\makebox[3em][c]{#1}}
\newcommand{\blank}[1]{\underline{\tiankongdaan{$\blacktriangle$}}}
\DeclareOption{ans}{\renewcommand{\blank}[1]{\,\underline{#1}\,
}}
\ProcessOptions
%%%----------数学类---------%%%
%=======================================================================
\RequirePackage{amsmath,amssymb}%
\def\dif{\mathop{}\!\mathrm{d}}
\DeclareMathOperator{\rank}{rank}
\RequirePackage{bm}
\RequirePackage{pifont}
\RequirePackage{extarrows} %长等号
\RequirePackage{scalerel}%缩放公式大小
%%---------------------------------- 定理\引理\定义样式设置 ------------------------------------%%
\RequirePackage{amsthm}
\renewcommand{\proofname}{\heiti{证明}}
%\newenvironment{proof}{\par\noindent{\heiti{证明.\,}}}{\hspace*{\fill}{$\Box$}\par}
%\newenvironment{proof}{\par\noindent{\heiti{证明.\,}}\small}{\hfill$\Box$\quad\par}
\newenvironment{Proof}{\par\noindent{\heiti{证明.\,}}\small}{\hfill$\Box$\quad\par}
\newenvironment{Solution}{\par\noindent{\heiti{解.\,}}}{\hspace*{\fill}{$\Diamond$}\par}
%-----------------------------------------------------------------------------
%\RequirePackage{amsthm}
\RequirePackage{thmtools}
\declaretheoremstyle[
spaceabove=0pt, spacebelow=0pt,
headfont=\normalfont\bfseries,
notefont=\mdseries, notebraces={(}{)},
bodyfont=\normalfont,
postheadspace=0.5em,
headindent=0em,
headpunct={:},
qed=$\blacktriangleleft$,
numbered=no
]{solstyle}
\declaretheorem[style=solstyle,shaded={rulecolor=red,
rulewidth=0.5pt, bgcolor={rgb}{1,1,1}},name=解]{solution}
%-----------------------------------------------------------------------------
%%--------------------------设置数学字体为新罗马字体----------------------------
\RequirePackage[T1]{fontenc}
\RequirePackage{mathptmx}
\newfontfamily\TNRBI{Times New Roman Bold Italic} %新罗马字体英文的粗斜体
\newcommand{\bfit}[1]{\text{\TNRBI #1}} %amsmath
%%-----------------------------------------------------------------------------
%%--------------- 页面设置 ---------------%%
\RequirePackage{geometry,calc}
\geometry{a3paper,twocolumn,landscape,hmargin={3.5cm,1.3cm},vmargin={1.5cm,1.5cm},footskip=0.75cm,headsep=0.25cm}
%--------------------原--------------------------------
%\RequirePackage{geometry}
%\geometry{paperwidth=19.5cm,paperheight=27cm,headsep=10pt,top=1.5cm,bottom=3cm,left=1.5cm,right=2cm}
%\oddsidemargin=1cm %奇数页页边距
%\evensidemargin=-0.6cm %偶数页页边距
%-----------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------------------------------------页眉页脚-%-装订线----------------------------------------%
%\makeatletter
\def\lastfox@putlabel{%
\immediate\write\@auxout{%
\string\newlabel{LastFox}{{\@arabic\c@fox}{}{}{}{}}}}
\AtEndDocument{\lastfox@putlabel}
%\makeatother
\newcounter{foo}
\newcounter{fox}
\addtocounter{foo}{1}
%--------------------------------------------------------------------------------------
\RequirePackage{tikz}
\RequirePackage{lastpage}
\newcommand{\defen}[2][1cm]{\hspace*{\fill}\raisebox{-1.1ex}{\tikz\draw[line width=1pt,dash pattern=on 1pt off 2.5pt on 1pt off 2.5pt] (0pt,0pt)--(#1 ,0pt)node[right=-1mm]{(#2~分)};}\newline}
\RequirePackage{calc}%使用四则运算宏包%\usepackage{ulem}%画线的宏包
\RequirePackage{fancyhdr}%使用页眉页脚宏包
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\setlength{\columnseprule}{0.4pt}
\setlength{\columnsep}{1.8cm}
%\fancyfoot[CO]{\vspace*{1mm}\hspace*{1.5cm}理科数学试题\quad 第\,\thepage\,页 \quad (共\pageref{LastPage}页)}
%\fancyfoot[CE]{\vspace*{1mm}理科数学试题\quad 第\,\thepage\,页 \quad (共\pageref{LastPage}页)}
\fancyfoot[CE,CO]{\kaishu{}理科数学试题\quad 第\refstepcounter{fox}\thefoo\refstepcounter{foo}页 \quad (共~\ref{LastFox}~页)\hspace*{13cm}
理科数学试题\quad 第\refstepcounter{fox}\thefoo\refstepcounter{foo}页 \quad (共~\ref{LastFox}~页)}
\renewcommand{\headrulewidth}{0pt}
%-------------------------------------------------------------------------------------------------
\RequirePackage{graphicx} %插图
\RequirePackage{wrapfig}
\RequirePackage{eso-pic}
\newcommand{\watermark}[3]{\AddToShipoutPictureBG{%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill%
\centering%
\tikz[remember picture, overlay]%
\node [rotate = #1, scale = #2] at (current page.center)%
{\textcolor{gray!80!cyan!30}{#3}};
\vfill}}}
%\watermark{60}{6}{14-金融工程-白兔兔}
%-------------------表格-------------------%
\RequirePackage{array}%m{3em}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
%--------------------------------------
%=======================================================================
\RequirePackage{color,xcolor}%-颜色-%
%==============================================================================
\RequirePackage{enumitem}
\def\juemi{\noindent{\heiti\zihao{-4} 绝密$\bigstar$启用前}}
\def\biaoti#1{\begin{center}{\zihao{3} #1}\end{center}}
\def\fubiaoti#1{\begin{center}{\zihao{2}\heiti #1}\end{center}}
%-\raisebox{-3.2ex}{}
\endinput