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 features are simply these: - it is added to a formula by typing \TeX in math - its content is not parsed by LyX, so everything is allowed like in the TeX code inset (ERT) - its content is output to LaTeX as it is - its content appears in red like normal TeX code
What I do not see is how you plan to write the inset and read it back. Even then, you are indeed going to have lots of problem with the tex parser. The solution is probably to be able to reset catcodes like I did in tex2lyx for verbatim support. This is not going to be easy.
What about trying to add support for \\[length] instead? JMarc