%-------mylist.sty 
%
% Utilisation : \Mylisting{nom_de_fichier}
%
%                                     last mods  --bg 2000/03/07
%%
%%      checksum        = "30783 109 227 3815"
%%
\def\uncatcodespecials{\def\do##1{\catcode`##1=12 }\dospecials}
% Listing is defined later
%\ifx\Mylisting\undefined% if no listing style already loaded
%\def\Mylisting#1{\par\begingroup%
%\setupverbatim\input #1 \endgroup}
%\fi

\font\ttlisting=cmtt8 scaled 700

\def\setupverbatim{\baselineskip=0pt\ttlisting %\lineo=0
    \def\par{\leavevmode\endgraf}
    \catcode`\`=\active
    \obeylines\uncatcodespecials\obeyspaces
    \parskip=0pt plus 1pt}

{\obeyspaces\global\let =\ } % let active space = control space
{\catcode`\`=\active 
 \ifx`\undefined\gdef\Gdef{\def`{\relax\lq}}
           \else\gdef\Gdef{}\fi
}\Gdef
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%SUPERVERBATIM.STY
\def\uncatcodespecials{\def\do##1{\catcode`##1=12 }\dospecials}
\ifx\Mylisting\undefined%
\def\Mylisting#1{\par\begingroup\makeatletter% obscurely needed now for AmSLaTeX
                   \setupverbatim\IfFileExists{#1}{\input #1}%
                                  {Fichier non trouv\'e.}\endgroup}
\else\ifx\prelisting\undefined\else\prelisting{\tt\footnotesize}%
                               \labelstyle[1]{}\spreadlisting{2cm}\fi%
     \def\Mylisting#1{% just for using listings package but will
                      \IfFileExists{#1}{%
                    \inputlisting{#1}}% remove its listing environnement
                                        }{Fichier non trouv\'e.}%
\fi% 
\def\copyfile#1{\par\begingroup\setupinclure\input #1 \endgroup}
%
\newcount\lineno % the number of the file lines listed
\def\setupverbatim{\tt \lineno=0
  \def\par{\leavevmode\endgraf} \catcode`\`=\active
  \obeylines \uncatcodespecials \obeyspaces
  \parskip=0pt plus 1pt
  \everypar{\advance\lineno by1 \llap{\rm\the\lineno\ \ }}}
{\obeyspaces\global\let =\ } % let active space = control space
%{\catcode`\`=\active \gdef`{\relax\lq}}
{\catcode`\`=\active 
 \ifx`\undefined\gdef\Gdef{\def`{\relax\lq}}
           \else\gdef\Gdef{}\fi
}\Gdef
%
\def\sautpar{\par\medskip}

\def\setupinclure{\tt \lineno=0
  \def\par{\leavevmode\endgraf} \catcode`\`=\active
    \obeylines \uncatcodespecials \obeyspaces
  \parskip=0pt plus 1pt}

\def\lignett#1{\noindent\hskip 2truecm{\tt#1}\par}

\def\ttligne{\begingroup\Setupverbatim\doverbatim}
\def\doverbatim#1{\def\next##1#1{##1\endgroup}\next}
\def\Setupverbatim{\tt
  \def\par{\leavevmode\endgraf} \catcode`\`=\active
  \obeylines \uncatcodespecials \obeyspaces
  \parskip=0pt plus 1pt}
%
\def\debuttt{\medskip
              \begingroup
               \obeylines \tt
               \obeyspaces
               \parskip=0pt
               \baselineskip=12pt plus .1pt
               \parindent=0pt}
\def\fintt{\endgroup\par}
\def\termtype{\medskip
             \trivlist \item[]
             \def\par{\hbox{}\@@par}
             \obeylines
             \tt
             \obeyspaces
             \obeycr
             \@vobeyspaces
             \parskip=0pt
             \baselineskip=12pt plus .1pt
             \parindent=0pt}
\let\endtermtype=\endtrivlist
{\catcode`\ =\active\gdef\@vobeyspaces{\catcode`\ \active\let \@xobeysp}}
\def\@xobeysp{\leavevmode\penalty10000\ }
{\catcode`\^^M=13 \gdef\@gobblecr{\@ifnextchar
{\@gobble}{\ignorespaces}}}
\def\envprog{\trivlist \item[]\vskip\parskip
\parindent0pt\parskip\z@
\def\par{\hbox{}\@@par}\obeylines \tt
\catcode``=13\catcode`\^^M=13
\frenchspacing\@vobeyspaces}
\let\endenvprog=\endtrivlist
\ifx\ProvidesPackage\undefined\else% 
    \ProvidesPackage{mylist}[1998/06/10 Temporary ``list'' package %
                             from the french dist.]%
\fi%
\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
