Following on from this question, I'd like to be able to do this but with an integral sign.
The proposed solution is the following:
\newcommand{\opA}{\mathop{\vphantom{\sum}\mathchoice
{\vcenter{\hbox{\huge A}}}
{\vcenter{\hbox{\Large A}}}{\mathrm{A}}{\mathrm{A}}}\displaylimits}
I tried to modify this for an integral sign:
\newcommand{\integral}[2]{\mathop{\vphantom{\int}\mathchoice
{\huge\int #1 \, d#2}
{\Large\int #1 \, d#2}{\mathrm{A}}{\mathrm{A}}}\displaylimits}
Applying this via \integral{x}{x}_0^1
for instance then gives the following:
However, this centres the limits above and below the integral instead of where you want them at the left.
So my question is: how to align them in the right place? Also, what should I write instead of \mathrm{A}
in the other two type modes that are shown above?
Thanks!
\DeclareMathOperator
macro from theamsmath
package.