commit 0c637292e2b4ad09e4167ae9f5d94f8176604d77
Author: Koji Yokota <[email protected]>
Date:   Wed Jun 11 21:45:59 2025 +0900

    Make a toolbar menu for text insertion in math
---
 lib/images/math/text.svgz    | Bin 0 -> 2729 bytes
 lib/ui/stdtoolbars.inc       |   8 ++++++++
 src/mathed/InsetMathGrid.cpp |   2 +-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/images/math/text.svgz b/lib/images/math/text.svgz
new file mode 100644
index 0000000000..3f07706625
Binary files /dev/null and b/lib/images/math/text.svgz differ
diff --git a/lib/ui/stdtoolbars.inc b/lib/ui/stdtoolbars.inc
index bdd498ce43..f565979829 100644
--- a/lib/ui/stdtoolbars.inc
+++ b/lib/ui/stdtoolbars.inc
@@ -218,6 +218,7 @@ ToolbarSet
        Toolbar "math_panels" "Math Panels"
                PopupMenu "space" "Math spacings"
                PopupMenu "style" "Styles & classes"
+               PopupMenu "text" "Text"
                PopupMenu "frac-square" "Fractions"
                PopupMenu "font" "Fonts"
                PopupMenu "functions" "Functions"
@@ -409,6 +410,13 @@ ToolbarSet
                Item "Right overlap     \\mathrlap" "math-insert \mathrlap"
        End
 
+       Toolbar "text" "Text"
+               Item "Mbox      \\mbox", "math-size \mbox"
+               Item "Text      \\text", "math-size \text"
+               Item "Intertext \\intertext", "math-size \intertext"
+               Item "Short intertext   \\shortintertext", "math-size 
\shortintertext"
+       End
+
        Toolbar "sqrt-square" "Roots"
                Item "Square root       \\sqrt" "math-insert \sqrt"
                Item "Other root        \\root" "math-insert \root"
diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index b4d216eae3..4cd964a1ea 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -27,6 +27,7 @@
 #include "CutAndPaste.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
+#include "InsetMathIntertext.h"
 #include "LaTeXFeatures.h"
 #include "MathFactory.h"
 #include "TexRow.h"
@@ -1328,7 +1329,6 @@ void InsetMathGrid::write(TeXMathStream & os,
 
 void InsetMathGrid::checkMathCommandConflict(idx_type idx) const
 {
-       LYXERR0("hulltype = " << hullName(getType()));
        for (docstring const &command : mathedConflictCommands()) {
                if (!cell(idx).empty() && cell(idx).front()->name() == command) 
{
                        for (docstring const & hull : 
mathedConflictList().at(command)) {
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to