On Wednesday 12 February 2003 10:55 am, Andre Poenitz wrote:
> On Wed, Feb 12, 2003 at 10:50:30AM +0000, Angus Leeming wrote:
> > >> Sure. One question. Would ' - 4,5 cM ' count as one token or two?
> > >
> > > Six.  - 4 5 , c M.
> > >
> > > The conversion has to be done on output.
> >
> > ??? Ok. You tokenise and then parse. Fair enough.
>
> But wrong. Tokenization should happen "lazy".
>
> > But presumably these 6 tokens are used to initialise the width argument
> > of a minibuffer for example. So, having created the contents of the width
> > argument I have a single variable to 'regularize'.
> >
> > If not, could you paint a picture of what you expect to happen because
> > you're confusing me.
>
> I expect to use
>
>    if (name == "minipage") {
>                 string width = p.verbatimItem();
>       os << "begin_inset Minipage ...." << canonicalLength(width);
>       parse(p, os, FLAG_END);
>       os << "end_inset;
>    }

Thank you. All is clearer now. Would verbatimItem return '4.5 \columnwidth' 
too?

One more thing: LyX can read all of minipage's optional args too (although I 
have no idea how it expects to receive inner_pos because although read it is 
never used.)

A

Reply via email to