From 0fc9b08e4db42f83bdd30f1f714b61e70dc53295 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 12 Apr 2015 00:47:18 +0200 Subject: [PATCH] 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. --- lib/symbols | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symbols b/lib/symbols index 1361c9b8b7..cbd83070b5 100644 --- a/lib/symbols +++ b/lib/symbols @@ -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)