Skip to content

Add \argmin macro (counterpart to existing \argmax) - #74

Merged
d-morrison merged 2 commits into
mainfrom
claude/general-purpose-macros-337nye
Jul 2, 2026
Merged

d-morrison merged 2 commits into
mainfrom
claude/general-purpose-macros-337nye

Conversation

@d-morrison

@d-morrison d-morrison commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Closes #73

Adds \argmin (and \amin short alias), the missing counterpart to the existing \am/\argmax. This is a general-purpose operator used across optimization, estimation, and statistics generally — not tied to any one estimand family — so it sits alongside \argmax rather than in a narrower macro group.

Change

\def\amin{\arg \min}
\def\argmin{\arg \min}

Plus matching interpretations.tsv entries, per CONTRIBUTING.md.

Verification

Ran all three commands CONTRIBUTING.md documents before pushing changes to macros.qmd (installed knitr/rmarkdown/DT + TinyTeX locally to do this for real, since CI's "Quarto Preview" workflow only runs a default quarto render, which doesn't cover the two PDF-specific commands):

  • quarto render demo-include-in-header.qmd --to pdf — succeeds, _site/demo-include-in-header.pdf produced
  • quarto render demo-shortcode.qmd --to pdf — succeeds, _site/demo-shortcode.pdf produced
  • quarto render (whole site) — succeeds, including macros-table.qmd's interpretations-consistency check (640 macros parsed, zero missing interpretations.tsv entries); \amin/\argmin both appear correctly in the built macro reference table

No new macro-name collisions (the only duplicate names in the corpus — \resid, \stdresid, \modresid — are pre-existing and unrelated to this change).

Copilot AI review requested due to automatic review settings July 2, 2026 19:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@d-morrison
d-morrison marked this pull request as ready for review July 2, 2026 19:58
Copilot AI review requested due to automatic review settings July 2, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread macros.qmd
@d-morrison
d-morrison merged commit 582b29f into main Jul 2, 2026
6 checks passed
@d-morrison
d-morrison deleted the claude/general-purpose-macros-337nye branch July 2, 2026 20:07
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.

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.

Add \argmin macro (counterpart to existing \argmax)

3 participants