Skip to content

compiler: \index / \glossary error instead of being silently discarded (#566) - #570

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

d-q222 wants to merge 5 commits into
mainfrom
agent/daniel-muse-lead-2/indexnoop

Conversation

@d-q222

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

Copy link
Copy Markdown
Contributor

Fixes #566.

What changed

  • \index/\glossary now parse-and-discard (their braced group consumed, no diagnostic), following the existing \graphicspath/\pagestyle/\listfiles no-op pattern. All bracket/pipe/at-sort/subentry variants live inside the one braced group, so consuming it covers them.
  • \hyphenation explicitly untouched (owned by a different lane).

Tests

  • New crates/compiler/tests/index_glossary_noop.rs: 6 entry shapes, 0 diagnostics, byte-identical layout vs. a bare document.
  • Full crates/compiler suite independently re-verified fresh, 100% green, including generated_artifacts_are_current.

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

🤖 Generated with Claude Code

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
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)
Source files auto-merged; the generated supported-latex artefacts and
docs/user/compiler.md were regenerated, never hand-merged.

Implementation-Agent: fable-rebase-c
Commit-Executor: fable-rebase-c (direct; Cursor usage limit)
Clean merge, no conflicts; picks up main's #638 compile fix for the
#623/#624 render-pipeline clash.

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)

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.

compiler: \index / \glossary error instead of being silently accepted and discarded

2 participants