[tlbuild] Compatibility with ConTeXt was broken in asy 2.33

John Bowman bowman at ualberta.ca
Mon May 18 22:06:50 CEST 2015


Hi Mojca,

The change to support rendered 3D context images is easy. In adding support
for eps2write,
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.

-- John

Index: runlabel.in
===================================================================
--- runlabel.in (revision 5714)
+++ runlabel.in (revision 5715)
@@ -259,7 +259,7 @@
   string dviname=auxname(prefix,"dvi");
   bbox b;
   string texengine=getSetting<string>("tex");
-  bool xe=settings::xe(texengine);
+  bool xe=settings::xe(texengine) || settings::context(texengine);
   texfile tex(texname,b,true);
   tex.miniprologue();


On Mon, May 18, 2015 at 11:56 AM, Mojca Miklavec <
mojca.miklavec.lists at gmail.com> wrote:

> Hi,
>
> There must have been some trivial change in the source code that broke
> Asymptote 2.33 in combination with ConTeXt.
>
> If I run
>     asy -vvv -render=0 -tex=context filename.asy
>
> I get the following in filename_.tex:
>
> \page\hbox{%
> \special{ps:
> /ASYx {( ) print ASYX sub 12 string cvs print} bind def
> /ASYy {( ) print ASYY sub 12 string cvs print} bind def
>
> And as a consequence images still work, but labels don't.
>
> If I would have to blindly blame one of the latest commits, this could
> be one candidate:
>     http://sourceforge.net/p/asymptote/code/5691/
>
> Asymptote 2.31 works ok.
>
> Given that this is still a "pretest" phase meant for catching these
> kind of problems, I hope that there is still time to include a fix.
>
> (Switching to an older asy is now additionally complicated by the fact
> that one also has to switch back to an older ghostscript.)
>
> Thank you very much,
>     Mojca
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20150518/70b6b720/attachment.html>


More information about the tlbuild mailing list