\end{PARENS} \]

The code above gives the error

Argument of \frac has an extra }. \frac.

But if i write the \frac{x}{y} command in {} then there is no error.

I just want to learn how i can fix it?

  • 2
    According to pctex.com/files/managed/1/1b/mtpro2Abbrev.pdf, \PARENS is a command expecting an argument, so \PARENS{\frac{x}{y}} should be correct. Can you test? (I don't have mtpro2 installed.)
    – Joseph Wright
    Aug 10, 2014 at 11:26
  • @JosephWright Tested it; is correct.
    – JPi
    Aug 10, 2014 at 11:41

1 Answer 1


The documentation for mtpro2 makes it clear that \PARENS is a command taking one argument


It's unsurprising that if you use it as an environment odd things happen (here, it grabs \frac but not the arguments to \frac, then problems arise as \frac looks for two arguments and fails to find them).

  • i wonder if there is a way to use \PARENS as environment without using {}. Can we add {} automatically, for example, using a command.
    – mert
    Aug 10, 2014 at 11:56
  • @mert You could define a command which uses the environ package to collect up the content of the environment then use it as the argument to \PAREN. I think that would be a separate question :-)
    – Joseph Wright
    Aug 10, 2014 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.