Re: [patch idea] TeX code inset for math

2015-02-27 Thread aparsloe
On 28/02/2015 10:25 a.m., Georg Baum wrote: Guenter Milde wrote: OTOH, beware that e.g. $\sum_i$ is valid math inptu for a sum over index i! Thanks, this is the problem. I new I did forgot something, so we still need something which is no valid LaTeX to recognize the inset start. Georg And i

Re: [patch idea] TeX code inset for math

2015-02-27 Thread Georg Baum
Guenter Milde wrote: > OTOH, beware that e.g. $\sum_i$ is valid math inptu for a sum over index > i! Thanks, this is the problem. I new I did forgot something, so we still need something which is no valid LaTeX to recognize the inset start. Georg

Re: [patch idea] TeX code inset for math

2015-02-26 Thread Guenter Milde
On 2015-02-25, Georg Baum wrote: > Guenter Milde wrote: > The only question is: Is it guaranteed that a macro name can never contain > an underscore in LaTeX or TeX? If yes, then this would be quite easy to > implement at file format level. a) a macro name may contain any ACII character, if it

Re: [patch idea] TeX code inset for math

2015-02-25 Thread Georg Baum
Richard Heck wrote: > Is MathML anything like as expressive as LaTeX? I am no expert, but AFAIK not completely. However, for the math insets we have I believe it should be possible to create a somewhat clean MathML representation if one would want to invest the time. Georg

Re: [patch idea] TeX code inset for math

2015-02-25 Thread Georg Baum
Guenter Milde wrote: > Can't we use the standard way of representing insets even if the inset is > nested in math? > > E.g. > > \begin_layout Standard > Was ist > \begin_inset Formula $ > \begin_inset ERT > status open > > \begin_layout Plain Layout > > ert > \end_layout > > \end_inset > > i

Re: [patch idea] TeX code inset for math

2015-02-18 Thread Jean-Marc Lasgouttes
Le 18/02/2015 18:12, Guenter Milde a écrit : Ah, thanks for the explanation. I actually find it quite nice that LyX stores math in LaTeX but I can see how this has disadvantages as well. Can't we use the standard way of representing insets even if the inset is nested in math? We could use a n

Re: [patch idea] TeX code inset for math

2015-02-18 Thread Guenter Milde
On 2015-02-17, Scott Kostyshak wrote: > On Tue, Feb 17, 2015 at 2:49 PM, Georg Baum > wrote: >> Scott Kostyshak wrote: >>> Probably a silly question, but just so I understand better, why not >>> implement it using a direct analog of ERT (e.g. Ctrl L)? >> For insertion I would prefer Ctrl L as wel

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Richard Heck
On 02/17/2015 03:36 PM, Georg Baum wrote: Nico Williams wrote: Using MathML as suggested by someone else would have the convenient aspect of being able to use XML namespaces. Yes. This has only one tiny little problem: Given the current development man power I see absolutely no way how this ca

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Georg Baum
Nico Williams wrote: > On Tue, Feb 17, 2015 at 08:45:04PM +0100, Georg Baum wrote: >> One option which is probably easy to implement would be to mark the start >> and end of the ERT inset with two unicode symbols from the private use >> area (similar to META_INSET): We could define >> >> char_typ

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Nico Williams
On Tue, Feb 17, 2015 at 08:45:04PM +0100, Georg Baum wrote: > One option which is probably easy to implement would be to mark the start > and end of the ERT inset with two unicode symbols from the private use area > (similar to META_INSET): We could define > > char_type const MATH_ERT_BEG = 0x20

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Scott Kostyshak
On Tue, Feb 17, 2015 at 2:49 PM, Georg Baum wrote: > Scott Kostyshak wrote: > >> Probably a silly question, but just so I understand better, why not >> implement it using a direct analog of ERT (e.g. Ctrl L)? > > For insertion I would prefer Ctrl L as well (since anything starting with a > backsla

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Georg Baum
Scott Kostyshak wrote: > Probably a silly question, but just so I understand better, why not > implement it using a direct analog of ERT (e.g. Ctrl L)? For insertion I would prefer Ctrl L as well (since anything starting with a backslash could be a true LaTeX macro). This is easy to do, the diff

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Georg Baum
Uwe Stöhr wrote: > Since more about 10 years it has been a dream for me to have a TeX code > inset for math. > http://www.lyx.org/trac/ticket/2579 This is indeed an important feature and would remove the burden from the math TeX parser to understand 100% of all possible LaTeX formulas. I have b

Re: [patch idea] TeX code inset for math

2015-02-17 Thread Jean-Marc Lasgouttes
Le 17/02/2015 01:10, Uwe Stöhr a écrit : Since more about 10 years it has been a dream for me to have a TeX code inset for math. http://www.lyx.org/trac/ticket/2579 It is interesting to see that most of the bugs noted there are now fixed :) For LyX 2.2 I want implemented such a beast. Its fea

Re: [patch idea] TeX code inset for math

2015-02-16 Thread Scott Kostyshak
On Mon, Feb 16, 2015 at 7:10 PM, Uwe Stöhr wrote: > Since more about 10 years it has been a dream for me to have a TeX code > inset for math. > http://www.lyx.org/trac/ticket/2579 > > For LyX 2.2 I want implemented such a beast. Its features are simply these: > - it is added to a formula by typing

[patch idea] TeX code inset for math

2015-02-16 Thread Uwe Stöhr
Since more about 10 years it has been a dream for me to have a TeX code inset for math. http://www.lyx.org/trac/ticket/2579 For LyX 2.2 I want implemented such a beast. Its features are simply these: - it is added to a formula by typing \TeX in math - its content is not parsed by LyX, so everyth