mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
039de52ad9
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. |
||
---|---|---|
.. | ||
attic | ||
bind | ||
citeengines | ||
commands | ||
doc | ||
docbook | ||
examples | ||
fonts | ||
images | ||
kbd | ||
layouts | ||
lyx2lyx | ||
scripts | ||
tabletemplates | ||
templates | ||
tex | ||
ui | ||
xtemplates | ||
.gitignore | ||
autocorrect | ||
build-listerrors | ||
chkconfig.ltx | ||
configure.py | ||
CREDITS | ||
encodings | ||
generate_contributions.py | ||
languages | ||
latexfonts | ||
layouttranslations | ||
layouttranslations.review | ||
lyx.desktop.in | ||
Makefile.am | ||
org.lyx.LyX.metainfo.xml | ||
RELEASE-NOTES | ||
symbols | ||
syntax.default | ||
unicodesymbols |