Menu

#229 ConTeXt: \AtBeginDocument is defined as {#1}

v1.0 (example)
closed-invalid
nobody
None
5
2019-11-27
2019-11-26
Henri Menke
No

Moved from https://github.com/pgf-tikz/pgf/issues/790

Brief outline of the bug

Pgfplots uses \AtBeginDocument to display a message unless it’s disabled.

Despite setting \pgfplotsset{compat=1.14,compat/show suggested version=false}, I still see:

Package pgfplots notification 'compat/show suggested version=true': document has been generated with the most recent feature set (\pgfplotsset{compat=\mostrecent})

(note that I really do see \mostrecent, it’s not being expanded)

This is the result of the stub implementation of \AtBeginDocument in this project:

https://github.com/pgf-tikz/pgf/blob/88d7f561eee62cde1adaf7c85212659ae25e79ef/tex/generic/pgf/utilities/pgfutil-context.def#L362

I think there might be hints to a proper implementation here, something using \appendtoks...\to\everystarttext and maybe some \expandafter magic.

Minimal working example (MWE)

\usemodule[pgfplots]
% now \pgfplots@show@suggested@compat@value is already expanded and the message displayed
\pgfplotsset{compat=1.14,compat/show suggested version=false}

\starttext
% the contents of \AtBeginDocument{...} should be expanded here
\stoptext

Discussion

  • Henri Menke

    Henri Menke - 2019-11-26

    I was too hasty. This is actually a problem in PGF. However, I can't seem to close the issue, there is no button.

    Please close this for me.

     
  • Stefan Pinnow

    Stefan Pinnow - 2019-11-27
    • status: open --> closed-invalid