pgfplots icon indicating copy to clipboard operation
pgfplots copied to clipboard

Page number jump from 9 to 72 in pgfplotstodo.pdf

Open quark67 opened this issue 4 years ago • 3 comments

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...).

quark67 avatar Aug 03 '21 23:08 quark67

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

muzimuzhi avatar Aug 04 '21 03:08 muzimuzhi

Will this be corrected or not?

quark67 avatar Aug 05 '21 23:08 quark67

It should be corrected, though currently the pgfplots maintainer is (almost) inactive. PRs accumulate and wait for his approval.

muzimuzhi avatar Aug 06 '21 00:08 muzimuzhi