-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b46a86d
Showing
3 changed files
with
2,686 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
%----------------------------------------------------- | ||
% new commands | ||
\newcommand{\degree}{\ensuremath{^\circ}} | ||
\newcommand{\tr}{\ensuremath{^\textrm{T}}} | ||
\newcommand{\bbar}[1]{\ensuremath{\bar{\bar{#1}}}} | ||
\newcommand{\p}[1][]{\ensuremath{\partial_{#1}}} | ||
\newcommand{\partl}[2]{\ensuremath{\frac{\partial #1}{\partial #2}}} | ||
\newcommand{\tpartl}[2]{\ensuremath{\tfrac{\partial #1}{\partial #2}}} | ||
\newcommand{\derv}[2]{\ensuremath{\frac{d #1}{d #2}}} | ||
\newcommand{\tderv}[2]{\ensuremath{\tfrac{d #1}{d #2}}} | ||
\newcommand{\ep}{\ensuremath{\varepsilon}} | ||
\newcommand{\norm}[1]{\ensuremath{\left\|#1\right\|}} % a norm | ||
\newcommand{\inner}[2]{\ensuremath{\left< #1, #2 \right>}} % an inner product | ||
\newcommand{\argmin}[1]{\ensuremath{\underset{#1}{\operatorname{argmin}}}} | ||
\newcommand{\argmax}[1]{\ensuremath{\underset{#1}{\operatorname{argmax}}}} | ||
|
||
%--------------------------------------------------- | ||
% automagically re-export the svgs to pdf_tex format | ||
% requires inkscape. modify the path below as appropriate | ||
\newcommand{\executeiffilenewer}[3]{% | ||
\ifnum\pdfstrcmp{\pdffilemoddate{#1}}% | ||
{\pdffilemoddate{#2}}>0% | ||
{\immediate\write18{#3}}\fi% | ||
} | ||
\newcommand{\includesvg}[1]{% | ||
\executeiffilenewer{#1.svg}{#1.pdf}% | ||
{/Applications/Inkscape.app/Contents/Resources/bin/inkscape -z -D --file=#1.svg % | ||
--export-pdf=#1.pdf --export-latex}% | ||
\input{#1.pdf_tex}% | ||
} | ||
|
||
%---------------------------- | ||
% theorem environments | ||
\newtheorem{theorem}{Theorem} | ||
\newtheorem{lemma}{Lemma} | ||
\newtheorem{principle}{Principle} | ||
\newtheorem{example}{Example} | ||
|
||
%---------------------------- | ||
% common font macros | ||
\newfont{\bboard}{msbm10 scaled\magstephalf} | ||
\def\D{\ensuremath{\textrm{D}}} | ||
\def\RR{ {\mbox{\bboard R}}} | ||
|
Oops, something went wrong.