On Sat, Jun 25, 2016 at 08:42:01PM +0100, Guillaume Munch wrote:
> Le 25/06/2016 20:03, Scott Kostyshak a écrit :
> > Attached is a patch that removes \it from math completion, since \it has
> > been deprecated for a while, only giving a warning in TL 2015, but an
> > error in 2016.
> > 
> > I think the patch is consistent with 24d01111 in the concept of removing
> > math completion but if the user insists on using it, LyX still displays
> > it with built-in support.
> > 
> > I don't think this will have much impact since \it is so short that I
> > doubt anyone uses completion to access it, but perhaps it is better than
> > nothing.
> > 
> 
> Agreed.
> 
> I think the patch below is what you mean.

Ah thanks that is much better. Now I understand. Please commit your
version.

Do you know (I don't want you to spend time to find out) where we would
remove \it so that LyX does not render it and \it is treated just like
math ert? I do not think we should do this, but I was curious where this
happens in LyX's code and could not figure it out.

Scott


> 

> diff --git a/lib/symbols b/lib/symbols
> index 279e64e..5e1e943 100644
> --- a/lib/symbols
> +++ b/lib/symbols
> @@ -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

Attachment: signature.asc
Description: PGP signature

Reply via email to