1 2 3 4
\input mfpic \AtBeginDocument{\opengraphsfile{mfpicex}} \AtEndDocument{\closegraphsfile} \endinput