- Using \xleftarrow or \xrightarrow. Both of them have the same syntax.
a=b \xleftarrow[H]{\xi+a\timesc} f=g
- 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
Thursday, July 03, 2008
Stack math symbols in Latex
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.
Subscribe to:
Post Comments (Atom)
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?