* getdocumentargument in Metafun @ 2019-02-22 15:52 Fabrice L 2019-02-22 16:07 ` Aditya Mahajan 0 siblings, 1 reply; 3+ messages in thread From: Fabrice L @ 2019-02-22 15:52 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 628 bytes --] 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: \starttext \startMPpage numeric ThePage ; string FileName ; FileName := \getdocumentargument{File} ; ThePage := \getdocumentargument{Page} ; draw textext("\externalfigure[" & FileName &"][page=" & ThePage &"]") xysized (48in,48in) ; \stopMPpage \stoptext I can get in the MPpage the page number in entry (9 in my example), but not the file name. Thanks for any help. Fabrice. [-- Attachment #1.2: Type: text/html, Size: 1841 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: getdocumentargument in Metafun 2019-02-22 15:52 getdocumentargument in Metafun Fabrice L @ 2019-02-22 16:07 ` Aditya Mahajan 2019-02-22 19:50 ` Fabrice L 0 siblings, 1 reply; 3+ messages in thread From: Aditya Mahajan @ 2019-02-22 16:07 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 377 bytes --] On Fri, 22 Feb 2019, Fabrice L wrote: > 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 Untested. Add quotes around FileName: > string FileName ; > FileName := "\getdocumentargument{File}" ; Aditya [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: getdocumentargument in Metafun 2019-02-22 16:07 ` Aditya Mahajan @ 2019-02-22 19:50 ` Fabrice L 0 siblings, 0 replies; 3+ messages in thread From: Fabrice L @ 2019-02-22 19:50 UTC (permalink / raw) To: mailing list for ConTeXt users, Aditya Mahajan [-- Attachment #1.1: Type: text/plain, Size: 770 bytes --] Le 22 février 2019 à 11:08:51, Aditya Mahajan (adityam@umich.edu) a écrit: Untested. Add quotes around FileName: > string FileName ; > FileName := "\getdocumentargument{File}" ; And not tested successfully ! Thanks a lot Aditya ! Fabrice. Aditya___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 2221 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-22 19:50 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-02-22 15:52 getdocumentargument in Metafun Fabrice L 2019-02-22 16:07 ` Aditya Mahajan 2019-02-22 19:50 ` Fabrice L
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).