Skip to content

Instantly share code, notes, and snippets.

@mitliagkas
Created May 29, 2014 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitliagkas/2809b59a4b5762148508 to your computer and use it in GitHub Desktop.
Save mitliagkas/2809b59a4b5762148508 to your computer and use it in GitHub Desktop.
Common latex Definitions
\newcommand{\theHalgorithm}{\arabic{algorithm}}
%\newtheorem{theorem}{Theorem}
%\newtheorem{definition}[theorem]{Definition}
%\newtheorem{assumption}[theorem]{Assumption}
%\newtheorem{proposition}[theorem]{Proposition}
%\newtheorem{lemma}[theorem]{Lemma}
%\newtheorem{corollary}[theorem]{Corollary}
%\newtheorem{algorithm}{Algorithm}
%\newtheorem*{theorem*}{Theorem}
%\newtheorem*{proposition*}{Proposition}
%\newtheorem*{lemma*}{Lemma}
%\newtheorem*{corollary*}{Corollary}
%\newtheorem*{claim*}{Claim}
%\newtheorem{claim}{Claim}
%\newtheorem{remark}{Remark}
%\newtheorem{example}[theorem]{Example}
\newcommand{\bX}{\mathbf{X}}
\newcommand{\bU}{\mathbf{U}}
\newcommand{\bF}{\mathbf{F}}
\newcommand{\bS}{\mathbf{S}}
\newcommand{\bR}{\mathbf{R}}
\newcommand{\bQ}{\mathbf{Q}}
\newcommand{\br}{\mathbf{r}}
\newcommand{\bp}{\mathbf{p}}
\newcommand{\bP}{\mathbf{P}}
\newcommand{\bbP}{\mathbb{P}}
\newcommand{\bbE}{\mathbb{E}}
\newcommand{\bM}{\mathbf{M}}
\newcommand{\cS}{\mathcal{S}}
\newcommand{\bx}{\mathbf{x}}
\newcommand{\bq}{\mathbf{q}}
\newcommand{\by}{\mathbf{y}}
\newcommand{\bv}{\mathbf{v}}
\newcommand{\bw}{\mathbf{w}}
\newcommand{\ba}{\mathbf{a}}
\newcommand{\bb}{\mathbf{b}}
\newcommand{\bz}{\mathbf{z}}
\newcommand{\bu}{\mathbf{u}}
\newcommand{\bs}{\mathbf{s}}
\newcommand{\bg}{\mathbf{g}}
\newcommand{\dist}{\text{dist}}
\newcommand{\Qt}{Q_{\tau}}
\newcommand{\Qtt}{Q_{\tau+1}}
\newcommand{\Ftt}{F_{\tau+1}}
\newcommand{\Rtt}{R_{\tau+1}}
\newcommand{\R}{R_{\tau+1}}
\newcommand{\bzeta}{\mathbf{\zeta}}
\newcommand{\tv}{\tilde{\bv}}
\newcommand{\Stt}{S_{\tau+1}}
\newcommand{\N}{\mathcal{N}}
\newcommand{\ip}[2]{\langle#1,#2\rangle}
\newcommand{\argmin}{\mathop{\mathrm{argmin}}}
\newcommand{\tr}{\mathop{\mathrm{Tr}}}
\newcommand{\todo}[1]{\vspace{5 mm}\par \noindent \marginpar{\textsc{ToDo}}
\framebox{\begin{minipage}[c]{0.95 \textwidth}
\tt #1 \end{minipage}}\vspace{5 mm}\par}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment