[NTG-context] getdocumentargument in Metafun

Fabrice L fabrice.alpha at gmail.com
Fri Feb 22 16:52:34 CET 2019

Dear list,

I wish to do several zoom from a picture made in MetaFun, from a pdf file
which name is given on the commande line, like:

context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf

Minimal example:

numeric ThePage ;
string FileName ;
FileName := \getdocumentargument{File} ;
ThePage := \getdocumentargument{Page} ;
draw textext("\externalfigure["  & FileName &"][page="  & ThePage &"]")
xysized (48in,48in) ;

I can get in the MPpage the page number in entry (9 in my example), but not
the file name.
Thanks for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190222/ab4789bd/attachment.html>

More information about the ntg-context mailing list