Enrico Forestieri wrote:
> On Mon, Aug 19, 2013 at 11:30:29PM -0700, Pavel Sanda wrote:
>
> > Sebastian Kranz wrote:
> > > I wanted to ask if perhaps, it could be possible to add a Lyx command
> > > that
> > > allows to copy selected Lyx text containing math and text as Latex code.
> > > To
> > > be more precise, when I paste copied Lyx text in a text editor it shall
> > > be
> > > correct Latex code including $ signs. Currently, the dollar signs $ for
> > > math are not copied, e.g. when copying the following text: "text $x=5$",
> > > I
> > > can only paste it as "text x=5". I know that one can open the latex
> > > source
> > > window in Lyx, and copy code from there but that is rather inconvenient.
> >
> > Hi Sebastian,
> >
> > are you aware of math-extern LFUN?
> > Pushing math code to maxima and back (done through TeX wrapping IIRC)
> > works already and adding support for 'solve' could be few lines of
> > code in MathExtern.cpp.
>
> What kind of support? AFAIK it already works. Have a look at the
> attached document. The trick here is to use a delimiter inset instead
> of simply (...).
Aaah, that was the catch! Indeed with proper inset instead of plain '(',')'
the solve example from above works.
Would you mind to place this document as a section somewhere into our manuals?
> BTW, it seems that the shortcut for the parentheses inset Alt-M+( doesn't
> work anymore for me.
Works here. (2.1)
Pavel