pagesize special/clipping

Create issue
Issue #25 resolved
David Carlisle created an issue

Ulrike reported a problem with standalone page size in tl2016

http://chat.stackexchange.com/transcript/message/30595529#30595529

dvips only takes the first pagesize special in the dvi file (dvipdfm just takes the last on the first page)

standalone appears to insert the special in \end{document} so it has no effect if a \special{pagesize=... has already been inserted.

This is more noticeable in texlive 2016 as color/graphics dvips options now set this, to match the behaviour the pdftex option has always had.

the user can add

\usepackage[nosetpagesize]{graphics}% or color

to stop this, but standalone could add the special to the front, perhaps via

\def\sa@papersize{%
    \global\let\sa@papersize\relax
    \global\sa@yoffset=\paperheight
\global \setbox \@begindvibox
    \vbox{%
    \special{papersize=\the\paperwidth,\the\paperheight}%
    \special{ps::%
        \@percentchar\@percentchar HiResBoundingBox: 0 0 \the\paperwidth\space\the\paperheight^^J%
    }%
\unvbox \@begindvibox }%
}

see for example the discussion around

http://chat.stackexchange.com/transcript/message/30603338#30603338

Comments (3)

  1. Log in to comment