]> git.lyx.org Git - lyx.git/commitdiff
Remove \it and other oldfonts from math completion
authorScott Kostyshak <skostysh@lyx.org>
Sat, 25 Jun 2016 23:37:15 +0000 (19:37 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 25 Jun 2016 23:40:18 +0000 (19:40 -0400)
\it and the other oldfont commands are deprecated and the new forms
(e.g. \mathit) should be used instead. The old forms can lead to a
warning in TeX Live 2015 and an error in TeX Live 2016.

Note that with this commit only affects completion, so LyX still
supports displaying e.g. \it in math if the user enters it without
completion.

This is consistent with 24d01111.

Thanks to Guillaume for the patch.

lib/symbols

index 279e64ecf00be8529f998089e151ca16cfedc6fd..5e1e9437d30aa9e7e48520fdab56da559df13732 100644 (file)
@@ -133,11 +133,11 @@ ce                font        forcetext
 cf                font        forcetext
 
 # old-style font commands
-bf                oldfont     none
-cal               oldfont     none
-it                oldfont     none
-rm                oldfont     none
-tt                oldfont     none
+bf                oldfont     none    hiddensymbol
+cal               oldfont     none    hiddensymbol
+it                oldfont     none    hiddensymbol
+rm                oldfont     none    hiddensymbol
+tt                oldfont     none    hiddensymbol
 
 # matrix environments
 Bmatrix           matrix      none