texlive[41935] trunk: plain.asy fix for luatex, from John Bowman,
commits+karl at tug.org
commits+karl at tug.org
Sat Aug 27 00:23:41 CEST 2016
Revision: 41935
http://tug.org/svn/texlive?view=revision&revision=41935
Author: karl
Date: 2016-08-27 00:23:41 +0200 (Sat, 27 Aug 2016)
Log Message:
-----------
plain.asy fix for luatex, from John Bowman, https://github.com/vectorgraphics/asymptote/issues/24
Modified Paths:
--------------
trunk/Build/source/utils/asymptote/base/plain.asy
trunk/Master/texmf-dist/asymptote/plain.asy
Modified: trunk/Build/source/utils/asymptote/base/plain.asy
===================================================================
--- trunk/Build/source/utils/asymptote/base/plain.asy 2016-08-26 22:06:45 UTC (rev 41934)
+++ trunk/Build/source/utils/asymptote/base/plain.asy 2016-08-26 22:23:41 UTC (rev 41935)
@@ -280,3 +280,12 @@
}
cputime();
+
+texpreamble("\newdimen\paperwidth");
+texpreamble("\newdimen\paperheight");
+bool luatex=settings.tex == "luatex";
+if(settings.tex == "lualatex" || luatex) {
+ texpreamble("\let\pdfpagewidth\paperwidth");
+ texpreamble("\let\pdfpageheight\paperheight");
+ if(luatex) texpreamble("\input luatex85.sty");
+}
Modified: trunk/Master/texmf-dist/asymptote/plain.asy
===================================================================
--- trunk/Master/texmf-dist/asymptote/plain.asy 2016-08-26 22:06:45 UTC (rev 41934)
+++ trunk/Master/texmf-dist/asymptote/plain.asy 2016-08-26 22:23:41 UTC (rev 41935)
@@ -280,3 +280,12 @@
}
cputime();
+
+texpreamble("\newdimen\paperwidth");
+texpreamble("\newdimen\paperheight");
+bool luatex=settings.tex == "luatex";
+if(settings.tex == "lualatex" || luatex) {
+ texpreamble("\let\pdfpagewidth\paperwidth");
+ texpreamble("\let\pdfpageheight\paperheight");
+ if(luatex) texpreamble("\input luatex85.sty");
+}
More information about the tex-live-commits
mailing list