It seems that macros are rendered properly now. However, the cursor jump randomly when inserting a macro instance, and using subscript in the macro argument. More issues: - A macro instance inside an instance of the same macro is not displayed correctly. Check the attached file: the formula should be E[X-E[X]] but it is displayed as E[X ] Note that this bug exists before the mathed cleanup begun, but it will be nice to fix it. Note that the old code display the formula as E[X]-E[X] ! - It would be nice to change the way InsetFormulaMacro is drawn on screen: Instead of displaying the macro name and showing the macro body when the inset is opened, both the name and the body should be displayed all the time.
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language english \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset FormulaMacro \newcommand{\E}[1]{\mathrm{E}[#1 ]} \end_inset \layout Standard \begin_inset Formula \( \E{X-\E{X}} \) \end_inset \the_end