Re: [patch] Ensure math

2008-09-04 Thread Enrico Forestieri
On Thu, Sep 04, 2008 at 08:07:22PM +0200, Andre Poenitz wrote: > On Thu, Sep 04, 2008 at 02:23:49PM +0200, Enrico Forestieri wrote: > > Index: src/mathed/InsetMathEnsureMath.cpp > > === > > --- src/mathed/InsetMathEnsureMath.cpp (

Re: [patch] Ensure math

2008-09-04 Thread Andre Poenitz
On Thu, Sep 04, 2008 at 02:23:49PM +0200, Enrico Forestieri wrote: > Index: src/mathed/InsetMathEnsureMath.cpp > === > --- src/mathed/InsetMathEnsureMath.cpp(revision 0) > +++ src/mathed/InsetMathEnsureMath.cpp(revision

Re: [patch] Ensure math

2008-09-04 Thread Jean-Marc Lasgouttes
Enrico Forestieri <[EMAIL PROTECTED]> writes: > On Thu, Sep 04, 2008 at 04:24:57PM +0200, Jean-Marc Lasgouttes wrote: > >> What is the appearance of this thing? > > It appears the same as a nested math in $ $ pairs. When you are > inside it, the status bar says "EnsureMath". > > The difference wit

Re: [patch] Ensure math

2008-09-04 Thread Enrico Forestieri
On Thu, Sep 04, 2008 at 04:24:57PM +0200, Jean-Marc Lasgouttes wrote: > What is the appearance of this thing? It appears the same as a nested math in $ $ pairs. When you are inside it, the status bar says "EnsureMath". The difference with respect to using $ $ is that it can also appear in math m

Re: [patch] Ensure math

2008-09-04 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: > I do not have any objection but I would like to hear from others as this may > be tricky. This also in the borderline of a new feature the only reason I > don't object more is the code is clean and a simple expansion from present > code. > > What do other

Re: [patch] Ensure math

2008-09-04 Thread Enrico Forestieri
On Thu, Sep 04, 2008 at 04:00:03PM +0200, Pavel Sanda wrote: > Enrico Forestieri wrote: > > The attached patch introduces the EnsureMath inset, obtained by typing > > \ensuremath in mathed, alleviating the previous shortcomings. > > btw isn't some lyx2lyx routine needed too? No, as no file format

Re: [patch] Ensure math

2008-09-04 Thread José Matos
On Thursday 04 September 2008 13:23:49 Enrico Forestieri wrote: > The attached patch introduces the EnsureMath inset, obtained by typing > \ensuremath in mathed, alleviating the previous shortcomings. > > José, can this go in? I do not have any objection but I would like to hear from others as thi

Re: [patch] Ensure math

2008-09-04 Thread Pavel Sanda
Enrico Forestieri wrote: > The attached patch introduces the EnsureMath inset, obtained by typing > \ensuremath in mathed, alleviating the previous shortcomings. btw isn't some lyx2lyx routine needed too? pavel

[patch] Ensure math

2008-09-04 Thread Enrico Forestieri
In mathed, sometimes one needs to typeset something in math-in-text mode. For example, this may be the case with \tag or other text commands. TeX allows nesting math inside a text mode command, for example \[y=f(x) \tag{$1\alpha$}\] is a valid construct. However, this is cumbersome to achieve in Ly