return res.empty() ? string() : '[' + res + ']';
}
-string Parser::getFullParentheseOpt()
+string Parser::getFullParentheseArg()
{
Arg arg = getFullArg('(', ')');
if (arg.first)
* <tt>\begin{name}</tt> must be parsed already, <tt>\end{name}</tt>
* is parsed but not returned.
*/
- std::string getFullParentheseOpt();
+ std::string getFullParentheseArg();
/// \returns getArg('(', ')') including the parentheses
std::string const verbatimEnvironment(std::string const & name);
/// Returns the character of the current token and increments the token position.
//\makebox() is part of the picture environment and different from \makebox{}
//\makebox{} will be parsed by parse_box when bug 2956 is fixed
else if (t.cs() == "makebox") {
- string arg = "\\makebox";
+ string arg = t.asInput();
if (p.next_token().character() == '(')
//the syntax is: \makebox(x,y)[position]{content}
- arg += p.getFullParentheseOpt();
+ arg += p.getFullParentheseArg();
else
//the syntax is: \makebox[width][position]{content}
arg += p.getFullOpt();