Difference between revisions of "Dhj.sty"

From Polymath1Wiki
Jump to: navigation, search
Line 1: Line 1:
 
\usepackage{amsmath,amssymb,amsthm,amsfonts,latexsym,hyperref,xspace}
 
\usepackage{amsmath,amssymb,amsthm,amsfonts,latexsym,hyperref,xspace}
 +
\usepackage[pdftex]{graphicx}
  
 
% layout
 
% layout
Line 35: Line 36:
 
\newcommand{\Covx}{\mathop{\bf Cov\/}}       
 
\newcommand{\Covx}{\mathop{\bf Cov\/}}       
 
\newcommand{\littlesum}{\mathop{{\textstyle \sum}}}
 
\newcommand{\littlesum}{\mathop{{\textstyle \sum}}}
 +
 +
% correct typography
 +
\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}         
 +
 +
% mathrm terms
 +
\newcommand{\poly}{\mathrm{poly}}
  
 
% number systems
 
% number systems
Line 47: Line 54:
 
\newcommand{\ra}{\rangle}
 
\newcommand{\ra}{\rangle}
 
\newcommand{\wt}[1]{\widetilde{#1}}
 
\newcommand{\wt}[1]{\widetilde{#1}}
 +
\newcommand{\wh}[1]{\widehat{#1}}
 +
\newcommand{\ot}{\otimes}
 
\newcommand{\half}{{\textstyle \frac12}}
 
\newcommand{\half}{{\textstyle \frac12}}
  
Line 70: Line 79:
 
%\newcommand{\ignore}[1]{}
 
%\newcommand{\ignore}[1]{}
  
\newcommand{\noteryan}[1]{*\marginpar{\tiny *Ryan: \bf #1}}
+
%\newcommand{\noteryan}[1]{*\marginpar{\tiny *Ryan: \bf #1}}
 +
\newcommand{\noteryan}[1]{{\tiny [[#1]]}}
 
%\newcommand{\noteryan}[1]{}
 
%\newcommand{\noteryan}[1]{}
 
\newcommand{\notetim}[1]{*\marginpar{\tiny *Tim: \bf #1}}
 
\newcommand{\notetim}[1]{*\marginpar{\tiny *Tim: \bf #1}}
Line 78: Line 88:
 
%%%%%%%%%%%% DHJ-centric macros %%%%%%%%%%%%  
 
%%%%%%%%%%%% DHJ-centric macros %%%%%%%%%%%%  
  
\newcommand{\eqs}[1]{\overline{\mu}_{#1}}
+
\newcommand{\unif}{\mu}                        % uniform distribution
\newcommand{\ens}[1]{\widetilde{\mu}_{#1}}
+
\newcommand{\spac}{\nu}                        % the uniform spacing distribution
 +
\newcommand{\eqs}[1]{\overline{\nu}_{#1}}       % equal-slices
 +
\newcommand{\ens}[1]{\widetilde{\nu}_{#1}}     % equal-nondengenerate-slices
 +
\newcommand{\prd}{\pi}                          % a generic product distribution
 +
\newcommand{\distra}{\gamma}                    % a generic distribution
 +
\newcommand{\distrb}{\xi}                      % another generic distribution
 +
 
 +
\newcommand{\slice}{s}
 +
 
 +
\newcommand{\dtv}[2]{d_{\mathrm{TV}}(#1,#2)}    % total variation distance
 +
\newcommand{\dchi}[2]{d_{\chi^2}(#1,#2)}        % chi^2 distance
  
\newcommand{\dtv}[2]{d_{\mathrm{TV}}(#1,#2)}
+
\newcommand{\chg}[3]{#1^{#2\rightarrow#3}}     % a string with some symbols replaced
\newcommand{\dchi}[2]{d_{\chi^2}(#1,#2)}  
+
  
\newcommand{\chg}[3]{#1^{#2\rightarrow#3}}
+
\newcommand{\wild}{\mathord{\star}}             % wildcard symbol
  
\newcommand{\wild}{\mathord{\star}}
+
\newcommand{\ppn}{p}                           % proportion of coordinates free in the measure-embedding argument
  
\newcommand{\hj}[2]{\text{HJ}_{#1}(#2)}
+
\newcommand{\hj}[2]{\mathrm{HJ}_{#1}(#2)}
\newcommand{\dhj}[2]{\text{DHJ}_{#1}(#2)}
+
\newcommand{\dhj}[2]{\mathrm{DHJ}_{#1}(#2)}
\newcommand{\mdhj}[3]{\text{MDHJ}_{#1}(#2,#3)}
+
\newcommand{\mdhj}[3]{\mathrm{MDHJ}_{#1}(#2,#3)}
\newcommand{\edhj}[2]{\text{EDHJ}_{#1}(#2)}
+
\newcommand{\edhj}[2]{\mathrm{EDHJ}_{#1}(#2)}
\newcommand{\Pdhj}[2]{\text{PDHJ}_{#1}(#2)}
+
\newcommand{\Pdhj}[2]{\mathrm{PDHJ}_{#1}(#2)}
\newcommand{\pdhj}[2]{\text{pDHJ}_{#1}(#2)}
+
\newcommand{\pdhj}[2]{\epsilon_{#1}(#2)}
\newcommand{\Pmdhj}[3]{\text{PMDHJ}_{#1}(#2,#3)}
+
\newcommand{\emdhj}[3]{\mathrm{EMDHJ}_{#1}(#2,#3)}
\newcommand{\pmdhj}[3]{\text{pMDHJ}_{#1}(#2,#3)}
+
\newcommand{\Pmdhj}[3]{\mathrm{PMDHJ}_{#1}(#2,#3)}
 +
\newcommand{\pmdhj}[3]{\epsilon_{#1}(#2,#3)}

Revision as of 21:19, 24 June 2009

\usepackage{amsmath,amssymb,amsthm,amsfonts,latexsym,hyperref,xspace} \usepackage[pdftex]{graphicx}

% layout \setlength{\textwidth}{6.5 in} \setlength{\textheight}{9in} \setlength{\oddsidemargin}{0in} \setlength{\topmargin}{0in} \addtolength{\voffset}{-.5in}

% environments \newtheorem{theorem}{Theorem}[section] \newtheorem*{namedtheorem}{\theoremname} \newcommand{\theoremname}{testing} \newenvironment{named}[1]{ \renewcommand{\theoremname}{#1} \begin{namedtheorem}} {\end{namedtheorem}} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{claim}[theorem]{Claim} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{fact}[theorem]{Fact} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{definition} \newtheorem{remark}[theorem]{Remark} \theoremstyle{definition} \newtheorem{notation}[theorem]{Notation} \theoremstyle{plain}


%%%%%%%%%%%% Generic math macros %%%%%%%%%%%%

% probability and other operators \renewcommand{\Pr}{\mathop{\bf Pr\/}} \newcommand{\Ex}{\mathop{\bf E\/}} \newcommand{\Varx}{\mathop{\bf Var\/}} \newcommand{\Covx}{\mathop{\bf Cov\/}} \newcommand{\littlesum}{\mathopTemplate:\textstyle \sum}

% correct typography \newcommand{\abs}[1]{\left\lvert #1 \right\rvert}

% mathrm terms \newcommand{\poly}{\mathrm{poly}}

% number systems \newcommand{\R}{\mathbb R} \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z}

% short forms \newcommand{\eps}{\epsilon} \newcommand{\lam}{\lambda} \newcommand{\la}{\langle} \newcommand{\ra}{\rangle} \newcommand{\wt}[1]{\widetilde{#1}} \newcommand{\wh}[1]{\widehat{#1}} \newcommand{\ot}{\otimes} \newcommand{\half}Template:\textstyle \frac12

% calligraphic letters \newcommand{\calA}{{\mathcal{A}}} \newcommand{\calB}{{\mathcal{B}}} \newcommand{\calC}{{\mathcal{C}}} \newcommand{\calE}{\mathcal{E}} \newcommand{\calS}{\mathcal{S}} \newcommand{\calU}{\mathcal{U}}

% bold \newcommand{\bs}[1]{\boldsymbol{#1}}

% barred letters \newcommand{\barJ}{{\overline{J}}} \newcommand{\barT}{{\overline{T}}}


%%%%%%%%%%%% document-writing macros %%%%%%%%%%%%

\newcommand{\ignore}[1]{*\marginpar{\tiny \em ignored part}} %\newcommand{\ignore}[1]{}

%\newcommand{\noteryan}[1]{*\marginpar{\tiny *Ryan: \bf #1}} \newcommand{\noteryan}[1]{{\tiny #1}} %\newcommand{\noteryan}[1]{} \newcommand{\notetim}[1]{*\marginpar{\tiny *Tim: \bf #1}} %\newcommand{\notetim}[1]{}


%%%%%%%%%%%% DHJ-centric macros %%%%%%%%%%%%

\newcommand{\unif}{\mu}  % uniform distribution \newcommand{\spac}{\nu}  % the uniform spacing distribution \newcommand{\eqs}[1]{\overline{\nu}_{#1}}  % equal-slices \newcommand{\ens}[1]{\widetilde{\nu}_{#1}}  % equal-nondengenerate-slices \newcommand{\prd}{\pi}  % a generic product distribution \newcommand{\distra}{\gamma}  % a generic distribution \newcommand{\distrb}{\xi}  % another generic distribution

\newcommand{\slice}{s}

\newcommand{\dtv}[2]{d_{\mathrm{TV}}(#1,#2)}  % total variation distance \newcommand{\dchi}[2]{d_{\chi^2}(#1,#2)}  % chi^2 distance

\newcommand{\chg}[3]{#1^{#2\rightarrow#3}}  % a string with some symbols replaced

\newcommand{\wild}{\mathord{\star}}  % wildcard symbol

\newcommand{\ppn}{p}  % proportion of coordinates free in the measure-embedding argument

\newcommand{\hj}[2]{\mathrm{HJ}_{#1}(#2)} \newcommand{\dhj}[2]{\mathrm{DHJ}_{#1}(#2)} \newcommand{\mdhj}[3]{\mathrm{MDHJ}_{#1}(#2,#3)} \newcommand{\edhj}[2]{\mathrm{EDHJ}_{#1}(#2)} \newcommand{\Pdhj}[2]{\mathrm{PDHJ}_{#1}(#2)} \newcommand{\pdhj}[2]{\epsilon_{#1}(#2)} \newcommand{\emdhj}[3]{\mathrm{EMDHJ}_{#1}(#2,#3)} \newcommand{\Pmdhj}[3]{\mathrm{PMDHJ}_{#1}(#2,#3)} \newcommand{\pmdhj}[3]{\epsilon_{#1}(#2,#3)}