When typing in formulas in
Latex, sometimes we need to stack math symbols, especially with arrows. Here are some examples that show how to achieve this goal.
- Using \xleftarrow or \xrightarrow. Both of them have the same syntax.
a=b \xleftarrow[H]{\xi+a\timesc} f=g
![a=b \xleftarrow[H]{\xi+a\timesc} f=g](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_ubeumDQ_TBo3H9QkPnsMvjyq0tYJaMOxURp1pPzCb2lJLrkCf_I7YahMaDaLw5zSYDGgWIgFeAL_zU--r3x-MDgYQdXNu2E-xndVLpvn-lQneG9pwf7cPCDZP2LxJqBufy324kNRkAxHJGjGr3qJHXk3b-tSypsJC70dylJyK0RtrA=s0-d)
- Using \overset
a=b\overset{F}{\longleftarrow}c=d

- Using \underset
a=b\underset{F}{\longleftarrow}c=d

- Using \stackrel
a=b \stackrel{F}{\longleftrightarrow}c=d

- Using \mathop
ab \mathop{\sum\sum\sum}_{a=\frac{1}{2}\times 100000}^{b=\frac{4}{5}}cd

Chinese version:
Latex: 堆叠数学符号
What about stacking *directly* on top (in the Z-axis)? For example, I'd like a 3 inside a \square.
ReplyDeleteSorry, cannot understand your question. I don't think there is a "\square" in Latex.
ReplyDeleteIf you mean superscript, use "^".
ReplyDeleteTo stack directly on top, use a zero-width box, such as "\makebox[0pt][l]{\huge$\triangle$}\ \ 3"
ReplyDeleteI want to put a 1 directly below the center of a binomial factor in the denominator of a rational expression to show division to 1 when cancelling a factor. \underset is not working. Do you have any other suggestions?
ReplyDeleteHi, George,
ReplyDeleteI tried the code
\begin{equation}
a =\frac{(a-b)^2}{\underset{1}{a-b}}
\label{eq:tes}
\end{equation}
and it is working. If this is not you want, could you please upload a photo of the equation?