Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionHow to put a symbol above (on the head of) another? For example, I want to produce something like this in one line.
a
#
i.e., a
above #
.
The effect should be almost the same with $#^a$
except that a
is on the top instead of top right of #
.
Use \overset{above}{main}
in math mode. In your case, \overset{a}{\#}
.
${a \atop \#}$
or
${a \above 0pt \#}$
If you're using #
as an operator, consider defining a new operator for it:
\newcommand{\pound}{\operatornamewithlimits{\#}}
You can then write things like \pound_{n = 1}^N
and get:
精彩评论