pgfplots
pgfplots copied to clipboard
Page number jump from 9 to 72 in pgfplotstodo.pdf
Steps : open the file at http://mirrors.ctan.org/graphics/pgf/contrib/pgfplots/doc/pgfplotstodo.pdf (file version 1.18.1).
Go to page 9. The next page is strangely 72 (then 73 and so on...).
This is caused by the bugtracker env, which by default will sort its items using \pgfplotsarraysort. To do the sorting, \pgfplotsarraysort uses the first six tex counts (\count0 to \count6) as temp variables, in which \count0 is also linked to \c@page. Somehow the change leaks.
https://github.com/pgf-tikz/pgfplots/blob/3bc2f42258fbfac9fe50b2978459da7e76fc046c/tex/generic/pgfplots/liststructure/pgfplotsarray.code.tex#L475-L480
Not sure if the following change won't bring any new problems.
diff --git a/tex/latex/pgfplots/bugtracker.sty b/tex/latex/pgfplots/bugtracker.sty
index 9de0d1ea..86804353 100644
--- a/tex/latex/pgfplots/bugtracker.sty
+++ b/tex/latex/pgfplots/bugtracker.sty
@@ -73,8 +73,8 @@
\ifbugtracker@sort
\begingroup
\pgfkeyslet{/pgfplots/iflessthan/.@cmd}\bugtracker@iflessthan
- \pgfkeysdef{/pgfplots/array/unscope pre}{\bugtracker@typeset}%
- \pgfkeysdef{/pgfplots/array/unscope post}{}%
+ \pgfkeysdef{/pgfplots/array/unscope pre}{}%
+ \pgfkeysdef{/pgfplots/array/unscope post}{\bugtracker@typeset}%
\pgfplotsarraysort\bugtrackeritems
\endgroup
\else
Will this be corrected or not?
It should be corrected, though currently the pgfplots maintainer is (almost) inactive. PRs accumulate and wait for his approval.