texlive[42589] Master/texmf-dist/asymptote/plain.asy: plain.asy
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 26 23:47:20 CET 2016
Revision: 42589
http://tug.org/svn/texlive?view=revision&revision=42589
Author: karl
Date: 2016-11-26 23:47:20 +0100 (Sat, 26 Nov 2016)
Log Message:
-----------
plain.asy update per jbowman, https://github.com/vectorgraphics/asymptote/issues/24#issuecomment-263077180
Modified Paths:
--------------
trunk/Master/texmf-dist/asymptote/plain.asy
Modified: trunk/Master/texmf-dist/asymptote/plain.asy
===================================================================
--- trunk/Master/texmf-dist/asymptote/plain.asy 2016-11-26 22:45:23 UTC (rev 42588)
+++ trunk/Master/texmf-dist/asymptote/plain.asy 2016-11-26 22:47:20 UTC (rev 42589)
@@ -282,17 +282,13 @@
cputime();
void nosetpagesize() {
- if(latex() && pdf()) {
+ if(latex()) {
// Portably pass nosetpagesize option to graphicx package.
- texpreamble("\makeatletter\newif\ifGin at 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");
}
}
More information about the tex-live-commits
mailing list