[202_2787] Fix inconsistent focus toolbar numbering button in tables#2833
[202_2787] Fix inconsistent focus toolbar numbering button in tables#2833Gitjay11 wants to merge 1 commit intoMoganLab:mainfrom
Conversation
|
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? |
|
hi @Yuki-Nagori , Thanks for the detailed explanation. I understand now that the button I modified (Figure 1) is actually used to switch between |
|
@Gitjay11 Of course, but please create an issue before doing it. |
|
@Yuki-Nagori Okay sure, Will do. I'll open a new issue for the UI/tooltip change so we can track it properly, Thanks again. |


What
Modified [TeXmacs/progs/table/table-menu.scm] to extend the definition of
numbered-context?andnumbered-numbered?.Why
Inside tables (
tabular,tformat, etc.), thenumbered-context?predicate returned#fforcellandrowtags, 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-tableorbig-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.