diff options
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mp-mlib.mp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/metapost/context/base/mp-mlib.mp b/metapost/context/base/mp-mlib.mp index cedfa9f7b..e812df61e 100644 --- a/metapost/context/base/mp-mlib.mp +++ b/metapost/context/base/mp-mlib.mp @@ -406,14 +406,21 @@ enddef ; % fi ; % enddef ; +def withmask primary filename = + withprescript "fg_mask=" & filename +enddef ; + def externalfigure primary filename = - if true : - draw rawtextext("\externalfigure[" & filename & "]") + if false : + rawtextext("\externalfigure[" & filename & "]") else : image ( addto currentpicture doublepath unitsquare withprescript "fg_name=" & filename ; ) +% unitsquare +% withpen pencircle scaled 0 +% withprescript "fg_name=" & filename fi enddef ; |