Uwe Stöhr wrote:
Thanks for the hint, this makes the code much smaller.

and even smaller:

string arg = "\\makebox";
if (p.next_token().character() == '(')
        //the syntax is: \makebox(x,y)[position]{content}
        //the content can be left as is, put the rest in ERT
        arg += p.getFullParentheseOpt();
else
        //the syntax is: \makebox[width][position]{content}
        arg += p.getFullOpt();
handle_ert(os, arg + p.getFullOpt(), context);



Reply via email to