Search This Blog

Friday, December 3, 2010

LaTex \newcommand

\newcommand{\dd}{\mathrm{d}}
\newcommand{\dt}{\mathrm{d}t}
\newcommand{\tr}{\mathrm{tr}}
\newcommand{\bmcal}[1]{\bm{\mathcal{#1}}}


\newcommand{\mycolor}{white}%purple, white
\newcommand{\mypause}{\pause}%
\newcommand{\justmoment}{\mypause}
%
\newcommand{\tcol}[1]{\textsf{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolred}[1]{\textsf{\textcolor{red}{#1}}}
\newcommand{\tcolpurple}[1]{\textbf{\textcolor{purple}{#1}}}
\newcommand{\tcolul}[1]{\underline{\textbf{\textcolor{\mycolor}{#1}}}}
\newcommand{\tcolep}[1]{\emph{\textbf{\textcolor{\mycolor}{#1}}}}
\newcommand{\tcolmath}[1]{{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolmathblue}[1]{{\textcolor{blue}{#1}}}
\newcommand{\tcolmathbf}[1]{\mathbf{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolmathrm}[1]{\mathrm{\textcolor{\mycolor}{#1}}}
\newcommand{\textrtblue}[1]{\textrt{\textcolor{blue}{#1}}}
%\newcommand{\tcol}[1]{\textbf{\textcolor{white}{#1}}}
%\newcommand{\tcolmath}[1]{\mathbf{\textcolor{white}{#1}}}
%
\newcommand{\dbar}{d\mkern-6mu\mathchar'26}
\newcommand{\degree}{\textdegree}
\newcommand{\FigurePath}{/Users/albertsk/svn2009/Library/Figures}
\newcommand{\xunit}{\mathbf{i}}
\newcommand{\yunit}{\mathbf{j}}
\newcommand{\zunit}{\mathbf{k}}
\newcommand{\ii}{\mathbf{i}}
\newcommand{\jj}{\mathbf{j}}
\newcommand{\kk}{\mathbf{k}}
\newcommand{\textrt}[1]{\textit{\textrm{#1}}}
\newcommand{\paren}[1]{\left[{#1}\right]}
\newcommand{\prn}[1]{\left({#1}\right)}
\newcommand{\jmitem}{\justmoment \item}
\newcommand{\pitem}{\justmoment \item}
\newcommand{\lb}{\ \mathrm{lb}}
\newcommand{\ft}{\ \mathrm{ft}}
\newcommand{\inch}{\ \mathrm{in}}
\newcommand{\lbft}{\ \mathrm{lb}\cdot\mathrm{ft}}
\newcommand{\N}{\ \mathrm{N}}
\newcommand{\kN}{\ \mathrm{kN}}
\newcommand{\kip}{\ \mathrm{kip}}
\newcommand{\mm}{\ \mathrm{mm}}
\newcommand{\m}{\ \mathrm{m}}
\newcommand{\Nm}{\ \mathrm{N}\cdot\mathrm{m}}
\newcommand{\comment}[1]{}
\newcommand{\skipframe}[1]{}
\newcommand{\myvspace}{3cm}
\newcommand{\commentvspace}[1]{\vspace{\myvspace}}
\newcommand{\myfirstsection}{1}
\newcommand{\D}{\mathrm{d}}
\newcommand{\second}{\,\mathrm{sec}}
\newcommand{\minute}{\,\mathrm{min}}
\newcommand{\minutes}{\,\mathrm{mins}}
\newcommand{\hour}{\,\mathrm{hr}}
\newcommand{\hours}{\,\mathrm{hrs}}
\newcommand{\Pe}{\mathrm{Pe}}
\newcommand{\Plus}{^{+}}
\newcommand{\PlusPlus}{^{2+}}
\newcommand{\Minus}{^{-}}
\newcommand{\MinusMinus}{^{2-}}
\newcommand{\subs}[1]{$_{#1}$}
\newcommand{\supers}[1]{$^{#1}$}
\newcommand{\mailto}[1]{\href{mailto:#1}{#1}}


No comments:

Labels

Blog Archive