\newif\ifkey \keytrue
\newif\ifanswer \answerfalse
\ifkey \documentclass[answers,10.5pt]{exam}
\else \documentclass[10.5pt]{exam}
\fi
\input{exam_info.tex}
\newcommand{\thisdoctype}{试题}
\ifkey \renewcommand{\thisdoctype}{试题与答卷} \fi
\ifkey \renewcommand{\thisdoctype}{解答与评分标准} \fi
\usepackage{ctex}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{array}
\usepackage{bicaption}
\usepackage{booktabs}
\usepackage{braket}
\usepackage[justification=centering]{caption}
\captionsetup{font={small, bf}, skip=1pt}
\usepackage{cite}
\usepackage{comment}
\usepackage{framed}
\usepackage{geometry}
\geometry{left = 2.0cm, right = 2.0 cm, top = 2.0 cm, bottom = 2.0 cm}
\usepackage{graphicx}
\graphicspath{{figures/}} % ---!!!Specify the directory of your figures!!!---
\usepackage{lipsum}
\usepackage{mhchem}
\usepackage{multicol}
\usepackage{sectsty}
\usepackage{threeparttable}
\sectionfont{\centering}
% \setCJKmainfont{方正新书宋简体}[BoldFont=方正小标宋简体]
%\setCJKsansfont{Source Han Sans}
\usepackage{unicode-math}
% \setmainfont{XITS}
% \setmathfont{XITS Math}
\setsansfont{Arial}
% Defining Math Operators
\def\d{\mathrm{d}} % 微分算符的简化写法
\def\e{\mathrm{e}} % 指数e的简化写法
\def\i{\mathrm{i}} % 复数单位i的简化写法
\def\deg{\ensuremath{^{\circ}}} % 直接输入度
\def\degC{\ensuremath{^{\circ} \mathrm{C}}} % 优雅地输入摄氏度。这里为了和习惯对应,我们的
\def\Jmol{\ensuremath{\mathrm{J\cdot mol^{-1}}}} % KJ mol-1的简化命令。
\def\JmolK{\ensuremath{\mathrm{J\cdot mol^{-1}\cdot K^{-1}}}}
\def\kJmol{\ensuremath{\mathrm{kJ\cdot mol^{-1}}}}
\def\molpl{\ensuremath{\mathrm{mol\cdot L^{-1}}}}
\def\mmolpl{\ensuremath{\mathrm{mmol\cdot L^{-1}}}}
\def\kPa{\ensuremath{\mathrm{kPa}}}
\def\V{\ensuremath{\mathrm{V}}}
\newcommand{\tr}[1]{\textrm{#1}}
\newcommand{\Tr}[1]{\textrm{Tr}\left[#1\right]}
\newcommand{\ve}{\varepsilon} % epsilon的简化写法
\newcommand{\mm}{\mathrm} % mathrm的简化命令
\newcommand{\mb}{\mathbf}
\newcommand{\mc}{\mathcal}
\newcommand{\p}{\partial} % 偏微分算符的简化写法
% 设置题首,接受一个参数,将其放大、加粗
\newcommand{\questiontitle}[1]{\textbf{\large #1}}
% 设置化合物代号,接受一个参数,将其设置为 Arial 加粗
\newcommand{\compcode}[1]{\textbf{\textsf{#1}}}
% 设置答题框,接受一个参数,为答题框高度,默认只在答题纸制作 (\answertrue) 时使用
% 使用案例: \answerbox{5cm}
\newcommand{\answerbox}[1]{
\ifanswer
\begin{frame}{}
\vspace{#1}
\end{frame}
\fi
}
\pagestyle{headandfoot}
\firstpageheadrule
\firstpageheader{\institution}{\testname}{\thisdoctype}
\runningheader{\institution}{\testname}{\thisdoctype}
\runningheadrule
\firstpagefooter{}{第\thepage\ 页(共\numpages 页)}{}
\runningfooter{}{第\thepage\ 页(共\numpages 页)}{}
\renewcommand{\solutiontitle}{\noindent\textbf{解答 }\par\noindent}
\renewcommand{\questionlabel}{\textbf{\large 第 \thequestion 题}}
\renewcommand{\thepartno}{\arabic{partno}}
\renewcommand{\partlabel}{\textbf{\thequestion-\thepartno}}
\renewcommand{\thesubpart}{\arabic{subpart}}
\renewcommand{\subpartlabel}{\textbf{\thequestion-\thepartno-\thesubpart}}
% Setting how the scores display
\pointname{ 分}
\pointformat{\textbf{\large(\thepoints)}}
\usepackage{draftwatermark, everypage}
\SetWatermarkText{\textbf{\watermarktext}}
\SetWatermarkLightness{0.95}
\SetWatermarkScale{0.4}
\begin{document}
\title{\textbf{\testname \quad \thisdoctype}}
\author{\institution}
\date{\testdate}
\maketitle
\ifanswer \input{coverpage.tex} \fi
\begin{questions}
\input{1_equations.tex}
\input{9_org1.tex}
\end{questions}
\end{document}