%%
%%  Package mypp4                   P. L'Ecuyer, sept. 2003
%%


%% Options
\newif\ifback@white  \back@whitefalse
\newif\if@nopdf      \@nopdffalse
\newif\if@ignorepause \@ignorepausefalse

\DeclareOption{white}{\back@whitetrue}  % Black on white background.
\DeclareOption{nopdf}{\@nopdftrue}      % Will not produce .pdf
\DeclareOption{ignorepause}{\@ignorepausetrue} % Will discard the pause's

\ProcessOptions


%\usepackage[french]{babel}           % language support for French
\usepackage[latin1]{inputenc}        % allow Latin1 characters
%\usepackage{ifvtex}
%\usepackage{amscd}                 %% Celui-ci provoque des erreurs!!!
\usepackage{amsfonts}
\usepackage{ifpdf}
%\usepackage{myslides}
\usepackage{xcolor}
\usepackage{crayola}
\usepackage{verbatim}
% \usepackage{pictexwd}


% \usepackage{pstricks,pst-node}
%\usepackage{epsf}
%\usepackage{rotating}


% Running vtex we most probably also create pdf...
%
% \ifvtexpdf\pdftrue\fi
%\def\ifvtex{\iffalse}

% \ifpdf
\if@ignorepause\usepackage[ignore]{pause}% to ignore pause
\else\usepackage{pause}                 % loads also color.sty
\fi
%\usepackage{background}         %% Will write  DRAFT   on each page!!!
\usepackage{graphicx}            % for including graphics
\usepackage{geometry}
\usepackage{hyperref}

\iffalse 
\usepackage[dvipdfm]{pause}      % loads also color.sty
\usepackage[dvipdfm]{background}
\usepackage[dvips]{graphicx}
\usepackage[dvips]{geometry}
\usepackage[dvipdfm]{hyperref}
%% The following definition is only necessary, because we use variants
%% of the same graphics file in .mps and .eps format each. The variant
%% .mps is suitable for pdflatex and dvipdfm, the variant .eps is good
%% for vlatex and pdflatex. Therefore we have to set up a preference of
%% .mps for dvipdfm.
%% matrixb?e.eps is created from matrixb?e.fig using the option -p2 of
%% fig2dev. matrixb?e.mps is created running fig2dev without such an
%% option (see the manual for PPower4).
\DeclareGraphicsExtensions{.jpg,.jpeg,.pdf,.png,.mps,.eps,.ps}
\fi

\usepackage{pp4slide}
\geometry{headsep=0ex,hscale=0.9}
\topmargin=-0.7in

\setlength{\textheight}{8.7in}
%\setlength{\textwidth}{11.0cm}

\def\hpause{\hbox{\pause}} %% Does not change line.


%%%%%%%%%%%%%%%%%%%
%% select colors
\RequirePackage{color}
%%   for the frames/page numbers etc.
%% choose some colored item labels
% Make hyperlinks colored, not framed, if hypersetup is used
\ifx\hypersetup\undefined\relax\else
\hypersetup{colorlinks=true}
\fi

%
\ifback@white  %%%  To get black on white:
\renewcommand\Black{\color{black}}
\pagecolor{white}
\color{black}
%\definecolor{yel}{cmyk}{0.0,0.9,1.0,0.0}
\definecolor{yel}{cmyk}{0.0,0.8,1.0,0.1}
\definecolor{head}{cmyk}{0.1,1.0,0.5,0.0}
%\definecolor{vector}{cmyk}{0.0,0.8,1.0,0.4}  %% Boldface (vectors).
\definecolor{vector}{cmyk}{0.0,0.8,1.0,1.0}  %% Boldface (vectors).
\definecolor{tan}{cmyk}{0.20,0.40,0.50,0}
\definecolor{orange}{cmyk}{0.0,0.40,1.0,0.1}
\definecolor{emp}{cmyk}{1.0,0.5,0.0,0}       %  Royal blue
% \definecolor{ForestGreen}{cmyk}{0.91,0,0.88,0.12}
\definecolor{names}{cmyk}{0.93,0.0,0.90,0.16}
\definecolor{pink}{cmyk}{0.0,0.8,0,0}
\renewcommand\normalcolor{\color{red}}
\renewcommand{\labelitemi}{\textcolor{SeaGreen}{$\bullet$}}
\renewcommand{\labelitemii}{\textcolor{ForestGreen}{$\star$}}
\renewcommand{\labelitemiii}{\textcolor{Goldenrod}{$\ast$}}
\renewcommand{\labelitemiv}{\textcolor{yellow}{$\circ$}}
%
%
\else  %%%  To get white on dark blue:
\renewcommand\Black{\color{white}}
\definecolor{bgblue}{rgb}{0.01,0.06,0.20}
\pagecolor{bgblue}
\color{white}
% \definecolor{Dandelion}{cmyk}{0,0.25,0.84,0}
%\definecolor{head}{cmyk}{0,0.20,0.90,0}
\definecolor{head}{cmyk}{0,0.6,0.6,0}
\definecolor{yel}{cmyk}{0.0,0.05,1.0,0}   %  light yellow
\definecolor{emp}{cmyk}{0.50,0.0,0.0,0}   %  light cyan
\definecolor{names}{cmyk}{0.40,0.0,0.65,0}
% \definecolor{vector}{cmyk}{0.10,0.55,0.30,0}
\definecolor{vector}{cmyk}{0.05,0.40,0.20,0}
\definecolor{tan}{cmyk}{0.10,0.30,0.40,0}
\definecolor{orange}{cmyk}{0.0,0.25,0.6,0}
\definecolor{pink}{cmyk}{0.0,0.7,0,0}
\renewcommand\normalcolor{\color{head}}
\renewcommand{\labelitemi}{\textcolor{Dandelion}{$\bullet$}}
\renewcommand{\labelitemii}{\textcolor{tan}{$\star$}}
\renewcommand{\labelitemiii}{\textcolor{Goldenrod}{$\ast$}}
\renewcommand{\labelitemiv}{\textcolor{yellow}{$\circ$}}
\fi

%\definecolor{orange}{cmyk}{0,0.5,1,0.2}\
\def\yel#1{{\textcolor{yel}{#1}}}  %% When symbol is defined.
\def\orange#1{{\textcolor{orange}{#1}}}  %% When symbol is defined.
\def\emp#1{{\textcolor{emp}{#1}}}    %% Emphasize.
\def\emph#1{{\textcolor{emp}{#1}}}    %% Emphasize.
\def\head#1{{\color{head}\bf#1}}      %% Headers.
\def\names#1{{\textcolor{names}{#1}}}      %% Author's names and http.
\def\tan#1{{\textcolor{tan}{#1}}}
\def\bwhi{\Black}
\def\bred{\ifback@white\color{Purple}\else\color{pink}\fi}
\def\bgre{\color{names}}
\def\bemp{\color{emp}}
\def\eemp{\color{yel}}
\def\btan{\color{tan}}
\def\bora{\color{orange}}
\def\red{\color{head}}

\parskip = 6pt plus 3pt
\parsep  = 6pt plus 2pt 
\parindent = 0pt


%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%  Some personal macros in lmac.tex

\def\pierre#1{\fbox {\footnote {\ }}\ \footnotetext { From PL: #1}}
\def\hpierre#1{}

% Macros pour inserer des bouts de code (programmes).
% Faire  \code ...  \endcode
{\obeyspaces\gdef {\ }}
\def\setverbatim{\def\par{\leavevmode\endgraf}
            \parskip=0pt\parindent=0pt\obeylines\obeyspaces }
\chardef\other=12
\def\ttverbatim{\setverbatim\tt\color{yel}
       \catcode`\{=\other \catcode`\}=\other \catcode`\_=\other
       \catcode`\^=\other \catcode`\$=\other \catcode`\%=\other
       \catcode`\#=\other \catcode`\&=\other \baselineskip=11pt
       }
    % Reproduit tel quel ce qui est ecrit, en caracteres \tt.
    % On doit faire  \begingroup\ttverbatim   ....  \endgroup
