summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-11-26 22:47:20 +0000
committerKarl Berry <karl@freefriends.org>2016-11-26 22:47:20 +0000
commit03151d2eeb0840ea6023d7f76db85b4b05c79260 (patch)
treed4c3b6053844ca4bdc2d1f03244e1138b78a1ac2 /Master/texmf-dist
parentf1f093e6f46e846382bc73efff615dd856604044 (diff)
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
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/asymptote/plain.asy12
1 files changed, 4 insertions, 8 deletions
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");
}
}