% 
% Header file for tutorial.tex
%
\usepackage{makerobust} % 
\usepackage{whitecdp} % 
%
% 1997/11/19 add count1to package
% \usepackage{count1to} % POSE DES TAS DE PROBLEMES
%
% Spacing
%%\newcommand{\singlespace}
%%  {\addtolength{\baselineskip}{-.333\baselineskip}}
%%\newcommand{\doublespace}
%%  {\addtolength{\baselineskip}{.5\baselineskip}}

% Spacing for the whole document 
\newcommand{\currentspace}{} % use this for single space
% \newcommand{\currentspace}{\doublespace} % use this for double space

% Common abbreviations
% (Remember to put '\ ' after if an interword space is
%  desired rather than end-of-sentence space. Same for '.etc)' ).
\providecommand{\eg}{{\em e.g.}}		% e.g.
\providecommand{\ie}{{\em i.e.}}		% i.e.
\newcommand{\etc}{{\em etc.}}		% etc.
\newcommand{\VSP}{{\em vs.}}		% vs.
\newcommand{\usec}{{$\mu$}sec}	% microseconds

% \boxfigure{pos}{wid}{text}:  A figure with a box around it
%
% pos	the usual figure placement arg: eg. htbp
% wid	the width of the figure, in some units: eg. 5in
% text	the contents of the figure, including picture/caption/label/etc
%
\makeatletter
\@ifundefined{boxwidth}{\newlength{\boxwidth}}{}
\makeatother
\newcommand{\boxfigure}[3]{
	\begin{figure}[#1]
		\setlength{\boxwidth}{#2}
		\addtolength{\boxwidth}{.1in}

		\centering
		\framebox[\boxwidth]{
			\begin{minipage}{#2}
			#3
			\end{minipage}
		}
	\end{figure}  
}

% use \fullboxwidth for arg 2 of boxfigure to get box of size \textwidth

% To show a syntax for a gnutex command
\newenvironment{syntax}{\begin{quote}\tt}{\end{quote}}

%%\documentstyle[titlepage,11pt]{article}

% Margins
%%\sloppy
%%\setlength{\textwidth}{6.5in}
%%\setlength{\textheight}{9in}
%%\setlength{\topmargin}{-0.5in}
%%\setlength{\oddsidemargin}{0pt}
%%\setlength{\evensidemargin}{0pt}

% see above
\makeatletter
\@ifundefined{fullboxwidth}{\newlength{\fullboxwidth}}{}
\makeatother
\setlength{\fullboxwidth}{\textwidth}
\addtolength{\fullboxwidth}{-0.1in}

\def\AUX{{\tt.aux}}
\def\DVI{{\tt.dvi}}
\def\smallrm{\small\rm}

%\setlength{\marginparsep}{.5\marginparsep}
%\setlength{\marginparsep}{.8\marginparsep}

%\usepackage{makerobust} % 
\newif\ifkiso \kisofalse % CLAVIER 8 BITS
\makeatletter
\def\NOBREAK{\nobreak \@nobreaktrue}
\providecommand\Nopagebreak{\@nobreaktrue\nopagebreak}
%\usepackage{makerobust} % 
\usepackage{alltex} % \AllTeX
\@ifundefined{PlainTeX}{\def\PlainTeX{\textsc{Plain}\penalty0\kern2pt\TeX}}{}
\makeatother
\providecommand{\ArabTeX}{{Arab\protect\TeX}}
\def\TPTrlap#1{} % pb. avec threeparttable.sty
%%%% \TeSLa
\def\TeSLa{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emS\kern-.10em\La}
\def\La{{%\reset@font
\textrm{L\kern-.36em\raise.3ex\hbox{\textsc{\MakeLowercase{a}}}\kern-.15em}}}
%
%%%%% \xindy
%\providecommand{\xindy}{%%
%   \mbox{\normalfont%%
%        \textbf{\textsf{x\kern-0.7pt%%
%        \shortstack{{\scriptsize$\circ$}\\[-2pt]\i}%%
%        \kern-1pt%%
%        ndy}}}}
%% ou plus simple (\r existe maintenant!):
\providecommand{\xindy}{%%
   \mbox{\normalfont\textbf{\textsf{x\r{\i}ndy}}}}

%\usepackage{smaller,makerobust}
%\renewcommand{\xindy}{%%
%   \mbox{\normalfont%%
%	 \textbf{\textsf{x\kern-.07ex%%
%	 \protect\shortstack{{\smaller\smaller\smaller$\circ$}\\[-.2ex]\protect\i}%%
%	 \kern-.1ex%%
%	 ndy}}}}
%\makerobust{\xindy}
%

%\usepackage[TS1,OT1,T1]{fontenc}
\usepackage{smaller,makerobust,textcomp}
\renewcommand{\xindy}{%%
   \mbox{\normalfont%%
         \textbf{\textsf{x\kern-.1ex%%
         %\protect\shortstack{{\smaller\smaller\smaller$\circ$}\\[-.2ex]\protect\i}%%
	 {\unitlength=1ex\begin{picture}(.6,1.2)
	 \put(.6,0){\makebox(0,0)[b]{\i}}
	 \put(.6,1.2){\makebox(0,0)[b]{\smaller\smaller$\circ$}}\end{picture}}
         \kern-.4ex%%
         ndy}}}}
\makerobust{\xindy}
\newcommand{\XINDY}{%%
   \mbox{\normalfont%%
         \textbf{\textsf{X\kern-.1ex%%
	 {\unitlength=1ex\begin{picture}(.6,1.2)
	 \put(.6,0){\makebox(0,0)[b]{I}}
	 \put(.6,1.7){\makebox(0,0)[b]{\smaller\smaller\smaller\Large$\circ$}}\end{picture}}
         \kern-.4ex{}%%
         NDY}}}}
\makerobust{\XINDY}
\newcommand{\Xindy}{%%
   \mbox{\normalfont%%
         \textbf{\textsf{X\kern-.1ex%%
	 {\unitlength=1ex\begin{picture}(.6,1.2)
	 \put(.6,0){\makebox(0,0)[b]{I}}
	 \put(.6,1.7){\makebox(0,0)[b]{\smaller\smaller\smaller$\circ$}}\end{picture}}
         \kern-.4ex{}%%
         NDY}}}}
\makerobust{\Xindy}
\def\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC}
\def\PiCTeX{\PiC\kern-.11em\TeX}
\def\FastPiCTeX{F\kern-.30em\lower.5ex\hbox{A}\kern-.12emS\kern-.18em\lower-0.5ex\hbox{T}\PiCTeX}
%
%\usepackage{checklab} %ESSAI
\IfFileExists{nomakecmds.key}{}{\usepackage{makecmds}}
\usepackage{regcount} %ESSAI
\providecommand{\cplusplus}{%
   {%
      C%
      \settoheight{\dimen0}{C}%
      \settowidth{\dimen1}{{\ensuremath{\scriptstyle++}}}%
      \parbox[b][\dimen0][c]{\dimen1}{\ensuremath{\scriptstyle++}}%
   }%
}
\providecommand{\newsmartlabel}[2]{\relax}
\newcommand*\Cpp{C\texttt{++}}
