Re: [Better patch] math and text nesting problem

2005-05-01 Thread Martin Vermeer
On Fri, Apr 29, 2005 at 06:52:17PM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > +case LFUN_INSERT_MATH: { > > +bool const textarg = > > +arg == "\\textbf"   || arg == "\\textsf" || > > +arg == "\\textrm"   || arg ==

Re: [Better patch] math and text nesting problem

2005-04-30 Thread Andre Poenitz
On Fri, Apr 29, 2005 at 07:37:02PM +0300, Martin Vermeer wrote: > Slightly improved version of same. Makes it nearly impossible to mess up > :-) \def\textbf#1{^} and endless variations. However, I tend to think that for LyX it is ok to handle the common cases and take the 'once you use ERT you ar

Re: [Better patch] math and text nesting problem

2005-04-29 Thread Martin Vermeer
On Fri, Apr 29, 2005 at 06:42:34PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Slightly improved version of same. Makes it nearly impossible > Martin> to mess up :-) > > + Separator > + Item "Text box" "math

Re: [Better patch] math and text nesting problem

2005-04-29 Thread Martin Vermeer
On Fri, Apr 29, 2005 at 06:52:17PM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > +case LFUN_INSERT_MATH: { > > +bool const textarg = > > +arg == "\\textbf"   || arg == "\\textsf" || > > +arg == "\\textrm"   || arg ==

Re: [Better patch] math and text nesting problem

2005-04-29 Thread Georg Baum
Martin Vermeer wrote: > +case LFUN_INSERT_MATH: { > +bool const textarg = > +arg == "\\textbf"   || arg == "\\textsf" || > +arg == "\\textrm"   || arg == "\\textmd" || > +arg == "\\textit"   || arg == 

Re: [Better patch] math and text nesting problem

2005-04-29 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Slightly improved version of same. Makes it nearly impossible Martin> to mess up :-) + Separator + Item "Text box" "math-mode" + End Isn't this misleading when one is outside math-mode? JMarc

[Better patch] math and text nesting problem

2005-04-29 Thread Martin Vermeer
Slightly improved version of same. Makes it nearly impossible to mess up :-) - Martin Index: src/mathed/math_nestinset.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_nestinset.C,v retrieving revision 1.153 diff -u