%---------- From Kevin Chase ----------

\newtheorem{lemma}{Lemma}[section]
\newtheorem{theorem}{Theorem}[section]
\newtheorem{example}{Example}[section]
\newtheorem{corollary}{Corollary}[section]

\newcommand{\Perm}{\operatorname{Perm}}
\newcommand{\Part}{\operatorname{Part}}
\newcommand{\Var}{\operatorname{Var}}

%---------- My own commands ---------- 

\newcommand{\halfpage}{0.48\linewidth}
\newcommand{\fullpage}{0.98\linewidth}

\newcommand{\fft}{\mbox{FFT}}
\newcommand{\ifft}{\mbox{iFFT}} 
\newcommand{\tg}{\tilde{g}}
\newcommand{\tgam}{\tilde{\gamma}}
\newcommand{\principal}{\mbox{P}\int}

\newcommand{\article}{{\symbol{159}}}
\newcommand{\mytilde}{\widetilde}
\newcommand{\imag}{\operatorname{Im}}
\newcommand{\real}{\operatorname{Re}}
\newcommand{\trace}{\operatorname{Tr}}
\newcommand{\dilog}{\mbox{Li}_{2}}
\newcommand{\mylog}{\mbox{Gi}_{2}}
\newcommand{\lx}[1]{\mbox{Lx}_{#1}}
\newcommand{\lxi}{\mbox{Lx}_{1}}
\newcommand{\logdiff}{\mbox{Ld}}
\newcommand{\gxi}{\mbox{Gx}_{1}}
\newcommand{\lf}{\mbox{Lf}}
\newcommand{\lv}{\mbox{lv}}
\newcommand{\dlv}{\mbox{lv}'}
\newcommand{\lvd}{\mbox{lv}_2}
\newcommand{\kb}{k_{B}}

\newcommand{\lrpart}[1]{\overleftrightarrow{\partial_{#1}}} 
\newcommand{\rpart}[1]{\overrightarrow{\partial_{#1}}} 
\newcommand{\lpart}[1]{\overleftarrow{\partial_{#1}}} 
\newcommand{\grad}[1]{\vec{\nabla}\negthinspace_{#1}} 

\newcommand{\marginlabel}[1]{}

%\newcommand{\marginlabel}[1]{\mbox{}\marginpar{\raggedleft\hspace{0pt}#1}}

% some new environments

\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash 
\newenvironment{MyProgTab}
{
\par\begin{tabular}{|>{\PBS\raggedright\hspace{0pt}}p{7cm} %
                     |>{\PBS\centering\hspace{0pt}}p{6.5cm}|}

}
{\end{tabular}\par}










