Re: DeclareMathOperator and digit in operator name
Zdenek Wagner <[email protected]>
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <CAC1phyavRD46_eJoJpnpkcapCF+WX8ZrYgHHSQTfd1ne2N8M1g@mail.gmail.com> |
st 17. 12. 2025 v 16:15 odesílatel Vincent Lefevre <[email protected]> napsal: > > On 2025-12-17 14:53:50 +0000, Ji Luo wrote: > > An easier hotfix is > > > > \DeclareMathOperator{\myFast}{whatever} > > \def\Fast2Sum{\myFast} > > Thanks. Actually, just adding > > \def\Fast2Sum{\FastTwoSum} > > *before* the existing > > \DeclareMathOperator{\Fast2Sum}{Fast2Sum} > This is not a good solution. If you later define \def\Fast3Sum{\FastThreeSum} \Fast2Sum will cause an error because you redefined \Fast to require 3Sum. > seems to work. > > > But of course avoiding numbers in csname is the sustainable way to go. > > Yes, that's just for old versions from the git repository > (which cannot be fixed retroactively). > Zdeněk Wagner https://www.zdenek-wagner.eu/ > -- > Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> > 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> > Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)