Andre Poenitz wrote: > Judging from > int InsetFormula::latex(Buffer const *, ostream & os, bool fragile, > bool) const > { > WriteStream wi(os, fragile, true); > par_->write(wi); > return wi.line(); > }
> that's not the place. Is this your way of saying that the problem lies in mathed itself? Ie, it would go away if we had control over the 'true' passed to the WriteStream c-tor. Here's a minimal "solution" from the preview end rather than the mathed end. We currently generate a latex file for preview-latex by: 1 Dump LyX preamble. 2 Dump the math-macros 3 Add preview-latex magic \begin{document} 4 Dump all previewable snippets. \end{document} A hack might be to redefine \lyxlock between 1 and 2 as an empty wrapper. Care to suggest a bit of LaTeX that would do this? Alternatively, we could post-process the data passed to os by the math insets before it is dumped to file to remove these lyxlocks. That, however, sounds nastier. -- Angus