On Tuesday 03 September 2002 3:24 pm, Andre Poenitz wrote:
> On Tue, Sep 03, 2002 at 02:40:32PM +0100, Angus Leeming wrote:
> > Norbert Koksch has discovered a problem with the preview code that is
> > triggered if a document contains more than 999 (!) formulae.
> >
> > The formulae are numbered so:
> >
> >             ostringstream os;
> >             os << base_
> >                << setfill('0') << setw(3) << counter_++
> >                << "." << to_format_;
>
> Not my doing I believe.

(Slightly amazed) so? Nor is most of the preview code, even if you were the 
inspiration behind it.

> > ie they appear like
> >     lyxpreview001.ppm -> lyxpreview999.ppm
> >
> > The setw() call above should obviously be passed the required number of
> > digits. Given the number of snippets, nsnippets, what's the elegant way
> > to get ndigits? This is clearly brain-dead:
>
> Simply say '12' there. You can quote that later:
>
> "Nobody ever needs mor the 1O^12 formulas in his dissertation"

:-) You know I won't do that.

Reply via email to