7

How do I "stack" a letter above (not in front) another (in math mode)? It should look the same as binomial coefficients, just without the parentheses (which rules out \stackrel and \overset, since it makes the symbol on top smaller, as if it's tweaked superscript).

7

You can make one such command using \genfrac:

\makeatletter
\newcommand{\stackover}{\genfrac{.}{.}\z@{}}
\makeatother

Then use it like:

\[\stackover{a}{b}\]
4
  • It's not working. Do I need some packages for this? – Lazar Ljubenović Dec 22 '13 at 17:56
  • @LazarLjubenović: You need amsmath – Francis Dec 22 '13 at 17:57
  • Yes, I'm using it, but it's still not working. As if it doesn't recognize that I've created a new command. – Lazar Ljubenović Dec 22 '13 at 17:58
  • @LazarLjubenović: What error does LaTeX return? – Francis Dec 22 '13 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.