Below you can see an arrow with a plus and a minus sign on top of it. How is this achievable in latex? Further possibilities: arrow with only plus and arrow with only minus sign on top. How can I do this?
[Tex/LaTex] Arrow with plus/minus sign on top
symbols
Best Answer
\stackrel
LaTeX provides
\stackrel
to place something on a relational operator:+/-
.\xrightarrow
Package
amsmath
addresses the previous problems by providing extensible arrows:The length of the arrow grows with width of the annotations below or above. The arrow tip is taken into account.
But there is room for improvement:
If the size of the plus and minus signs are too large, then
\scriptscriptstyle
can be added:Scalable
\xrightarrow
\xrightarrow
ofamsmath
does not resize automatically with different math styles. The last example redefines\ext@arrow
for\rightarrowpm
to make it scalable according to the current math style. A smaller style than\scriptscriptstyle
is achieved by scaling to 90%.