0

I would like to write something above equation sign. One may do it with \stack{#1}{#2} command and it works fine if #1 and #2 are the same length, example:

$\stackrel{(3)}{=}$ 

will result in

enter image description here

But if I would like to have longer text above =, for example:

$\stackrel{x_1 \neq x_2}{=}$

then I will get

enter image description here

which is not what I want.

I want the "=" to adjust it's size to the thing that's written above, so something like

enter image description here

Is there a command which will do it automaticaly? Or if not - how can i do it manually?

egreg
  • 1,121,712
pbialy
  • 101
  • Welcome to TeX.SX! Your question has already appeared. If the linked question helps, fine; otherwise, add to your question the reasons why it doesn't. Closing as duplicate is non a judgment on your question, just a way to keep information as tight as possible. – egreg May 13 '14 at 13:59
  • Yeah looks like the link which You gave contains solution to my question, too bad I wasn't able to find it before.

    Thanks for quick response :)

    – pbialy May 13 '14 at 14:41

0 Answers0