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:(adsbygoogle = window.adsbygoogle || []).push({});

Is there a way I can implement this in my HTML file?

+

I then just write \mathop{\Xint{\Rinfty}}Code (Text):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}}

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Coding new integral sign in mathjax for html file

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Coding integral sign | Date |
---|---|

Programming succesive trapezoidal integrator | Friday at 3:38 PM |

What should be the rules to write excellent code? | Mar 12, 2018 |

Converting a DFA to efficient code? | Mar 11, 2018 |

Python How can I run Python by getting values from Matlab | Mar 7, 2018 |

PID Codes | Feb 22, 2018 |

**Physics Forums - The Fusion of Science and Community**