commit d08e07a29003d2e0d60f135849d99bcd33857b7c
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Aug 9 17:15:01 2025 +0200
Do not import redefinitions of size commands as math macro defs
---
src/tex2lyx/text.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 873fe320ad..cf314385e3 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -6201,7 +6201,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags,
bool outer,
t.cs() == "DeclareRobustCommandx" ||
t.cs() == "providecommand" ||
t.cs() == "providecommandx" ||
- name[name.length()-1] == '*')
+ name[name.length()-1] == '*' ||
+ is_known(ltrim(command, "\\"), known_sizes))
output_ert_inset(os, ert, context);
else {
context.check_layout(os);
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs