Recently I have been doing a lot of double and triple integrals. To my disappointment, MMA does not have built-in integral signs for those advanced or special integrals. Fortunately, I have found out a way to introduce those integral signs from Unicode. In MMA, it can be introduced by typing the "\:unicode"of the integral sign.
But a new problem emerged after the introduction: when converting expressions containing my self-introduced integral sign with a fractional integrand after it into Latex code, MMA will multiply the integral sign into the numerator of the integrand.
For example, I have this expression input in my note book:
\!\(\*UnderscriptBox[
StyleBox["∬",
FontSize->24], \(1 <=
\*SuperscriptBox[\(x\), \(2\)] +
\*SuperscriptBox[\(y\), \(2\)] <= 4\)]\) Sin[\[Pi] Sqrt[
x^2 + y^2]]/Sqrt[x^2 + y^2] \[DifferentialD]x \[DifferentialD]y
which looks like :
However, what the latex code MMA made for this expression displays is:
$$ \frac{\iint\limits_{1\leq x^2+y^2\leq 4}\sin \left(\pi \sqrt{x^2+y^2}\right)\mathrm{d}x\mathrm{d}y}{\sqrt{x^2+y^2}} $$
where apparently MMA regards my self-introduced integral sign as an ordinary term which can be multiplied into the numerator. But unfortunately, it can't. By doing so the meaning and value of the expression has totally changed from the correct one.
Moreover, I have noticed that, for built-in integral signs, MMA will interpret the integral expression properly and will not multiply the integral sign in to the numerator, which shows there must be some way to pull it off.
I already know that to convert an expression into its TexForm, Mathematica will work on its Box representation of its traditional form. As a result, I was wondering, how I can prevent my self-introduced integral sign being multiplied into the numerator of the integrand when converting the whole expression into latex code.
To be clear: I do not want to rearrange the boxes by hand/by sight each time I need to do this kind of conversion. Because there can be a ton of integrals of this kind in a notebook of mine. What I need is a way to automate the process, like a function associated with MakeBoxes[] so that every time I do the conversion, MMA can automatically recognize it is an integral sign with a fractional integrand, consequentially the integral sign can not be multiplied into the numerator.