TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
up vote 7 down vote accepted

You can make one such command using \genfrac:


Then use it like:

share|improve this answer
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
Let's pretend this never happened :) And thanks! It works. – Lazar Ljubenović Dec 22 '13 at 18:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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