From 03151d2eeb0840ea6023d7f76db85b4b05c79260 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 26 Nov 2016 22:47:20 +0000 Subject: plain.asy update per jbowman, https://github.com/vectorgraphics/asymptote/issues/24#issuecomment-263077180 git-svn-id: svn://tug.org/texlive/trunk@42589 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/asymptote/plain.asy | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/asymptote/plain.asy b/Master/texmf-dist/asymptote/plain.asy index 2d4c419ae00..ac7106e6668 100644 --- a/Master/texmf-dist/asymptote/plain.asy +++ b/Master/texmf-dist/asymptote/plain.asy @@ -282,17 +282,13 @@ if(settings.autoimport != "") { cputime(); void nosetpagesize() { - if(latex() && pdf()) { + if(latex()) { // Portably pass nosetpagesize option to graphicx package. - texpreamble("\makeatletter\newif\ifGin@setpagesize"); - if(settings.tex == "pdflatex") - texpreamble("\input pdftex.def"); - else if(settings.tex == "xelatex") - texpreamble("\input xetex.def"); - else if(settings.tex == "lualatex") { + if(settings.tex == "lualatex") { texpreamble("\ifx\pdfpagewidth\undefined\let\pdfpagewidth\paperwidth\fi"); texpreamble("\ifx\pdfpageheight\undefined\let\pdfpageheight\paperheight\fi"); - } + } else + texpreamble("\let\paperwidthsave\paperwidth\let\paperwidth\undefined\usepackage{graphicx}\let\paperwidth\paperwidthsave"); } } -- cgit v1.2.3