From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100668 Path: news.gmane.org!.POSTED!not-for-mail From: Context NTG Newsgroups: gmane.comp.tex.context Subject: Asymptote and Context Date: Thu, 19 Apr 2018 23:05:37 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5038554821636308664==" X-Trace: blaine.gmane.org 1524171850 27988 195.159.176.226 (19 Apr 2018 21:04:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2018 21:04:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 23:04:05 2018 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 esmtp (Exim 4.84_2) (envelope-from ) id 1f9Gio-00079L-Af for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2018 23:04:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 495E8626134; Thu, 19 Apr 2018 23:05:51 +0200 (CEST) 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 vTv_NU7MlyAH; Thu, 19 Apr 2018 23:05:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F441626139; Thu, 19 Apr 2018 23:05:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A3CD0626139 for ; Thu, 19 Apr 2018 23:05:49 +0200 (CEST) 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 uiaj31VzqgEw for ; Thu, 19 Apr 2018 23:05:49 +0200 (CEST) Original-Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) (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 17AAA626134 for ; Thu, 19 Apr 2018 23:05:39 +0200 (CEST) Original-Received: by mail-qt0-f181.google.com with SMTP id h4-v6so7347504qtn.13 for ; Thu, 19 Apr 2018 14:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rdazq+S1kLHVFLJwt8EKlYDLf+G79pcwET0dsRZ6aZg=; b=pRS5dULLQ3q1zzO4346lNE1veylwTrk3YW2/dJeeZ+nru5vhY4n9xXjmE8NFvejFQ0 eMNA+y3rt1CwysIGaa6getSBT0m8BaY3mZQPUmC3GLc3XOuT7ryXhOl7Xli/wRW3Em9N cMjtpBgH0deRWVGJ3BBDo+NNJBSqSBtXEDajzgTwyOCtvZBEVB2ZCNcVXFZVBE1wxfi4 4rbvu7wMywKiH6BqZ1G14JjcQx2BsDItDb3l1aQztXH28bVTebQWfrLteOr0X+0luwfI /En2W38x8rsWPEsPgoWvBu8OxtkoDrFc2yV9P1y2k4BHBluarukz22t2BIkSuzBbc0qy H+yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rdazq+S1kLHVFLJwt8EKlYDLf+G79pcwET0dsRZ6aZg=; b=LQGVOXFPK7ojYaU41XZRtayX87lqjQlhT1CQsfcHybfSR1Lg+uuNnb1UYvcPa1QQeZ /Nbqigvnk/LeOUkidVdZNDZPLqs8WS03aICsh7vX8GoPhw7dNE6kNbM9JZAQ7sStox6T BRynCps9eFKUetE7bEkUFaB2MYAlaVyVvJtTyweseJj11/S/SmSrWQhRyGn6OVUmz8BA h9jtkbOrwCGslAyk4eT06XrtPfPW+vNDi1FN7/5zLuoFPtfvSZ9ECGJ5lmxyZWqwxVPC QJSm/wMtvYa4Gyy8Fw49K+B3e28KzphQXwJbR0dSpazxN24dW+HGWYsq6BWn90ho8zYR Hdaw== X-Gm-Message-State: ALQs6tCBkyM2+gvKOap21KTW0Ni8alFn5xLG+LdIGH1ILB5XlVaaWp59 /ejlupMUD+DLQ+Az9ZDeEsqZOSFF/0N1a5y7k5fCWrFCnxU= X-Google-Smtp-Source: AB8JxZqkbTBOVoFgEhIW+A0siouS9zy01l0yc+2iTyOjBBjoef1jojqutzFmycv2unJKpkuVZx2LKulecrpiX8kI06k= X-Received: by 2002:ac8:1e86:: with SMTP id c6-v6mr7790067qtm.375.1524171937652; Thu, 19 Apr 2018 14:05:37 -0700 (PDT) Original-Received: by 10.200.63.221 with HTTP; Thu, 19 Apr 2018 14:05:37 -0700 (PDT) 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:100668 Archived-At: --===============5038554821636308664== Content-Type: multipart/alternative; boundary="000000000000eba4c0056a39eec9" --000000000000eba4c0056a39eec9 Content-Type: text/plain; charset="UTF-8" I am running context minimals and Asymptote on Windows.This example used to work in the past, but it seems to have stopped working. Is there anything that has changed? \usemodule[filter] \defineexternalfilter [ASY] [filtercommand={asy -tex "context" -outformat pdf -outname \externalfilteroutputfile}, output=\externalfilterbasefile.pdf, cache=yes, readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext Testing if we can include an asymptote image \startplacefigure[location={here}, title={An Asymptote figure}] \startASY unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \stopplacefigure \stoptext --000000000000eba4c0056a39eec9 Content-Type: text/html; charset="UTF-8"
I am running context minimals and Asymptote on Windows.This example used to work in the past, but it seems to have stopped working. Is there anything that has changed?

\usemodule[filter]


\defineexternalfilter

[ASY]

[filtercommand={asy -tex "context" -outformat pdf

-outname \externalfilteroutputfile},

output=\externalfilterbasefile.pdf,

cache=yes,

readcommand=\ReadImage,]


\define[1]\ReadImage{\externalfigure[#1]}


\starttext

Testing if we can include an asymptote image

\startplacefigure[location={here}, title={An Asymptote figure}]

\startASY

unitsize(1cm);

draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead));

draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead));

draw((0,0) .. (1,1) .. (2,sqrt(2)));

\stopASY

\stopplacefigure

\stoptext

--000000000000eba4c0056a39eec9-- --===============5038554821636308664== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5038554821636308664==--