\def\smallttverbatim{\ttverbatim\small\tt}
\def\code {\vfil\vfilneg\vbox\bgroup\ttverbatim\smallc}
\def\longcode {\vfil\vfilneg\bgroup\ttverbatim}
\def\smallc {\small\tt\baselineskip=9.5pt}
\def\footc {\footnotesize\tt\baselineskip=9.0pt}
\def\smallcode {\code\smallc}
\let\endcode=\egroup
\let\vcode=\code
\let\endvcode=\egroup

\def\parup{\nobreak\vskip -2pt\nobreak}
\def\tab{\small\parindent=0pt\advance\leftskip by 1.5em\parup}
\def\tabb{\small\parindent=0pt\advance\leftskip by 3.0em\parup}
\def\tabbb{\small\parindent=0pt\advance\leftskip by 4.5em\parup}
\def\endtab{\vskip 0.01pt\advance\leftskip by -1.5em\normalsize}
\def\endtabb{\vskip 0.01pt\advance\leftskip by -3.0em\normalsize}
\def\endtabbb{\vskip 0.01pt\advance\leftskip by -4.5em\normalsize}

% Macros (avec switch) pour faire apparaitre les noms des labels dans les eqs.
% Utiliser \eqlabel au lieu de \label.  Doit laisser un espace apres le }
% Pour que les etiquettes apparaissent, faire \seeeqlabelstrue  au debut.
\newif\ifseeeqlabels\seeeqlabelsfalse
\newbox\eqlab \setbox\eqlab=\hbox {}
\def\eqlabel#1{\global\setbox\eqlab=\hbox
   {\ifseeeqlabels {\rm (#1)} \else {} \fi } \label{#1}}
\def\@eqnnum {{\rm \box\eqlab \setbox\eqlab=\hbox {} (\theequation)}}

\catcode`\@=12

\def\?{\discretionary{}{}{}}  % Same as \- but does not print the - sign
                              % (useful to hyphenate in math mode).
\def\mod{\mbox{\sf\ mod\ }}        % Modulo.
\def\modns{\mbox{\sf mod\ }}       % Modulo, no space before.
\def\MOD{\mbox{\sf\ MOD\ }}
\def\div{\mbox{\sf\ div\ }}        % Division entiere.
\def\lcm{\mbox{\sf lcm }}

\def\eqdef {\stackrel {\rm def}{=}}      % Egal par definition.
\def\eqas  {\stackrel {\rm w.p.1}{=}}    % Egal w.p.1.
\def\toas  {\stackrel {\rm w.p.1}{\to}}  % ---> conv. w.p.1
\def\top   {\stackrel {\rm p}{\to}}      % ---> conv. en probabilit\'e.
\def\tod   {~\Rightarrow~}               % ---> conv. en distribution.
\def\To    {\tod}
\def\q     {$\kern1.4em$}    % Indentation spaces for slides, algor, programs.
\def\disp {\displaystyle}

\def\MSE {\mbox{\rm MSE}}
\def\RE  {\mbox{\rm RE}}
% \def\Pr  {\mbox{\bf P}}
\def\Pr  {\P}
\def\P   {\mathbb{P}}
%\def\E   {\mbox{\bf E}}
%\def\I   {\mbox{\bf I}}
\def\E   {\mathbb{E}}
\def\I   {\mathbb{I}}
\def\Var {\mbox{\rm Var}}
\def\Cov {\mbox{\rm Cov}}
\def\Corr{\mbox{\rm Corr}}
\def\pdf {\mbox{\rm pdf}}
\def\pmf {\mbox{\rm pmf}}
\def\cdf {\mbox{\rm cdf}}
\def\Vol {\mbox{\rm Vol}}
\def\vol {\mbox{\rm vol}}
\def\det {\mbox{\rm det}}
\def\ord {\mbox{\rm ord}}
\def\eff {\mbox{\rm Eff}}
\def\iid {\mbox{\rm i.i.d.{}}}
\def\iu01{\mbox{\rm IU01}$\:$}
\def\g   {{\;\leftarrow\;}}
\def\tr  {{\sf t}}

\def\dDUnif   {{\rm DiscreteUniform}}
\def\dBer     {{\rm Bernoulli}}
\def\dBinomial{{\rm Binomiale}}
\def\dGeo     {{\rm Geometric}}
\def\dNegBinomial {{\rm NegativeBinomial}}
\def\dPoisson {{\rm Poisson}}
\def\dMultinomial {{\rm Multinomial}}
%
\def\dUnif    {{\rm Uniforme}}
\def\dNormal  {{\rm Normale}}
\def\dLognormal {{\rm Lognormale}}
\def\dExpon   {{\rm Exponentielle}}
\def\dWeibull {{\rm Weibull}}
\def\dGamma   {{\rm Gamma}}
\def\dBeta    {{\rm Beta}}
\def\dStudent {\mbox{\rm Student-t}}
\def\dChiSquare {{\chi^2}}
\def\dFisher  {\mbox{\rm F}}
\def\dErlang  {{\rm Erlang}}
\def\dPareto  {{\rm Pareto}}
\def\dGumbel  {{\rm Gumbel}}
\def\dPearson {\mbox{\rm Pearson}}
\def\dPearsonV {\mbox{\rm Pearson-5}}
\def\dPearsonVI{\mbox{\rm Pearson-6}}
\def\dRayleigh {{\rm Rayleigh}}
\def\dLogistic {{\rm Logistic}}
\def\dCauchy   {{\rm Cauchy}}

\def\Fmk {\F_{m^k}}

\renewcommand{\AA}{\mathbb{A}}
\newcommand{\BB}{\mathbb{B}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\DD}{\mathbb{D}}
\newcommand{\EE}{\mathbb{E}}
\newcommand{\FF}{\mathbb{F}}
\newcommand{\II}{\mathbb{I}}
\newcommand{\LL}{\mathbb{L}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\PP}{\mathbb{P}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\renewcommand{\SS}{\mathbb{S}}
\newcommand{\ZZ}{\mathbb{Z}}


\def\cA   {{\cal A}}
\def\cB   {{\cal B}}
\def\cC   {{\cal C}}
\def\cD   {{\cal D}}
\def\cE   {{\cal E}}
\def\cF   {{\cal F}}
\def\cG   {{\cal G}}
\def\cH   {{\cal H}}
\def\cI   {{\cal I}}
\def\cJ   {{\cal J}}
\def\cK   {{\cal K}}
\def\cL   {{\cal L}}
\def\cM   {{\cal M}}
\def\cN   {{\cal N}}
\def\cO   {{\cal O}}
\def\cP   {{\cal P}}
\def\cQ   {{\cal Q}}
\def\cS   {{\cal S}}
\def\cT   {{\cal T}}
\def\cU   {{\cal U}}

\def\ba  {{\color{vector} a}}
\def\bA  {{\color{vector}\bf A}}
\def\bb  {{\color{vector}\bf b}}
\def\bB  {{\color{vector}\bf B}}
\def\bc  {{\color{vector}\bf c}}
\def\bC  {{\color{vector}\bf C}}
\def\bd  {{\color{vector}\bf d}}
\def\bD  {{\color{vector}\bf D}}
\def\be  {{\color{vector}\bf e}}
\def\bI  {{\color{vector}\bf I}}
\def\bG  {{\color{vector}\bf G}}
\def\bh  {{\color{vector}\bf h}}
\def\bH  {{\color{vector}\bf H}}
\def\bm  {{\color{vector}\bf m}}
\def\bL  {{\color{vector}\bf L}}
\def\bM  {{\color{vector}\bf M}}
\def\bp  {{\color{vector}\bf p}}
\def\bP  {{\color{vector}\bf P}}
\def\bq  {{\color{vector}\bf q}}
\def\bQ  {{\color{vector}\bf Q}}
\def\bR  {{\color{vector}\bf R}}
\def\bs  {{\color{vector}\bf s}}
\def\bS  {{\color{vector}\bf S}}
\def\bt  {{\color{vector}\bf t}}
\def\bT  {{\color{vector}\bf T}}
\def\bu  {{\color{vector}\bf u}}
\def\bU  {{\color{vector}\bf U}}
\def\bv  {{\color{vector}\bf v}}
\def\bV  {{\color{vector}\bf V}}
\def\bw  {{\color{vector}\bf w}}
\def\bW  {{\color{vector}\bf W}}
\def\bx  {{\color{vector}\bf x}}
\def\bX  {{\color{vector}\bf X}}
\def\by  {{\color{vector}\bf y}}
\def\bY  {{\color{vector}\bf Y}}
\def\bz  {{\color{vector}\bf z}}
\def\bZ  {{\color{vector}\bf Z}}
\def\tbA {\tilde{\color{vector}\bf A}}
\def\tbs {\tilde{\color{vector}\bf s}}
\def\tbu {\tilde{\color{vector}\bf u}}
\def\bzero  {{\color{vector}\bf 0}}

\def\boldeta {\mbox{\boldmath $\eta$}}
\def\bbeta  {\mbox{\boldmath $\beta$}}
\def\bmu    {\mbox{\boldmath $\mu$}}
\def\bnu    {\mbox{\boldmath $\nu$}}
\def\bepsilon {\mbox{\boldmath $\epsilon$}}
\def\bpi    {\mbox{\boldmath $\pi$}}
\def\bxi    {\mbox{\boldmath $\xi$}}
\def\bPi    {\mbox{\boldmath $\Pi$}}
\def\bSigma {\mbox{\boldmath $\Sigma$}}
\def\bPhi   {\mbox{\boldmath $\Phi$}}
\def\bPsi   {\mbox{\boldmath $\Psi$}}
\def\bTheta {\mbox{\boldmath $\Theta$}}

%\def\bbeta  {\mbox{\color{vector}\bf $\beta$}}
%\def\bSigma {\mbox{\color{vector}\bf $\Sigma$}}
%\def\bPsi   {\mbox{\color{vector}\bf $\Psi$}}
%\def\bPi    {\mbox{\color{vector}\bf $\Pi$}}

\def\rmi  {{\rm i}}
\def\rma  {{\rm a}}
\def\rmC  {{\rm C}}
\def\rme  {{\rm e}}
\def\rmee {{\rm ee}}
\def\rmef {{\rm ef}}
\def\rmep {{\rm ep}}
\def\rmc  {{\rm c}}
\def\rmce {{\rm ce}}
\def\rmca {{\rm ca}}
\def\rmck {{\rm ck}}
\def\rmcs {{\rm cs}}
\def\rmcp {{\rm cp}}
\def\rmg  {{\rm g}}
\def\rmh  {{\rm h}}
\def\rmi  {{\rm i}}
\def\rmis {{\rm is}}
\def\rmK  {{\rm K}}
\def\rmKC {{\rm KC}}
\def\rmlh {{\rm lh}}
\def\rmlr {{\rm lr}}
\def\rmlrs{{\rm lrs}}
\def\rmmm {{\rm mm}}
\def\rmM  {{\rm M}}
\def\rmPC {{\rm PC}}
\def\rmrs {{\rm rs}}
\def\rms  {{\rm s}}
\def\rmso {{\rm so}}
\def\rmsp {{\rm sp}}
\def\rmsr {{\rm sr}}
\def\rmse {{\rm se}}
\def\rmsa {{\rm sa}}
\def\rmsee {{\rm see}}
\def\rmsep {{\rm sep}}
\def\rmsw {{\rm sw}}
\def\rmt  {{\rm t}}
\def\rmu  {{\rm u}}
\def\rmx  {{\rm x}}
\def\rmX  {{\rm X}}
\def\rmy  {{\rm y}}
\def\rmz  {{\rm z}}


\def\bpi {\mbox{\color{vector}\boldmath $\pi$}}
\def\bPi {\mbox{\color{vector}\boldmath $\Pi$}}
\def\bPhi{\mbox{\color{vector}\boldmath $\Phi$}}


\def\byC {{\bf \yel{C}}}
\def\byh {{\bf \yel{h}}}
\def\byq {{\bf \yel{q}}}
\def\byzero {{\bf \yel{0}}}
\def\bya  {{\color{yel}\bf a}}
\def\byA  {{\color{yel}\bf A}}
\def\byb  {{\color{yel}\bf b}}
\def\byB  {{\color{yel}\bf B}}
\def\byc  {{\color{yel}\bf c}}
\def\byC  {{\color{yel}\bf C}}
\def\byd  {{\color{yel}\bf d}}
\def\byD  {{\color{yel}\bf D}}
\def\bye  {{\color{yel}\bf e}}
\def\byI  {{\color{yel}\bf I}}
\def\byG  {{\color{yel}\bf G}}
\def\byh  {{\color{yel}\bf h}}
\def\byH  {{\color{yel}\bf H}}
\def\bym  {{\color{yel}\bf m}}
\def\byL  {{\color{yel}\bf L}}
\def\byM  {{\color{yel}\bf M}}
\def\byp  {{\color{yel}\bf p}}
\def\byP  {{\color{yel}\bf P}}
\def\byq  {{\color{yel}\bf q}}
\def\byQ  {{\color{yel}\bf Q}}
\def\byR  {{\color{yel}\bf R}}
\def\bys  {{\color{yel}\bf s}}
\def\byS  {{\color{yel}\bf S}}
\def\byt  {{\color{yel}\bf t}}
\def\byT  {{\color{yel}\bf T}}
\def\byu  {{\color{yel}\bf u}}
\def\byU  {{\color{yel}\bf U}}
\def\byv  {{\color{yel}\bf v}}
\def\byV  {{\color{yel}\bf V}}
\def\byw  {{\color{yel}\bf w}}
\def\byW  {{\color{yel}\bf W}}
\def\byx  {{\color{yel}\bf x}}
\def\byX  {{\color{yel}\bf X}}
\def\byy  {{\color{yel}\bf y}}
\def\byY  {{\color{yel}\bf Y}}
\def\byz  {{\color{yel}\bf z}}
\def\byZ  {{\color{yel}\bf Z}}
\def\tbyA {\tilde{\color{yel}\bf A}}
\def\tbys {\tilde{\color{yel}\bf s}}
\def\tbyu {\tilde{\color{yel}\bf u}}
\def\byzero  {{\color{yel}\bf 0}}

\def\cA {\mathcal{A}}
\def\cB {\mathcal{B}}
\def\cC {\mathcal{C}}
\def\cF {\mathcal{F}}
\def\cI {\mathcal{I}}
\def\cJ {\mathcal{J}}
\def\cL {\mathcal{L}}
\def\cN {\mathcal{N}}
\def\cR {\mathcal{R}}
\def\cS {\mathcal{S}}
\def\cU {\mathcal{U}}
\def\cH {\mathcal{H}}
\def\cP {\mathcal{P}}
\def\card {\mbox{\rm card}}
\def\To {\Rightarrow}
\def\q  {\null$\kern2.0em$}
\def\?{\discretionary{}{}{}}  % Same as \- but does not print the - sign
                              % (useful to hyphenate in math mode).
\def\From {From }
\def\mod{{\rm\ mod\ }}        % Modulo.
\def\MOD{{\rm\ MOD\ }}
\def\div{{\rm\ div\ }}        % Division entiere.
\def\DIV{{\rm\ DIV\ }}
\def\var{{\rm var }}        % Variance.
\def\Var{{\rm Var }}
\def\Cov{{\rm Cov }}
\def\MSE{{\rm MSE }}
\def\PLR{{\rm PLR }}



