From 3088ced90b98f61212462246c5a4410852947ed0 Mon Sep 17 00:00:00 2001 From: Dorothy Date: Wed, 25 Feb 2026 15:22:27 +0530 Subject: [PATCH] add toolbar entries for overbrace, underbrace and underline --- .../modern/16x16/focus/tm_wide_bar.xpm | 31 ++++++++++++++++++ .../modern/16x16/focus/tm_wide_overbrace.xpm | 31 ++++++++++++++++++ .../modern/16x16/focus/tm_wide_underbrace.xpm | 31 ++++++++++++++++++ TeXmacs/progs/math/math-menu.scm | 5 ++- devel/202_2723.md | 32 +++++++++++++++++++ 5 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_bar.xpm create mode 100644 TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_overbrace.xpm create mode 100644 TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_underbrace.xpm create mode 100644 devel/202_2723.md diff --git a/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_bar.xpm b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_bar.xpm new file mode 100644 index 0000000000..cbe7ae7a24 --- /dev/null +++ b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_bar.xpm @@ -0,0 +1,31 @@ +/* XPM */ +static char *magick[] = { +/* columns rows colors chars-per-pixel */ +"15 17 8 1", +" c None", +"Y c #686c68", +". c #0000f8", +"X c #383cf8", +"o c #787cb8", +"O c #787cf8", +"+ c #a8aca8", +"@ c #b8bcb8", +/* pixels */ +" ", +" ", +" @X ", +" XoXOO ", +" oX.X@ ", +" X...O ", +" O@X@o ", +" @O ", +" ", +" ", +" YYYYYYYY+ ", +" YYYYYYYY+ ", +" ", +" ", +" ", +" ", +" " +}; diff --git a/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_overbrace.xpm b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_overbrace.xpm new file mode 100644 index 0000000000..aa52c278d8 --- /dev/null +++ b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_overbrace.xpm @@ -0,0 +1,31 @@ +/* XPM */ +static char *magick[] = { +/* columns rows colors chars-per-pixel */ +"15 17 8 1", +" c None", +"Y c #686c68", +". c #0000f8", +"X c #383cf8", +"o c #787cb8", +"O c #787cf8", +"+ c #a8aca8", +"@ c #b8bcb8", +/* pixels */ +" ", +" ", +" +++ ", +" +YYY+ ", +" Y+ +Y ", +" YY YY ", +" Y Y ", +" ", +" ", +" @X ", +" XoXOO ", +" oX.X@ ", +" X...O ", +" O@X@o ", +" @O ", +" ", +" " +}; diff --git a/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_underbrace.xpm b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_underbrace.xpm new file mode 100644 index 0000000000..f3caf58963 --- /dev/null +++ b/TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_underbrace.xpm @@ -0,0 +1,31 @@ +/* XPM */ +static char *magick[] = { +/* columns rows colors chars-per-pixel */ +"15 17 8 1", +" c None", +"Y c #686c68", +". c #0000f8", +"X c #383cf8", +"o c #787cb8", +"O c #787cf8", +"+ c #a8aca8", +"@ c #b8bcb8", +/* pixels */ +" ", +" ", +" @X ", +" XoXOO ", +" oX.X@ ", +" X...O ", +" O@X@o ", +" @O ", +" ", +" Y Y ", +" YY YY ", +" Y+ +Y ", +" +YYY+ ", +" +++ ", +" ", +" ", +" " +}; diff --git a/TeXmacs/progs/math/math-menu.scm b/TeXmacs/progs/math/math-menu.scm index ad045712ad..b26d5bf49a 100644 --- a/TeXmacs/progs/math/math-menu.scm +++ b/TeXmacs/progs/math/math-menu.scm @@ -1257,7 +1257,10 @@ ((balloon (icon "tm_dot.xpm") "keyboard equivalent:") (make-wide "")) ((balloon (icon "tm_ddot.xpm") "keyboard equivalent:") (make-wide "")) ((balloon (icon "tm_acute.xpm") "keyboard equivalent:") (make-wide "")) - ((balloon (icon "tm_grave.xpm") "keyboard equivalent:") (make-wide "")))) + ((balloon (icon "tm_grave.xpm") "keyboard equivalent:") (make-wide "")) + ((balloon (icon "tm_wide_overbrace.xpm") "keyboard equivalent:") (make-wide "")) + ((balloon (icon "tm_wide_underbrace.xpm") "keyboard equivalent:") (make-wide-under "")) + ((balloon (icon "tm_wide_bar.xpm") "keyboard equivalent:") (make-wide-under "")))) / (=> (balloon (icon "tm_binop.xpm") "Insert a binary operation") (tile 8 (link binary-operation-menu))) diff --git a/devel/202_2723.md b/devel/202_2723.md new file mode 100644 index 0000000000..ca870150b3 --- /dev/null +++ b/devel/202_2723.md @@ -0,0 +1,32 @@ +# [202_2723] Add toolbar entries for \overbrace, \underbrace, \underline + +## Issue + +#2723 — The math mode toolbar's wide accent popup is missing entries for +`\overbrace`, `\underbrace`, and `\underline`, even though they are available +in the Insert menu. + +## Fix + +Added 3 entries to the wide accent popup in `math-insert-icons` +(`TeXmacs/progs/math/math-menu.scm`), following the same pattern as the +existing accent buttons. + +Also added 3 new XPM icons in `TeXmacs/misc/pixmaps/modern/16x16/focus/`: +- `tm_wide_overbrace.xpm` +- `tm_wide_underbrace.xpm` +- `tm_wide_bar.xpm` + +## Changed Files + +- `TeXmacs/progs/math/math-menu.scm` +- `TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_overbrace.xpm` +- `TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_underbrace.xpm` +- `TeXmacs/misc/pixmaps/modern/16x16/focus/tm_wide_bar.xpm` + +## How to Test + +1. Build with `xmake build stem` and run with `xmake run stem` +2. Enter math mode with `$` +3. Open the wide accent popup in the toolbar +4. Verify `\overbrace`, `\underbrace`, and `\underline` now appear and insert correctly