<div dir="ltr">Hi Mojca,<div><br></div><div>The change to support rendered 3D context images is easy. In adding support for eps2write,</div><div>I didn't worry about supporting 3D context labels since context doesn't support vector 3D graphics anyway (it doesn't support embedded PRC content). But as I believe you are pointing out, some context users may be happy just to have a rendered preview image. The patch below (snv r5715) tells asy to treat context just like xe (these are special cases because they do not provide dvi output). I tested this with the context from TL 2014 and it seems to work as desired.</div><div><br></div><div>-- John</div><div><br></div><div><div>Index: <a href="http://runlabel.in">runlabel.in</a></div><div>===================================================================</div><div>--- <a href="http://runlabel.in">runlabel.in</a> (revision 5714)</div><div>+++ <a href="http://runlabel.in">runlabel.in</a> (revision 5715)</div><div>@@ -259,7 +259,7 @@</div><div>   string dviname=auxname(prefix,"dvi");</div><div>   bbox b;</div><div>   string texengine=getSetting<string>("tex");</div><div>-  bool xe=settings::xe(texengine);</div><div>+  bool xe=settings::xe(texengine) || settings::context(texengine);</div><div>   texfile tex(texname,b,true);</div><div>   tex.miniprologue();</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 11:56 AM, Mojca Miklavec <span dir="ltr"><<a href="mailto:mojca.miklavec.lists@gmail.com" target="_blank">mojca.miklavec.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
There must have been some trivial change in the source code that broke<br>
Asymptote 2.33 in combination with ConTeXt.<br>
<br>
If I run<br>
    asy -vvv -render=0 -tex=context filename.asy<br>
<br>
I get the following in filename_.tex:<br>
<br>
\page\hbox{%<br>
\special{ps:<br>
/ASYx {( ) print ASYX sub 12 string cvs print} bind def<br>
/ASYy {( ) print ASYY sub 12 string cvs print} bind def<br>
<br>
And as a consequence images still work, but labels don't.<br>
<br>
If I would have to blindly blame one of the latest commits, this could<br>
be one candidate:<br>
    <a href="http://sourceforge.net/p/asymptote/code/5691/" target="_blank">http://sourceforge.net/p/asymptote/code/5691/</a><br>
<br>
Asymptote 2.31 works ok.<br>
<br>
Given that this is still a "pretest" phase meant for catching these<br>
kind of problems, I hope that there is still time to include a fix.<br>
<br>
(Switching to an older asy is now additionally complicated by the fact<br>
that one also has to switch back to an older ghostscript.)<br>
<br>
Thank you very much,<br>
    Mojca<br>
</blockquote></div><br></div>