- math-macro py - insert the pythagoras without parameter and call it py - open a mathbox - insert \py<space> -> nothing to see
- export to latex -> \newcommand{\py}{c^{2}=a^{2}+b^{2}} a macro \[ \ \] - save and reopen the doc -> the macro is gone Herbert -- http://www.lyx.org/help/