Enrico Forestieri 039de52ad9 Amend 58103cf2
The \underbar macro is a text mode macro that can also be used
in math mode. However, when inserting it in mathed, LyX helpfully
wraps it in a \text inset. One can dissolve such text inset and
the macro would appear in math mode without any problem. But the
output routine thinks that the user is shooting itself in the
foot and tries to protect him by wrapping \underbar in the
\lyxmathsym macro, whose definition is normally added to the
preamble when an unicode character is used in math mode.

Of course, this is not the case for \underbar and a compile
error arises. The easier solution is to simply add lyxmathsym as
a requirement for \underbar in lib/symbols, but this means
that the definition of \lyxmathsym would be added even when not
necessary (because in the validation routine we miss the info
about the current mode). The correct solution is acknowledging
the dual nature of \underbar as a text-mode macro that can also
be used in math mode. Luckily the correct solution is almost as
easy as the easier one and is what is done in this commit.
2023-11-09 00:21:21 +01:00
..
2022-12-18 17:37:50 +01:00
2023-10-24 13:48:57 +02:00
2023-07-28 18:21:47 -04:00
2023-11-09 00:15:16 +01:00
2023-09-19 01:05:40 +02:00
2022-11-20 21:19:44 +01:00
2023-08-01 05:23:05 -04:00
2023-03-20 22:48:41 +01:00
2023-09-13 20:41:43 +02:00
2019-06-26 08:57:05 +02:00
2020-07-09 18:59:54 +02:00
2023-09-19 23:52:13 +02:00
2023-11-01 21:34:46 +01:00
2023-11-09 00:21:21 +01:00
2018-03-09 15:17:23 +01:00