From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103455 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice L Newsgroups: gmane.comp.tex.context Subject: getdocumentargument in Metafun Date: Fri, 22 Feb 2019 10:52:34 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7438336438678710851==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="7102"; mail-complaints-to="usenet@blaine.gmane.org" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 22 16:53:10 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gxD8I-0001VG-Rj for gctc-ntg-context-518@m.gmane.org; Fri, 22 Feb 2019 16:53:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 425AEF24F5; Fri, 22 Feb 2019 16:52:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ysN0csOSBmK8; Fri, 22 Feb 2019 16:52:38 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B32EF24FB; Fri, 22 Feb 2019 16:52:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 60022F24FB for ; Fri, 22 Feb 2019 16:52:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6elSsQQU18yD for ; Fri, 22 Feb 2019 16:52:36 +0100 (CET) Original-Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D06E5F24F5 for ; Fri, 22 Feb 2019 16:52:36 +0100 (CET) Original-Received: by mail-wm1-f54.google.com with SMTP id t15so2386354wmi.5 for ; Fri, 22 Feb 2019 07:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:date:message-id:subject:to; bh=+hmUrMWwwEVKzuvlP2vmTMWuhUCJm6+URPz+9m5Fyi0=; b=N11dL5oEzpq6IpwY/TLUCSwNJC/rt4vEXcCpfxaqtTQMOVY39CRrIj2UXsumpcwL8U EnmIvr/3yTTADPV0Uo4d2WRN+dWqs11A0i2Mb/uoze9qWgvth3em8CHFG4Gos5bKnYW/ G6HTL2jFSNp2ff+QtnxUZyGJ0nK3LFF+erJsdknuUGKRF8YBltnk6ZYMqtw1oEPTCjcl UaO9XcYYYyNM0kSz+CxHNYXVxEullk7akyIn8diB6RBk+YYXyhWXqNbHycD5/Xi78Rbj PvPOwzjvXuv35qbj/J+jhIEknp2JuWwCDaAVSH3KdR8wfo88QpggkURSXfqyqYjcZTEQ 9Zyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=+hmUrMWwwEVKzuvlP2vmTMWuhUCJm6+URPz+9m5Fyi0=; b=aak3obLsBU8bkYuveALAq/geZ1vVpbTx4mgvrVwGJXdrQ0BB/afflDmI4K37PlJ0Uh 1NRCxyBITUUsRrYR4a2/D1GHrJI+bCEouSgV7v6Q3iCio78ug4OQCYimp20p8qqKisNP OqWQ+cYd+TjNpfzBnyig/ppWvCqane+faEZLpw5qOH0cAbUpesVoxungdBsHy7Bgk2R6 IB1GKXqJ6QnGjd2beC+qOTQhpnVSP5LqcR4ErtURFTjSdSrHtxaQ/hHsCT82X2HEGusA b/YlA1T4D70lsk266pzg+KYqEJPtHAOEkR6QndshynanD/Lr5ZXYrmIP71N1UF9pDDxD bzrQ== X-Gm-Message-State: AHQUAuYRe7jbKO0gqiTQ0aEq84HQjqoV6PoqPniP2RWu2CkReW0Mb1gJ 7eBRj40vdXMg5IC+L0Ls97LYAuK+XL1QBAtJgZrboA== X-Google-Smtp-Source: AHgI3IaHun1Re/5WwdoiROGJuTwxHXu4Ir8scb6UWnKlabjjsbgKCbpNT0Q5eUB6O4EN2FMwyTL6cJcWjVOoM2lR6GU= X-Received: by 2002:a1c:cc19:: with SMTP id h25mr2911108wmb.80.1550850755823; Fri, 22 Feb 2019 07:52:35 -0800 (PST) Original-Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Feb 2019 10:52:34 -0500 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103455 Archived-At: --===============7438336438678710851== Content-Type: multipart/alternative; boundary="000000000000668d5305827d94a3" --000000000000668d5305827d94a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =E2=80=94File=3DEntryFile =E2=80=94Page=3D9 =E2=80=94resul= t=3DOutFile.pdf Minimal example: \starttext \startMPpage numeric ThePage ; string FileName ; FileName :=3D \getdocumentargument{File} ; ThePage :=3D \getdocumentargument{Page} ; draw textext("\externalfigure[" & FileName &"][page=3D" & 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. --000000000000668d5305827d94a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
Dear= list,

<= /div>
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 =E2=80=94File=3DEntryFile =E2=80=94Page=3D= 9 =E2=80=94result=3DOutFile.pdf

Minimal example:

\starttext
=C2=A0 \startMPpage=
= numeric ThePage ;
string FileName ;=C2=A0
FileName :=3D \getdocument= argument{File} ;
ThePage=C2=A0:=3D \getdocumentargument{Page} ;
<= span class=3D"Apple-tab-span" style=3D"white-space:pre"> draw textex= t("\externalfigure[" =C2=A0& FileName &"][page=3D&qu= ot;=C2=A0=C2=A0& ThePage &"]") xysized (48in,48in) ;
=C2=A0 \stopMPpage
\stoptext

I ca= n get in the MPpage the page number in entry (9 in my example), but not the= file name.=C2=A0
Thanks for any help.
Fabrice.


--000000000000668d5305827d94a3-- --===============7438336438678710851== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7438336438678710851==--