a=\stackrel{A}{B}
даст нам: $\Large a=\stackrel{A}{B}$
Про тильду здесь: http://fkn.ktu10.com/?q=node/6243