summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote')
-rw-r--r--Master/texmf-dist/asymptote/plain.asy9
1 files changed, 9 insertions, 0 deletions
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");
+}