From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89418 Path: news.gmane.org!not-for-mail From: context context Newsgroups: gmane.comp.tex.context Subject: Asymptote in Context Date: Sun, 7 Dec 2014 17:50:08 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2054877751==" X-Trace: ger.gmane.org 1418027568 28620 80.91.229.3 (8 Dec 2014 08:32:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 08:32:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 08 09:32:44 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XxtkK-0007Jy-3H for gctc-ntg-context-518@m.gmane.org; Mon, 08 Dec 2014 09:32:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 854D11022A for ; Mon, 8 Dec 2014 09:32:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZdQVW0wfTodV for ; Mon, 8 Dec 2014 09:32:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CF8EF10237 for ; Mon, 8 Dec 2014 09:32:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E50F101FC for ; Sun, 7 Dec 2014 18:50:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FAnCQ2Z3JWkT for ; Sun, 7 Dec 2014 18:50:10 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id CCF0D101E8 for ; Sun, 7 Dec 2014 18:50:10 +0100 (CET) Original-Received: from mail-oi0-x244.google.com (mail-oi0-x244.google.com [IPv6:2607:f8b0:4003:c06::244]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sB7Ho9aM002933 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 7 Dec 2014 18:50:10 +0100 Original-Received: by mail-oi0-f68.google.com with SMTP id e131so538564oig.11 for ; Sun, 07 Dec 2014 09:50:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SU20UMxk7Ow5HrEum4gf3huIcICMqjHKAG9Yclc/U/o=; b=QodpiGmfu5p4CPCs5ZLfUQcfFC/ySHB3+bMfxruMbwU/ZZfua70tqA2lMgTaDNCy5W W2IsLughtxo10zWlT8AJkQGctRSlVXsrhNwju4UxtGuYVZ9a4FRQ43WToA4AKUuJQvqd Y8jW6h9fNGrmJboCXABOhfpnZTT7ajvwt2mY7venHf2C9OiqBhv2MHxTCONFayWRg8Gk BSD50aauJ/TgGuDN/NFID+lP3DcfDZ9qzy/QUIKuDECU0YSJOFraGSFHjnTFr7MKa7jn I0zfIB3YXKAqHy1dZ2EDCkAqI4MJWq6+3O39iQNW1FfovM72G2LR4v7liYm9UdljL6W0 wjtQ== X-Received: by 10.202.169.200 with SMTP id s191mr4601337oie.7.1417974608611; Sun, 07 Dec 2014 09:50:08 -0800 (PST) Original-Received: by 10.182.150.39 with HTTP; Sun, 7 Dec 2014 09:50:08 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c06::244; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NoFOaLC - 27062c5d202e - 20141207 X-Scanned-By: CanIt (www . roaringpenguin . com) X-Mailman-Approved-At: Mon, 08 Dec 2014 09:32:13 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:89418 Archived-At: --===============2054877751== Content-Type: multipart/alternative; boundary=001a113cb036d8d0760509a3f042 --001a113cb036d8d0760509a3f042 Content-Type: text/plain; charset=UTF-8 I have been trying to put Asymptote graphs in Context with the filter example below. The Asymptote graph is written in a separate PDF file, but is not included in the final completed PDF document. Is there a simple way to achieve this? \usemodule[filter] \defineexternalfilter [ASY] [filtercommand={asy -tex "context" -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY[myplot] draw((1,1)--(2,4)); \stopASY \externalfigure[myplot] \stoptext Thanks Jeroen --001a113cb036d8d0760509a3f042 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have been trying to put Asymptote graphs in Context= with the filter example below. The Asymptote=C2=A0graph is written in a se= parate PDF file, but is not included in the final completed PDF document. I= s there a simple way to achieve this?


\usemodule[filter]


\defineexternalfilter

[ASY]

[filtercommand=3D{asy -tex "context" -View -outformat pdf -o= utname \externalfilteroutputfile\space \externalfilterinputfile},

output=3D\externalfilterbasefile.out,

readcommand=3D\typefile,

cache=3Dforce,

location=3Dtext,

continue=3Dyes]


\starttext

\startASY[myplot]

draw((1,1)--(2,4));

\stopASY


\externalfigure[myplot]

\stoptext


Thanks

Jeroen

=E3=80=80

--001a113cb036d8d0760509a3f042-- --===============2054877751== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2054877751==--