% ===============================
% MathNotes 配置文件
% ===============================

% ===== 宏包 =====
\usepackage{amsmath, amssymb, amsthm, mathtools}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{hyperref}
\usepackage{cleveref}

\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm}

% ===== 字体 =====
\usepackage{fontspec}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}

% ===== 定理环境 =====
\theoremstyle{definition}
\newtheorem{definition}{定义}[section]
\newtheorem{example}{例题}[section]

\theoremstyle{plain}
\newtheorem{theorem}{定理}[section]
\newtheorem{lemma}{引理}[section]
\newtheorem{corollary}{推论}[section]

\theoremstyle{remark}
\newtheorem*{remark}{注释}

% ===== 颜色框环境 =====
\usepackage[most]{tcolorbox}

\newtcolorbox{defbox}{colback=blue!5!white, colframe=blue!75!black, title=Def}
\newtcolorbox{exbox}{colback=green!5!white, colframe=green!75!black, title=Ex}
\newtcolorbox{tipbox}{colback=yellow!10!white, colframe=yellow!50!black, title=Tip}

% ===== 快捷命令 =====
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\abs}[1]{\left|#1\right|}
