On Fri, Sep 09, 2016 at 12:43:27AM +0200, Enrico Forestieri wrote:
> On Thu, Sep 08, 2016 at 10:13:27PM +0000, Guenter Milde wrote:
> > 
> > * if I insert a literal degree-sign from the keyboard into mathed, LyX
> >   wraps it in \text while inserting, 
> 
> Yes, this was my doing after you insisted so much that at the end
> I surrendered and changed this from the previous behavior of "silently"
> wrapping it in \lyxmathsym. I will never do again the same error.

Well, I did it again. Now when a command is inserted in the wrong mode,
it is explicitly wrapped in the right mode-changing command. I don't
like it but is easy dissolving an unwanted inset.

> > > If you copy and paste an equation outside of lyx, the
> > > "silent additions" are also provided, so they are not so silent.
> > 
> > Really? With an integral in "mathed text" I got:
> > 
> > * in the source pane: $A=\text{\ensuremath{\int}d}x$
> > 
> > * copying the complete mathbox: A=\text{\ensuremath{\int}d}x
> >  
> > * copying from inside the math-box: \text{\int d}x
> 
> This is really strange. I did the same, progressively reducing the
> selection from outside to inside I obtain:
> 
> 1) A=\text{\ensuremath{\int}d}x
> 2) =\text{\ensuremath{\int}d}x
> 3) =\text{\ensuremath{\int}d}
> 4) \text{\ensuremath{\int}d}
> 5) \ensuremath{\int}d
> 
> So, it seems that I cannot reproduce.

I was wrong and I apologize for this. The problem is that I copy-pasted
the above equation in lyx and then hit Ctrl-M, without realizing that
the ensuremath inset was actually entered in this case.

-- 
Enrico

Reply via email to