I was looking for a way to center text underneath math symbols such as constraints or regions. More specifically, from vector calculus, if we were to have a double integral bounded by some region D, then we would have the two integral signs with a D underneath. It looks like the D_1 and D_2 as seen below.
1 Answer
I cannot see this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ \iint\limits_{D_1} f(x,y)\mathrm{d}A \]
\end{document}
-
-
@night owl: I cannot see that the D1 is not centered below the double integral– user2478Jun 30, 2011 at 7:49
\stackrel[below]{main}{above}
(stackrel
package) in the general case and a simple\iint_{D}
or\iint\limits_{D}
for the double integral (with theamsmath
package).\iint\limits_{D}
did the trick. It was the\limits
I believe that was needed. I have a question about the\stackrel[below]{main}{above}
, what type of text or math code would actually goes in the "below" ,"main", and "above" fields?\stackrel
: Most likely any math code as well as text inside\mbox{..}
or better\text{..}
.\stackrel
or\stackbin
are the answer (they build relations and binary operations). First of all one should consider\overset
and\underset
from amsmath (which already do a good job of recognizing automatically the math kind of the main object).\stack...
just sounded good for this case. :-)