- #1
aheight
- 321
- 109
I am creating a website and wish to include a new integral sign that has an infinity sign over it but aligned with the same tilt angle as the integral. I'm using Mathjax to render the math code. I can code this in Latex outside an HTML file and it works perfectly but does require the graphicx library and rotatebox function:
Is there a way I can implement this in my HTML file?+
I then just write \mathop{\Xint{\Rinfty}}
Is there a way I can implement this in my HTML file?+
Code:
latex
\def\Xint#1{\mathchoice%
{\XXint\displaystyle\textstyle{#1}}%
{\XXint\textstyle\scriptstyle{#1}}%
{\XXint\scriptstyle\scriptscriptstyle{#1}}%
{\XXint\scriptscriptstyle\scriptscriptstyle{#1}}%
\!\int}%
\def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\vcenter{\hbox{$#2#3$}}\kern-.5\wd0}}
\newcommand{\Rinfty}{\rotatebox{77}{$\infty$}\hspace{-0.05em}}
I then just write \mathop{\Xint{\Rinfty}}