My last patch gives us an almost working 'real' \mbox inset for mathed I.e. creation and editing works, but nothing I/O related.
The reason for this is that mathed and texted still use different I/O schemes (I don't mean the format here, but mainly the signatures of I/O functions). In mathed we have virtual void write(WriteStream & os) const; virtual void normalize(NormalStream &) const; virtual void maple(MapleStream &) const; virtual void maxima(MaximaStream &) const; virtual void mathematica(MathematicaStream &) const; virtual void mathmlize(MathMLStream &) const; virtual void octave(OctaveStream &) const; and 'latex' is implemented as direct call to 'write'. In texted we have virtual void write(Buffer const & buf, std::ostream & os) const; virtual int latex(Buffer const &, std::ostream &, OutputParams const &) const; virtual int plaintext(Buffer const &, std::ostream &, OutputParams const &) const; virtual int linuxdoc(Buffer const &, std::ostream &, OutputParams const &) const ; virtual int docbook(Buffer const &, std::ostream &, OutputParams const &) const ; Needless to say that both schemes do not fit together too well, and neither scheme is perfect. The mathed implementation does not reflect the High Art of Streams (i.e. a decent streambuf based implementation), and 'latex' calls 'write' instead the other way round, and the texted implementation is less flexible when it comes to format specific parameters and it is more verbose on the user side. I'd like to consolidate this at least for the write/latex part as this would allow me to drop quite a bit of code from math-text-lookalike insets as MathBoxInset. Andre'