Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Feb 4, 2021 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Feb 4, 2021

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
Copy link
Member

hmenke commented Feb 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant