Skip to content

The "numbered" toggle button for tabular inside tables is misleading — it controls alignment, not numbering #2852

@Gitjay11

Description

@Gitjay11

Body

Description:

When the cursor is inside a tabular within a big-table or small-table environment, the focus toolbar shows a "numbered/unnumbered" toggle button (tm_numbered.xpm / 123-style icon) with the tooltip "Toggle numbering". However, this button does not control the table's numbering.

  • What users expect: Clicking the "123" button should toggle the table caption between numbered ("表格 1." / "Table 1.") and unnumbered ("表格." / "Table.").
  • What actually happens: The button switches between tabular and tabular*, which toggles center alignment of cells, not numbering.
  • How numbering actually works: Table numbering is controlled at the outer level by toggling between big-table and big-table* (or small-table / small-table*), which already works correctly.

From TeXmacs/packages/standard/std-markup.ts (line 320):

<assign|tabular*|<macro|body|<tformat|<cwith|1|-1|1|-1|cell-halign|c>|<arg|body>>>>

This confirms that tabular* only sets cell-halign to center — it has nothing to do with numbering.

Proposed Fix

Change the icon and/or tooltip of the toggle button in the tabular context so it accurately reflects its actual purpose (cell alignment toggle), rather than appearing as a numbering control.

Context

Discovered during investigation in PR #2833 / issue #2787. As clarified by @Yuki-Nagori, the original issue was based on a misunderstanding of what the button does. The underlying functionality works correctly — only the UI representation is misleading.

Related

Issue: #2787
PR: #2833

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions