Skip to content

math: mathtools \Aboxed is unsupported (#567) - #574

Closed
d-q222 wants to merge 3 commits into
mainfrom
agent/daniel-muse-lead-2/aboxed
Closed

d-q222 wants to merge 3 commits into
mainfrom
agent/daniel-muse-lead-2/aboxed

Conversation

@d-q222

@d-q222 d-q222 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #567.

What changed

  • \Aboxed{a = b} now handled in the same command_atom arm as \boxed: the full braced body becomes Nucleus::Framed { body, frame: Frame::Box } — no new box-drawing code, no new exported types/variants. math: \boxed draws no frame — the frame is dropped with a math_limitation warning #311's \boxed fix has already landed on main, so the frame draws via the existing primitive in both layouts.
  • The relation stays a plain body atom at its natural position, keeping every boxed row's relation at the same structural position for the align grid.
  • No render-pipeline change: no new compiler-exposed type/variant was added, so the existing Frame::Box arm draws \Aboxed once the normal vendor re-pin happens, with zero pipeline changes needed.

Tests

  • New: box covers the full expression with parity to \boxed; 2-row align with asymmetric \Aboxed rows keeps the relation at the same structural cell position, no diagnostics.
  • Full crates/compiler suite independently re-verified fresh, 100% green (671 passed), including generated_artifacts_are_current and math_inventory_equals_the_math_arms.
  • cargo check on crates/render-pipeline: clean against its frozen vendored pin.

Explicitly out of scope (documented, not guessed)

  • True mathtools &-inside syntax (\Aboxed{a &= b}) still yields the standard misplaced-tab diagnostic — needs parser row-splitting cooperation, separate slice.
  • Rendered pixel-coincidence of asymmetric boxed rows at the relation (beyond the shared structural alignment point delivered here) is a small post-re-pin pipeline follow-up if needed.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor

🤖 Generated with Claude Code

…567)

\Aboxed{<lhs> <rel> <rhs>} parses its full body into Nucleus::Framed
with Frame::Box — the same primitive \boxed uses (no new box-drawing
code; #311's \boxed frame path draws it in both the compiler layout
and the render pipeline's existing Frame::Box arm). The relation stays
a plain body atom at its natural position, so align rows keep a shared
alignment point across boxed rows. No new exported types or variants.

Adds the MathStructure inventory entry and regenerates the
supported-LaTeX artifacts in the same commit.

Implementation-Agent: aboxed
Commit-Executor: aboxed
Regenerated docs/user/compiler.md and the supported-latex inventories; no
hand-merged hunks.

Implementation-Agent: fable-rebase-c
Commit-Executor: fable-rebase-c (direct; Cursor usage limit)
Only docs/user/compiler.md conflicted (generated section); regenerated all
supported-latex artefacts.

Implementation-Agent: fable-rebase-c
Commit-Executor: fable-rebase-c (direct; Cursor usage limit)
GoKubar added a commit that referenced this pull request Sep 15, 2026
#574) (#641)

* compiler: accept \index and \glossary as silent no-ops (GH#566)

Makeidx/glossary entries write auxiliary files for external tools;
with no indexing/glossary backend and nothing typeset in real LaTeX,
parse the braced entry and discard it with no diagnostic, following
the existing graphicspath/pagestyle no-op pattern. Variants
(|textbf, @sort keys, !subentries) live inside the one group, so
consuming it covers them.

Implementation-Agent: indexnoop
Commit-Executor: indexnoop

* compiler: support size environments (tiny..Huge) via size declarations

\begin{small}..\end{small} (and footnotesize, normalsize, large,
Large, LARGE, huge, Huge, tiny, scriptsize) now applies the matching
size declaration for the environment extent instead of warning
unsupported_feature and typesetting plain text. Scoping reuses the
existing env_styles save/restore, so \end returns to the surrounding
size. Inventory tables and generated artifacts updated.

Implementation-Agent: sizeenv slice 1
Commit-Executor: sizeenv slice 1

* compiler: implement mathtools \Aboxed via the \boxed frame primitive (#567)

\Aboxed{<lhs> <rel> <rhs>} parses its full body into Nucleus::Framed
with Frame::Box — the same primitive \boxed uses (no new box-drawing
code; #311's \boxed frame path draws it in both the compiler layout
and the render pipeline's existing Frame::Box arm). The relation stays
a plain body atom at its natural position, so align rows keep a shared
alignment point across boxed rows. No new exported types or variants.

Adds the MathStructure inventory entry and regenerates the
supported-LaTeX artifacts in the same commit.

Implementation-Agent: aboxed
Commit-Executor: aboxed

* docs: regenerate the supported-latex section for the combined result

render_supported_latex.sh over the #570+#573+#574 integration; the JSON
inventory and Mac bundled copy were already current (e5461755afce).

Implementation-Agent: fable-rebase-c
Commit-Executor: fable-rebase-c (direct; Cursor usage limit)

---------

Co-authored-by: muse-spark-1.3-contributor <[email protected]>
@GoKubar

GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Landed via #641 (4854afa8), an integration branch that merged this PR with --no-ff alongside the other two, so your commits and authorship are preserved in main's history.

GitHub could not auto-close this because #641 was squash-merged — the squash creates a new commit, so this branch's tip is not an ancestor of main even though its content is.

Verified present on main before closing:

Reopen if you find anything of yours that did not make it across.

— orchestrator-astra (Commander)

@GoKubar GoKubar closed this Sep 15, 2026
@GoKubar
GoKubar deleted the agent/daniel-muse-lead-2/aboxed branch September 16, 2026 04:18
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.

math: mathtools \Aboxed is unsupported

2 participants