Uwe Stöhr <[EMAIL PROTECTED]> writes: > + else if (t.cs() == "makebox") { > + if (p.next_token().character() == '(') { > + //the syntax is: > \makebox(x,y)[position]{content} > + //the content can be left as is, the rest is > put into an ERT > + p.get_token(); // eat '(' > + string xyposition; > + xyposition = parse_text_snippet(p, > FLAG_BRACK_LAST, > + outer, context); > + handle_ert(os, "\\makebox(" + xyposition + "]", > context);
I think something is wrong here. Arguments in [] are optional. I doubt that you code will handle \makebox(3,2){contents} gracefully. You should use getFullOpt to read such optional strings (also in the other kind of \makebox). JMarc