Skip to content

Check: flag a spelled-out macro sequence where a combined shorthand macro exists #2000

Open

Description

@d-morrison

Problem

sds#614 and lds#2430 wrote \diff \vpredvar about 25 times.
Ezra asked (2026-11-12 21:08 PST, project thread) why they did not use a shorthand, as rme uses \diffvx.
macros#426 then added \diffvpredvar, and sds#618 and lds#2430 swapped it in (sds#617).
Nothing caught the miss: a reviewer had to remember that the shorthand existed.

Proposal

A changed-lines check that reads latex-macros/macros.qmd, collects every macro whose body is only a sequence of other macros (for example \def\diffvpredvar{\diff\vpredvar} and \def\diffvx{\diff\vx}), and flags added math that spells out such a sequence (with or without whitespace between the macros), naming the shorthand to use instead.

  • Writer instruction: use the shorthand macro when one names the combination.
  • Reviewer instruction: flag a spelled-out sequence that a shorthand macro covers.

Posted by Claude Code (AI agent) --- not written by a human.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions