-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathNEMT.sty
117 lines (92 loc) · 4.36 KB
/
NEMT.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
\ProvidesPackage{NEMT}[2017/09/27 v1.0 Non-standard LaTeX package]
%\documentclass[12pt,twoside,space]{ctexart}
%\usepackage{NEMT}
%------------------------------- 大题 ----------------------------------%
\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}{\hspace*{\fill}$\Box$\quad\par}
\newenvironment{Solution}{\par\noindent{\heiti{解.\,}}}{\hspace*{\fill}{$\Diamond$}\par}
\RequirePackage[T1]{fontenc}
\RequirePackage{mathptmx}
\newfontfamily\TNRBI{Times New Roman Bold Italic} %新罗马字体英文的粗斜体
\newcommand{\bfit}[1]{\text{\TNRBI #1}} %amsmath
%-------------------------页眉页脚-%-装订线-------------------------------%
\RequirePackage{tikz}
\usetikzlibrary{circuits} %circuit handle symbol
\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[a4paper,top=15mm,bottom=25mm,left=20mm,right=15mm,headsep=10pt]
{geometry}
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}%使用页眉页脚宏包
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[CO]{理科数学试题\quad 第 \thepage 页 \quad (共\pageref{LastPage}页)}
\fancyfoot[CE]{理科数学试题\quad 第 \thepage 页 \quad (共\pageref{LastPage}页)}
\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