\usepackage{longtable}
\usepackage[french]{varioref}
\usepackage{afterpage}

\let\verbfont\texttt
\let\filefont\texttt
\let\mailfont\texttt
%
\newcommand*\file[1]{\filefont{#1}}
\newcommand*\program[1]{\filefont{#1}}
\newcommand*\class[1]{\filefont{#1}}
\newcommand*\package[1]{\filefont{#1}}
\newcommand*\option[1]{\verbfont{#1}}
\newcommand*\enviro[1]{\verbfont{#1}}
\newcommand*\code[1]{\verbfont{#1}}
\newcommand*\cmd[1]{\verbfont{\textbackslash#1}}
\newcommand*\environnement[1]{\verbfont{#1}}
\newcommand*\obl[1]{\verbfont{\{#1\}}}
\newcommand*\opt[1]{\verbfont{[#1]}}
\newcommand*\compteur[1]{\verbfont{#1}}
\newcommand*\longueur[1]{\verbfont{#1}}
\newcommand*\motcle[1]{\verbfont{#1}}
\newcommand*\mail[1]{\mailfont{#1}}
\newcommand*\Var[1]{$\langle$#1$\rangle$}

\newcount\Xpos
\newcount\Ypos
\newcommand*\build[1]{%
  \def\arg{#1}%
  \unless\ifx\arg\empty
    \rput(\Xpos,\Ypos){%
      \rput[B](0.5,0.5){\small\cmd{T#1}}
      \rput(0.5,0.1){\csname T#1\endcsname}
    }
  \fi
  \advance\Ypos -1
  \ifnum\Ypos=-1
    \advance\Xpos 1
    \Ypos 15
  \fi
  \ignorespaces
}%
