Skip to content

Package aliascnt Warning: The package is obsolete #34

Description

@paolieri

I get this warning on Overleaf:

This is pdfTeX, Version 3.141592653-2.6-1.40.29 (TeX Live 2026) (preloaded format=pdflatex 2026.6.26)  12 SEP 2026 08:34
entering extended mode
...
(/usr/local/texlive/2026/texmf-dist/tex/latex/aliascnt/aliascnt.sty
Package: aliascnt 2026-03-08 v1.7 Alias counters (HO)

Package aliascnt Warning: The package is obsolete. Check the documentation. on input line 62.

)

The reason is that aliascnt is now obsolete and \newcounteralias was added to the kernel.

I could patch pseudo.sty as follows:

  1. Replaced \RequirePackage{aliascnt} with:
\cs_if_exist:NF \newcounteralias { \RequirePackage{aliascnt} }
  1. Replaced \newaliascnt { #1 } { #2 } with:
 \cs_if_exist:NTF \newcounteralias
     { \newcounteralias { #1 } { #2 } }
     { \newaliascnt     { #1 } { #2 } }

This should work with old and new Latex installations.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions