Repository navigation
Serialize Triangle, the color heads, ColorDelta, Apply, Distance and Chop under their own names - #671
Open
enumeratio wants to merge 1 commit into
Open
enumeratio wants to merge 1 commit into
enumeratio wants to merge 1 commit into
Conversation
enumeratio
force-pushed
the
latex-own-name-serialization
branch
from
December 1, 2026 20:40
025a5af to
418d4e1
Compare
…Chop under their own names, keeping the lowercase spellings as parse aliases (cortex-js#670)
enumeratio
force-pushed
the
latex-own-name-serialization
branch
from
December 3, 2026 00:27
418d4e1 to
50c1d0c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Triangle, the color heads,ColorDelta,Apply,DistanceandChopnow serialize under their own names, keeping each entry's wrapper (\operatornameor\mathrm). Parsing is unchanged: every lowercase spelling still parses to the same head, and so does the own-name form. This changes printed LaTeX.Triangle\operatorname{triangle}(1)\operatorname{Triangle}(1)Rgb,Hsl,Hsv,Oklab,Oklch\operatorname{rgb}(1)...\operatorname{Rgb}(1)...AsRgb,AsHsl,AsHsv,AsOklab,AsOklch\operatorname{asRgb}(1)...\operatorname{AsRgb}(1)...ColorDelta\operatorname{colorDelta}(1)\operatorname{ColorDelta}(1)Apply\operatorname{apply}(f_{(k)}, x, y)\operatorname{Apply}(f_{(k)}, x, y)Distance\operatorname{distance}(1)\operatorname{Distance}(1)Chop\mathrm{chop}(1)\mathrm{Chop}(1)Conventional lowercase operator names (
\sin,\gcd,\mathrm{mean},\mathrm{median}, ...) are untouched.Tests:
own-name-serialization.test.tschecks for each head the serialized form, that it parses back, and that the lowercase alias still parses. Three existing expectations that pinned the lowercase output are updated.Fixes #670