Accepting brackets as if they were parens in latex function parser