Bug#836252: asymptote: only full-page figures produced with pdflatex engine
Package: asymptote
Version: 2.38-1
Severity: normal
After updating to TL 2016, my usual invocation of asymptote started
producing full-page figures (the size of US letter paper), rather than
the size requested in the .asy file.
For example, as with this file:
size(100);
draw(unitsquare);
dot("A", (0.5,0.5));
run through
$ asy -k -vvv -noprc -render=0 -f pdf -tex pdflatex -V -wait "test"
Without the typeset text (the "A"), it works fine, as it does using the
latex engine ("-tex latex").
This problem, I have found, has been reported on the asymptote bug
tracker and extensively discussed. It seems that a change in the
graphicx package caused the problem.
See the discussion here:
<https://github.com/vectorgraphics/asymptote/issues/24>
The fix is linked from there and is:
<https://github.com/vectorgraphics/asymptote/commit/2f209f9ed847db0068c0ac85fa6c98571eeb9462>
For Debian, it just means patching plain.asy (adding a few lines).
That patch also fixes another problem with using asymptote and TL 2016:
that luatex 0.95 (and hence lualatex), which is in TL 2016, uses
\page(height|width) rather than \pdfpage(height|width), which the older
luatexs accepted.
To see that problem, try
$ asy -k -vvv -noprc -render=0 -f pdf -tex lualatex -V -wait "test"
and you get complaints about those commands being undefined.
The patch works for me, at least in my limited testing so far.
-Sanjoy
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages asymptote depends on:
ii freeglut3 2.8.1-3
ii ghostscript 9.19~dfsg-2
ii imagemagick 8:6.8.9.9-7.2
ii install-info 6.1.0.dfsg.1-8
ii libc6 2.23-5
ii libfftw3-double3 3.3.4-2+b1
ii libgc1c2 1:7.4.2-8
ii libgcc1 1:6.1.1-11
ii libgl1-mesa-glx [libgl1] 11.2.2-1
ii libglu1-mesa [libglu1] 9.0.0-2.1
ii libgsl2 2.1+dfsg-2
ii libncurses5 6.0+20160625-1
ii libosmesa6 11.2.2-1
ii libreadline6 6.3-8+b4
ii libsigsegv2 2.10-5
ii libstdc++6 6.1.1-11
ii libtinfo5 6.0+20160625-1
ii python 2.7.11-2
ii python-pil 3.3.0-1
ii python-pil.imagetk 3.3.0-1
ii tex-common 6.05
ii texlive-binaries 2016.20160513.41080-6
ii texlive-latex-base 2016.20160819-2
ii texlive-pstricks 2016.20160819-1
ii xdg-utils 1.1.1-1
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages asymptote recommends:
ii asymptote-doc 2.38-1
Versions of packages asymptote suggests:
ii evince [pdf-viewer] 3.20.1-1
ii gv [pdf-viewer] 1:3.7.4-1
ii mupdf [pdf-viewer] 1.9a+ds1-1.2
ii okular [pdf-viewer] 4:16.04.2-1
ii xpdf [pdf-viewer] 3.04-1+b1
ii zathura-pdf-poppler [pdf-viewer] 0.2.6-1
-- no debconf information
Reply to: