记录模板
首先是环境和包
\documentclass{statsoc}
\usepackage[a4paper]{geometry}
\usepackage{amsmath, amssymb}
\usepackage{amsfonts, multirow, epsfig, floatrow}
\usepackage{graphicx, pdflscape, verbatim, enumerate, colortbl, setspace}
\usepackage{setspace, color,bm}
\usepackage[normalem]{ulem}
%\usepackage[numbers]{natbib}
\usepackage{cite}
\usepackage{multirow}
%\usepackage{algorithm}
%\usepackage{algorithmic}
\usepackage{booktabs,array}
\usepackage{hyperref}
\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tikz}
\usepackage[linesnumbered,ruled]{algorithm2e}
\let\oldemptyset\empt%yset
\let\emptyset\varnothing
\usepackage{enumitem}
\newenvironment{Tabular}[2][1]
{\def\arraystretch{#1}\tabular{#2}}
{\endtabular}
\newcommand{\tcomm}[1]{\fbox{\bf\scriptsize\color{brown} #1}}
\usepackage{enumitem}
\newenvironment{Tabular}[2][1]
{\def\arraystretch{#1}\tabular{#2}}
{\endtabular}
数学符号等一些要用的命令
推论啊假设啊什么的环境定义,以免影响了定理的序号
\newtheorem{theorem-new}{Theorem} %%%[section]
\newtheorem{defi}{Definition}
\newtheorem{theorem}{Theorem} %%%[section]
\newtheorem{question}[theorem]{Question}
\newtheorem{corollary}{Corollary}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{lemma}{Lemma} %%%[theorem]
\newtheorem{assumption}{Assumption}%%%[theorem]
\newtheorem{proposition}{Proposition} %%%[theorem]
\newtheorem{definition}{Definition}[section]
\newtheorem{fact}{Fact}[section]
\newtheorem{remark}{Remark} %%%[theorem]
\newtheorem{example}[theorem]{Example}
一些数学符合的定义,免得书写过于麻烦
\newcommand{\E}{\mathbb{E}}
\newcommand{\ep}{\mathbb{E}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\renewcommand{\P}{\mathrm{Pr}}
\newcommand{\pr}{\mathrm{Pr}}
\newcommand{\M}{\mathcal{M}}
\newcommand{\W}{\mathcal{W}}
\newcommand{\sgn}{\text{sgn}}
\newcommand{\conv}{\text{conv}}
\newcommand{\Dom}{\text{Dom}}
\newcommand{\diag}{\mbox{diag}}
\newcommand{\bs}{\boldsymbol}
\newcommand{\ones}{\mathbf{1}}
\newcommand{\eye}{I}
\newcommand{\td}{{\mathrm{d}}}
\newcommand{\var}{\mathrm{Var}}
\newcommand{\cov}{\mathrm{Cov}}
\newcommand{\cor}{\mathrm{Cor}}
\newcommand{\tr}{\mathrm{Tr}}
\renewcommand{\hat}{\widehat}
\renewcommand{\tilde}{\widetilde}
\renewcommand{\ones}{{\mathbbm{1}}}
可以定义自己的颜色命令
\definecolor{pingcolor}{rgb}{0,0.8,0.7}
\newcommand{\ping}[1]{{\color{pingcolor}#1}}