Skip to content

Add missing KaTeX macros \GammaL, \GammaU, \SigmaL, \SigmaSp - #7151

Open
roed-math wants to merge 2 commits into
LMFDB:mainfrom
roed-math:ai/t10-latex-macros
Open

Add missing KaTeX macros \GammaL, \GammaU, \SigmaL, \SigmaSp#7151
roed-math wants to merge 2 commits into
LMFDB:mainfrom
roed-math:ai/t10-latex-macros

Conversation

@roed-math

Copy link
Copy Markdown
Contributor

Closes #7048.

Group pages describing elements of a projective Lie-family group strip the leading P from the family name (repr_strg in web_groups.py), emitting \GammaU(4,2) etc., but base.html only defined the P-forms, so e.g. 51840.b showed a raw \GammaU. This adds the four missing macros in the style of their existing \PGammaL-family siblings, plus a regression test.

An audit of every \macro token in the devmirror gps_groups/gps_families tex columns, a sample of gps_subgroup_search tex columns, and all Lie families in representations confirms these four were the only missing legitimate macros.

The audit also surfaced \PSOPlusPlus(4,3) (two aut_tex rows: 11520.be, 13824.dn; and roughly 25k subgroup_tex rows), a duplicated-"Plus" data-generation bug: the leading factor has order 288 = |PSO+(4,3)| and no such family exists in the naming code. That should be fixed in the data rather than masked with a macro.


Ported from roed-math#14, where the full write-up and comment history live.

🤖 Generated with Claude Code

roed314 and others added 2 commits July 19, 2026 01:33
Group pages for groups whose elements are displayed in a projective
Lie family (PGammaL, PGammaU, PSigmaL, PSigmaSp) strip the leading P
in repr_strg, emitting \GammaL / \GammaU / \SigmaL / \SigmaSp,
which base.html did not define, so e.g. /Groups/Abstract/51840.b
showed raw \GammaU(4,2). Audited every macro used in devmirror
gps_groups tex columns, gps_subgroup_search tex columns (sampled),
gps_families.tex_name and the Lie families in representations; these
four were the only missing legitimate macros. Added them in the style
of the existing P-family macros plus a regression test; verified in a
local server that 51840.b renders the sentence as matrices in
GammaU(4,2) with zero katex-error nodes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jenpaulhus

Copy link
Copy Markdown
Contributor

This is fine. It adds a test to check for these particular macros which is probably excessive but won't cause problems.

Note Claude also surfaced a data error with \PSOPlusPlus(4,3) (the double plus). If you agree the best option is to fix the data @roed314, I can go ahead and make that data fix. Or is there a reason for the double Plus?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing latex macros

3 participants