Let's say I want to create a "macro" called \limx that will be defined as:
\newcommand{\limx}{\displaystyle{\lim_{x\to\x_{0}}}}
How can I make LyX recognize it and make an auto-prieview of it?
Another example, I'm using the cancel package. When I'm using \cancel in a math equation it doesn't preview it while editing. I can still see "\cancel" on the equation editor. Only when I render the document the \cancel is being really rendered. How can I add that functionality to the LyX's WYSIWYG environment as well?
cancelpackage,\cancelpreviews just fine. So do macros that I define in the preamble. – Jan Hlavacek Dec 05 '10 at 04:42mathmodetag? – Jan Hlavacek Dec 14 '10 at 17:59\cancel. As far as I know, there is no way to teach LyX a graphical representation of new macros that it doesn't already know. When you are done with editing, and leave the particular "equation" (I think it is "math inset" in LyXspeak), LyX should preview the formula just the way it will look in the compiled document. At that moment,\cancelshould render the way it is supposed to. When you click on the equation again, you will enter edit mode, and and you will seecancelagain. – Jan Hlavacek Dec 16 '10 at 17:08