Skip to content

Comments

[202_2787] Fix inconsistent focus toolbar numbering button in tables#2833

Open
Gitjay11 wants to merge 1 commit intoMoganLab:mainfrom
Gitjay11:fix/table-numbering-focus
Open

[202_2787] Fix inconsistent focus toolbar numbering button in tables#2833
Gitjay11 wants to merge 1 commit intoMoganLab:mainfrom
Gitjay11:fix/table-numbering-focus

Conversation

@Gitjay11
Copy link
Contributor

@Gitjay11 Gitjay11 commented Feb 20, 2026

What

Modified [TeXmacs/progs/table/table-menu.scm] to extend the definition of numbered-context? and numbered-numbered?.

Why

Inside tables (tabular, tformat, etc.), the numbered-context? predicate returned #f for cell and row tags, causing the numbering/unnumbering buttons in the focus toolbar to be disabled or hidden. This fixes issue #2787.

How

By recursively checking parent nodes, table cells can now inherit the numbering properties of the enclosing small-table or big-table. Verification: Insert a small table, click inside a cell, and the numbering button in the focus toolbar should become active and toggle numbering correctly.

@Gitjay11
Copy link
Contributor Author

Gitjay11 commented Feb 21, 2026

Hi @da-liii @wumoin @SaidealemEksan @Yuki-Nagori , I’ve submitted this PR. Could you please take a moment to review it when you have time?
If any changes or improvements are needed, I’d be happy to update it accordingly.
Thank you for your time and feedback.

@da-liii da-liii requested a review from Yuki-Nagori February 22, 2026 13:28
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.

1 participant