texlive[41994] trunk: newer plain.asy from john, again per

commits+karl at tug.org commits+karl at tug.org
Mon Sep 5 23:27:19 CEST 2016


Revision: 41994
          http://tug.org/svn/texlive?view=revision&revision=41994
Author:   karl
Date:     2016-09-05 23:27:19 +0200 (Mon, 05 Sep 2016)
Log Message:
-----------
newer plain.asy from john, again per 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-09-05 01:10:39 UTC (rev 41993)
+++ trunk/Build/source/utils/asymptote/base/plain.asy	2016-09-05 21:27:19 UTC (rev 41994)
@@ -281,11 +281,6 @@
 
 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");
-}
+texpreamble("\ifx\pdfpagewidth\undefined\let\pdfpagewidth\paperwidth\else\let\paperwidth\pdfpagewidth\fi");
+texpreamble("\ifx\pdfpageheight\undefined\let\pdfpageheight\paperheight\else\let\paperheight\pdfpageheight\fi");
+if(settings.tex == "luatex") texpreamble("\input luatex85.sty");

Modified: trunk/Master/texmf-dist/asymptote/plain.asy
===================================================================
--- trunk/Master/texmf-dist/asymptote/plain.asy	2016-09-05 01:10:39 UTC (rev 41993)
+++ trunk/Master/texmf-dist/asymptote/plain.asy	2016-09-05 21:27:19 UTC (rev 41994)
@@ -281,11 +281,6 @@
 
 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");
-}
+texpreamble("\ifx\pdfpagewidth\undefined\let\pdfpagewidth\paperwidth\else\let\paperwidth\pdfpagewidth\fi");
+texpreamble("\ifx\pdfpageheight\undefined\let\pdfpageheight\paperheight\else\let\paperheight\pdfpageheight\fi");
+if(settings.tex == "luatex") texpreamble("\input luatex85.sty");



More information about the tex-live-commits mailing list