On Wed, Oct 07, 2009 at 10:24:41AM +0200, Jean-Marc Lasgouttes wrote:
> Coming back to the bug, could some kind soul explain what is going on?

The method that once was named textString() was being used to provide
a stringified representation of insets. This was used both for the GUI
toc *and* for copy-and-paste purpose (since forever, me thinks).
That method was then renamed as tocString(), but it is still used for
copy-and-paste, too, causing confusion.

> Why doesn't the patch remove InsetMathHull::tocString instead of
> rewriting it?

Because otherwise you would not be able to paste equations in external
applications.

> We do not want math insets in tocs, do we?

I think we want them. For example, when you have

\section{Computing $\pi$ with arbitrary precision}

you would like to see the math in the toc, instead of
"Computing with arbitrary precision".

-- 
Enrico

Reply via email to