alex-ball / beamerswitch

Convenient mode selection in Beamer documents
22 stars 0 forks source link

Handouts with page numbers badly positioned on pages > 1 with XeTeX #9

Closed alex-ball closed 6 years ago

alex-ball commented 6 years ago

When in handout mode, using the pnos option with XeLaTeX causes the second and subsequent pages to be laid out relative to the TeX origin (1in from top and left) instead of the bottom left corner of the page.

This is because that option redefines \pgfsys@endpicture, which is used by PGF to adapt to the quirks of different output routines, such as dvipdfmx, tex4ht, dvisvgm, vtex and others. Instead of replacing or removing the initial definition of that macro, the code for displaying the page numbers should be injected into the output routine.