#295 pgf 3.0.: current page node is disturbed when hoffset is changed

v1.0 (example)

With older version of pgf the green line in the following example was drawn from the lower left to the upper right of A3 page. With pgf 3.0 I have to add the \hoffset (as for the red line) manually. It this change intended or a bug?


 \advance\hoffset by \pdfpagewidth

 \tikz[overlay,remember picture]\draw[green,<->] (current page.south west) -- (current     page.north east);%
 \tikz[overlay,remember picture]\draw[red,<->] ([xshift=-\hoffset] current page.south west) -- ([xshift=-\hoffset]current page.north east);%


Ulrike Fischer


  • Christian Feuersänger

    Just for the records:

    I know that I changed something in the drivers for latex/plain tex/context regarding \hoffset.

    1. that change was post 3.0.0
    2. it appears to be unrelated (I undid the change and I can still reproduce Ulrike's problem).

  • U_Fischer

    U_Fischer - 2014-03-07

    I search a bit in the sources for "hoffset" and compared the files of 3.0 with the files from an older pgf version. I found out that if add this (from an older pgfsys-pdftex.def) to my document it behaves well again:


    In pgf 3.0. the definition looks like this:


    Btw: The problem is not that hoffset in my example is changed in the middle of the document. This document doesn't work either:

       \advance\hoffset by 4cm
     \tikz[overlay,remember picture]\draw[green,<->] (current page.south west) --  (current     page.north east);%

    Ulrike Fischer

  • Christian Feuersänger

    Thanks for finding the suggested fix.

    However, the modification with \hoffset and \voffset have been introduced intentionally as part of https://sourceforge.net/p/pgf/bugs/85/ . The limitation that \hoffset and \voffset might break is even listed in that ticket...

    @ Till can you take care of this bug?

  • Christian Feuersänger

    Assigning to Till

  • Christian Feuersänger

    • assigned_to: Till Tantau

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks