I'm trying to define a new command for scalar product. So far, it looks like this:
\newcommand{\ilskal}[2]{\left(#1\left|#2\right)}
However, when I was trying to put something riddiculously high in one of the fields, the separator (|) remained the same height. I tried modifying the command:
\newcommand{\ilskal}[2]{\left(#1\left|\phantom{\right}#2\right)}
However, that doesn't work; by putting a matrix in one of the fields I get an error. Putting anything else produces an error as well. Why? I tried substituting | for other vertical lines, but it didn't help.
