%%
%% This is file `interfaces-enumitem.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% interfaces.dtx  (with options: `enumitem')
%% 
%% This is a generated file.
%% 
%% interfaces : 2010/11/26 v2.4 - interfaces : interfaces with keys for other packages (FC)
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
%% version. The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% 
%% This work consists of the main source file interfaces.dtx
%% and the derived files
%%     interfaces.sty, interfaces.pdf, interfaces.ins,
%%     interfaces-base.sty,
%%     interfaces-LaTeX.sty,
%%     interfaces-tikz.sty,
%%     interfaces-titlesec.sty,
%%     interfaces-hyperref.sty,
%%     interfaces-bookmark.sty,
%%     interfaces-hypbmsec.sty,interfaces-hypbmsec.code.tex,
%%     interfaces-fancyhdr.sty,
%%     interfaces-marks.sty,
%%     interfaces-tocloft.sty,
%%     interfaces-makecell.sty,
%%     interfaces-enumitem.sty,
%%     interfaces-truncate.sty,
%%     interfaces-appendix.sty,
%%     interfaces-embedfile.sty,
%%     interfaces-environ.sty,
%%     interfaces-umrand.sty,
%%     interfaces-scrlfile.sty,
%%     interfaces-pgfkeys.sty,
%%     interfaces-etoolbox.sty
%% 
%% interfaces: interfaces with keys for other packages (FC)
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%% 
\ProvidesPackage{interfaces-enumitem}
   [2010/11/15 v2.1 more control on lists (FC)]
\RequirePackage{interfaces-base}
\itf@Check@Package{enumitem}
\itf@pgfkeys
\providerobustcmd*\interitem{%
   \item[]\hskip-\leftmargin
}% \interitem
\renewrobustcmd*\setlist{\begingroup \@ifstar
   {\let\do\csgappto \itf@setlist}
   {\let\do\csgdef   \itf@setlist}%
}% \setlist
\newrobustcmd*\itf@setlist[2][0]{%
   \let\enit@a\@empty
   \let\enit@b\@empty
   \@for\x:=#1\do{%
      \ifx\x\@empty\else
         \itf@number\count@\x\relax\@nnil
            {\edef\enit@b{\enit@b,\the\count@}}
            {\edef\enit@a{\enit@a,\x}}%
      \fi}%
   \ifx\enit@a\@empty\def\enit@a{list}\fi
   \ifx\enit@b\@empty\def\enit@b{0}\fi
   \@for\a:=\enit@a\do{%
      \ifx\a\@empty\else
      \@for\b:=\enit@b\do{%
         \ifx\b\@empty\else
         \ifcsundef{end\a}
            {\expandafter\itf@setlist@error\expandafter{\a}}
            {\do{enit@@\a\romannumeral\b}{,#2}}%
         \fi}%
      \fi}
   \endgroup
}% \itf@setlist
\def\itf@setlist@error#1{%
   \PackageError{interfaces-enumitem}
      {Environment `#1` is undefined
      \MessageBreak Use \string\newlist\space before \string\setlist
      \MessageBreak Your command will be ignored}\@eha
}% \itf@setlist@error
\endinput
%%
%% End of file `interfaces-enumitem.sty'.
