Skip to content

Commit

Permalink
Added the macros from the file found in the garbage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisschultz committed Nov 1, 2011
1 parent aadbddd commit d5e3f12
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
auto/

*.zip
*.gz
*.bz2
*.exe
*.7z
40 changes: 32 additions & 8 deletions labtex.sty
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
%-----------------------------------------------------
% 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}}}}
\newcommand{\argmin}[1]{\ensuremath{\underset{#1}{\operatorname{arg\,min}}}}
\newcommand{\argmax}[1]{\ensuremath{\underset{#1}{\operatorname{arg\,max}}}}

\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}} %% scientific
\providecommand{\abs}[1]{\left| #1 \right|} %% absolute value
%% \providecommand{\tr}[1]{\ensuremath{#1 ^{\mathrm{\scriptscriptstyle T}}}}


%% math operators:
\DeclareMathOperator{\spn}{span} %% span
\DeclareMathOperator{\diag}{diag} %% diag
\DeclareMathOperator{\sgn}{sgn} %% signum
\DeclareMathOperator{\rank}{rank} %% rank
\DeclareMathOperator{\orth}{orth} %% orthogonal
\DeclareMathOperator{\Tr}{Tr} %% trace
\DeclareMathOperator{\im}{Im} %% imaginary
\DeclareMathOperator{\supp}{sup} %% supremum
\DeclareMathOperator{\inff}{inf} %% infimum


%% constants
\newcommand{\real}{{\ensuremath{{\mathbb{R}}}}} %% reals
\newcommand{\inertia}{\mathbb{I}} %% intertia tensor
\newcommand{\ccos}{\text{c}} %% cos abbreviation
\newcommand{\ssin}{\text{s}} %% sin abbreviation
\newcommand{\ep}{\ensuremath{\varepsilon}}
\newcommand{\degree}{\ensuremath{^\circ}}
\newcommand{\tr}{\ensuremath{^\textrm{\scriptscriptstyle T}}}


%---------------------------------------------------
% automagically re-export the svgs to pdf_tex format
Expand All @@ -38,7 +63,6 @@

%----------------------------
% common font macros
\newfont{\bboard}{msbm10 scaled\magstephalf}
\def\D{\ensuremath{\textrm{D}}}
\def\RR{ {\mbox{\bboard R}}}

\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\DeclareMathAlphabet{\mathtst}{OMS}{cmsy}{m}{n}

0 comments on commit d5e3f12

Please sign in to comment.