%D \module %D [ file=metafun.mp, %D version=2000.07.15, %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=format generation file, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D When generating many graphics at runtime, it can save run %D time to use a format file. We could have named this file %D \type {context}, but this is error prone, because it forces %D to use the progname \type {mpost} or \type {context} %D explicitly, depending on the needs. When using the format, %D a mismatch in the memory specification of \type {mpost} or %D \type {context} (the \TEX\ one) could lead to lost strings %D (and as a result in buggy boundingbox and special %D handling). By using the name \type {metatex} we make sure %D that we use (unless overloaded) the settings of \type %D {mpost}. %D First we input John Hobby's metapost plain file. However, %D because we want to prevent dependency problems and in the %D end even may use a patched version, we prefer to use a %D copy. input "mp-base.mpii" ; input "mp-tool.mpii" ; input "mp-spec.mpii" ; input "mp-core.mpii" ; input "mp-page.mpii" ; input "mp-text.mpii" ; input "mp-txts.mpii" ; input "mp-shap.mpii" ; input "mp-butt.mpii" ; input "mp-char.mpii" ; input "mp-step.mpii" ; input "mp-grph.mpii" ; input "mp-figs.mpii" ; %%%%% "mp-form.mpii" ; input "mp-grid.mpii" ; input "mp-func.mpii" ; string metafunversion ; metafunversion = "metafun ii" & " " & decimal year & "-" & decimal month & "-" & decimal day & " " & if ((time div 60) < 10) : "0" & fi decimal (time div 60) & ":" & if ((time-(time div 60)*60) < 10) : "0" & fi decimal (time-(time div 60)*60) ; let normalend = end ; def end = ; message "" ; message metafunversion ; message "" ; normalend ; enddef ; % dump ;