Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 7 down vote accepted

You can make one such command using \genfrac:

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

Then use it like:

\[\stackover{a}{b}\]
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

 
discard

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.