Fix output of \lightning in math mode.

The \lightning symbol is text mode only. Hence, for using it in
mathed, it must be inserted in a text mode environment such as
\mbox, \text, etc. However, as it is not marked as textmode,
LyX "helpfully" encloses it in \ensuremath everytime one tries
to put it in a text mode environment, thus defying the countermeasure.
By declaring it textmode only, LyX stops doing that and thus it can be
correctly output by simply selecting it and hitting Ctrl-M.
This commit is contained in:
Enrico Forestieri 2015-04-12 10:35:53 +02:00
parent 5c645532ea
commit a63af1b93a
2 changed files with 4 additions and 1 deletions

View File

@ -674,7 +674,7 @@ currency wasy 27 0 textmode ¤ wasysym # works in text
phone wasy 7 0 textmode ☎ wasysym # works in text mode only (produces \Upsilon in math mode)
recorder wasy 6 0 textmode ⌕ wasysym # works in text mode only (produces \Sigma in math mode)
clock wasy 28 0 textmode &clock; wasysym # works in text mode only (produces \o in math mode)
lightning wasy 18 0 x ☇
lightning wasy 18 0 textmode ☇ wasysym # works in text mode only (produces ` in math mode)
# FIXME Display is wrong (bug 8493): qt does not display characters at the \t position (0x09)
pointer wasy 9 0 textmode x wasysym # works in text mode only (produces \Psi in math mode)
RIGHTarrow wasy 17 0 textmode ▶ wasysym # works in text mode only (produces \jmath in math mode)

View File

@ -103,6 +103,9 @@ What's new
- Use local babel language switch in fixed width cells in order to prevent
unwanted whitespace (bug 9455).
- Mark the \lightning symbol as textmode such that it can be inserted in
a text mode environment without being enclosed in \ensuremath by LyX.
* LYX2LYX