\input docstrip.tex \keepsilent \askforoverwritefalse \generate{ \file{\jobname.cls}{\from{\jobname.dtx}{package}} } \endbatchfile