pgf-tikz / pgf

A Portable Graphic Format for TeX
https://pgf-tikz.github.io/
1.14k stars 108 forks source link

remember picture,overlay with page anchors not working in ConTeXt LMTX #989

Open ghost opened 3 years ago

ghost commented 3 years ago

Brief outline of the bug

As the title says, remember picture, overlaywith anchors as current page.south east is not working in ConTeXt LMTX, when it does perfectly in MkIV. Tbh I don't know if the bug comes from anchors, remember picture, overlay or both. See: https://tex.stackexchange.com/questions/580523/fading-gradient-background-color-page-in-context-with-tikz

<argument> \hoffset 

<macro> \pgfqpoint #1#2->\global \pgf@x =#1
    \relax \global \pgf@y =#2\relax 
<macro> \pgf@process #1->{#1
    \global \pgf@x =\pgf@x \global \pgf@y =\pgf@y }

<macro> \pgf@shape@interpictureshift ...current@pos }\advance \pgf@xa by-\pgf@x \advance \pgf@ya by-\pgf@y \pgf@process {\pgfpointorigin \pgf@shape@original@pos }
    \advance \pgf@xa by\pgf@x \advance \pgf@ya by\pgf@y \pgf@x =\pgf@xa \pgf@y =\pgf@ya \fi 

<argument> ...ikz@pp@name {current page}\endcsname }\pgf@pos@transform@glob }\pgf@shape@interpictureshift {\tikz@pp@name {current page}}
    \pgftransforminvert \pgf@pos@transform@glob 

<macro> \pgf@process #1->{#1
    \global \pgf@x =\pgf@x \global \pgf@y =\pgf@y }
...

Minimal working example (MWE)

\usemodule[tikz] %using t or m makes no difference..
\starttext
\tikz[remember picture,overlay] 
\shade[top color=green!30, bottom color=blue!30] 
(current page.north west) rectangle (current page.south east);
\stoptext
hmenke commented 3 years ago

LMTX is currently not supported because it removed too many primitives.