Re: Contributions to LaTeX-core

David Carlisle <[email protected]> Mon, 6 Jan 2025 00:22:35 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <CAEW6iOi8UoqqVSX03hdZsKk97t9SrF7wE8NbYk2KwzCwVZvzXQ@mail.gmail.com>
Thank you for your interest in supporting LaTEX, however note that the
everyshi package is obsoleted  now by the built in hook code so you should
not need to load it in new documents.
LaTeX also keeps track of the number of pages shipped out, see

texdoc ltshipout-doc

in particular the commands \ReadonlyShipoutCounter and \PreviousTotalPages
and the LaTeX counter totalpages
should be of interest,

David


On Sun, 5 Jan 2025 at 15:15, Gabriel Ruprecht <[email protected]>
wrote:

> Hello TUG,
>
> I watched Frank Mittelbach - Quo Vadis LaTeX(3) (/watch?v=zNci4lcb8Vo),
> where he says, that several document hooks shall be included in LaTeX-core.
>
> I made a very simple package, which I wanted to upload to CTAN, but it
> makes more sense, to include it is a standard. It is just this:
>
>      \ProvidesPackage{realpage}
>      \RequirePackage{everyshi}
>
>      \newcounter{realpage}
>      \setcounter{realpage}{1}
>
>      \EveryShipout{\stepcounter{realpage}}
>
> page is reset on pagenumbering change, this is not. It's basically the
> physical paper count.
>
> Is there any way to contribute this? Like a git repo?
>
> Best regards,
>
> Gabriel Ruprecht
>
> P.S.: You can respond in German or English.
>