summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-08-26 22:23:41 +0000
committerKarl Berry <karl@freefriends.org>2016-08-26 22:23:41 +0000
commit6aee2e8eef2b386b7e09c9aff403deabe51e5f8f (patch)
tree3af9c66fd02e01acef0750128b3836c81761cdd0
parentafdbbbd16958008d56b50ffd60d6d77e934392d5 (diff)
plain.asy fix for luatex, from John Bowman, https://github.com/vectorgraphics/asymptote/issues/24
git-svn-id: svn://tug.org/texlive/trunk@41935 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/utils/asymptote/base/plain.asy9
-rw-r--r--Master/texmf-dist/asymptote/plain.asy9
2 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/base/plain.asy b/Build/source/utils/asymptote/base/plain.asy
index 14715bad918..71413ec145b 100644
--- a/Build/source/utils/asymptote/base/plain.asy
+++ b/Build/source/utils/asymptote/base/plain.asy
@@ -280,3 +280,12 @@ if(settings.autoimport != "") {
}
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");
+}
diff --git a/Master/texmf-dist/asymptote/plain.asy b/Master/texmf-dist/asymptote/plain.asy
index 14715bad918..71413ec145b 100644
--- a/Master/texmf-dist/asymptote/plain.asy
+++ b/Master/texmf-dist/asymptote/plain.asy
@@ -280,3 +280,12 @@ if(settings.autoimport != "") {
}
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");
+}