2021-09-19一个模板

记录模板

首先是环境和包

\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}}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值