Bo Peng wrote: > By wrong formula, I mean things like $\text{\alpha}$ entered by C-M > C-M \alpha etc. I have discussed this problem in the user list. > > Currently, with instant preview turned on, > 1. If a wrong formula is entered, instant preview will fail and do > nothing. > 2. If a file with any wrong formula is opened, instant preview will > practically be disabled. No formula will be previewed. > > The attached patch replaces the wrong formula with a [wrong formula] > box when instant preview fails and ONLY one formula is being > previewed.
Grammatically speaking, I think that [Formula does not compile.] is better than [wrong formula]. However, I'm still very dubious about the improvement that this patch confers. It seems to me that the only change to LyX's behaviour is that exiting a just-edited inset will result in a [wrong formula] preview as opposed to no preview at all. Loading an existing document containing such an inset results in no previews being generated at all, as now. In conclusion, the existiing solution and your proposal convey appear equivalent information, but yours introduces different (note, not 'better) behaviour for a 'just-edited' inset. Forgive me, but I do not see why this is any improvement at all. Kind regards, -- Angus