%%
%% This is file `interfaces-embedfile.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% interfaces.dtx  (with options: `embedfile')
%% 
%% This is a generated file.
%% 
%% interfaces : 2010/11/21 v2.3 - 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-embedfile}
   [2010/10/27 v1.2 easy macros to embed files into pdf (FC)]
\RequirePackage{interfaces-base}
\itf@Check@Package{embedfile}
\newrobustcmd*\embedthisfile{\@ifstar
   \embedthisfile@main
   \embedthisfile@all
}% \embedthisfile
\@onlypreamble\embedthisfile
\def\embedthisfile@main{\embedfile{\jobname.tex}}
\def\embedthisfile@all{%
   \embedthisfile@main
   \AfterPreamble{%
      \ltx@ifundefined{@listfiles}
         {\let\@listfiles\@empty}% to avoid: \global\let\@filelist\relax in \document
         {}%
   }%
   \gpreto\@enddocumenthook{%
      \let\do\itf@EmbedOne
      \expandafter\docsvlist\expandafter{\@filelist}%
   }%
}% \embedthisfile@all
\def\itf@EmbedOne#1{\itf@Embed@ne#1.tex\@nil}
\def\itf@Embed@ne#1.tex#2\@nil{%
   \ltx@ifundefined{cp@#1}
      {}
      {\ifblank{#2}
         {}
         {\embedfile{#1.tex}}}%
}% \itf@Embed@ne
\endinput
%%
%% End of file `interfaces-embedfile.sty'.
