summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-09-05 21:27:19 +0000
committerKarl Berry <karl@freefriends.org>2016-09-05 21:27:19 +0000
commita167d28bf628bbe45e8e8114c34cff3f6e67cca4 (patch)
tree982784a3fc1badf5dd6d76366630b8f10d2f5552 /Build/source/utils/asymptote
parent5f1f866adb5ccce70a4ae3482f5b8a66ade7993c (diff)
newer plain.asy from john, again per https://github.com/vectorgraphics/asymptote/issues/24
git-svn-id: svn://tug.org/texlive/trunk@41994 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote')
-rw-r--r--Build/source/utils/asymptote/base/plain.asy11
1 files changed, 3 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/base/plain.asy b/Build/source/utils/asymptote/base/plain.asy
index 71413ec145b..c86cca630a6 100644
--- a/Build/source/utils/asymptote/base/plain.asy
+++ b/Build/source/utils/asymptote/base/plain.asy
@@ -281,11 +281,6 @@ 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");
-}
+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");