Skip to content

Conversation

@lorenzogentile404
Copy link
Contributor

@lorenzogentile404 lorenzogentile404 commented Mar 25, 2025

Note

Migrates EC-data LaTeX macros to xkeyval key–value arguments and updates all usages, adding explicit fields and minor label tweaks.

  • LaTeX macro API (EC_DATA):
    • Introduce ECDATA key set (anchorRow, relOffset, xHi, xLo, yHi, yLo, xSquare*, xCube*, xIm*, xRe*, yIm*, yRe*).
    • Refactor \callToCOneMembership* and \callToWellFormedCoordinates to accept a single key–value arg; update displayed labels (e.g., x coord. hi).
    • Extend WCP/EXT variants to show additional terms (ySquare*, xCubePlusThree*, xSquare*, xCube*).
  • Call site updates:
    • Replace positional calls with key–value calls in prc/ecdata/specialized/{ecadd,ecmul,ecpairing}.tex and utils (c1_membership.tex, well_formed_coordinates.tex), wiring new fields to shorthands.
  • External calls styling:
    • In pkg/xkeyval_macros/ext_calls.sty, simplify argument labels (e.g., First argument hi/lo).
  • Misc:
    • Add _all_prc.mtc{2,3,4} entries in prc/_all_prc.maf.

Written by Cursor Bugbot for commit 637bd3c. This will update automatically on new commits. Configure here.

@lorenzogentile404
Copy link
Contributor Author

See #47 for review over this changes.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Collaborator

@OlivierBBB OlivierBBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM mostly, but would request a couple of changes

  • the \locPXCube stuff looks valid
  • convert all macros in pkg/precompiles.sty to xkeyval

\utt{x coord. hi:} & #3 \\
\utt{x coord. lo:} & #4 \\
\utt{y coord. hi:} & #5 \\
\utt{y coord. lo:} & #6 \\
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not convert this to xkeyval too ? The whole point of xkeyval is to get rid of numbered arguments.

cursor[bot]

This comment was marked as outdated.

ySquareLo = \locPYSquareLo ,
xCubePlusThreeHi = \locPXCubePlusThreeHi ,
xCubePlusThreeLo = \locPXCubePlusThreeLo ,
} \\
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Macro Calls Variables Before Definition

The callToCOneMembershipWCP macro uses \locPYSquareHi, \locPYSquareLo, \locPXCubePlusThreeHi, and \locPXCubePlusThreeLo as arguments before they are defined. These variables are only defined later, after the callToCOneMembershipEXT call, which results in an undefined reference error.

Fix in Cursor Fix in Web

Copy link
Collaborator

@OlivierBBB OlivierBBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lorenzogentile404 lorenzogentile404 merged commit b311f7f into main Oct 22, 2025
5 checks passed
@lorenzogentile404 lorenzogentile404 deleted the 46-fixecdata-calltoc1membershipwcp branch October 22, 2025 15:42
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.

2 participants