Stefan Schimanski wrote: >> I make heavy use of macros (\newcommand). If I change one definition, I >> have to close and re-open the LyX file to have the math re-rendered with >> the new definition. How can I force the re-rendering? > > Even with the 1.5 implementation they should be updated automatically. > If not, it's a bug we introduced. By updating I mean that you only > change the definition, i.e. the "right part" of the macro.
I did not think this feature existed! I think that it never worked on my machine. There are two cases to discuss. ### Using \newcommand in the the LyX document preamble. I get this behaviour: 1) new document 2) write this in preamble: \newcommand{\mycommand}{ciao} 3) create math inset (equivalent of $\mycommand$). math is properly rendered 4) change the preamble in \newcommand{\mycommand}{ola} At this point, should the rendering change? Nothing changes for me. ### Using \input{...} in LyX preamble I usually write my macros in a file called "symbols.tex"; then I write \input{symbols.tex} in the preamble of the LyX document. If I change a macro (right part) in symbols.tex, LyX does not notice it. Now, I really don't expect it to do it, but it would be nice to have a command to force the re-rendering. -- Andrea Censi "Life is too important to be taken seriously" (Oscar Wilde) Web: http://www.dis.uniroma1.it/~censi