Like the symbols "bigcup or bigcap" in LateX, I'd like to write above the symbol subset.

I have try to use the displaystyle command, but it doesn't work !

Here is a snippet of my try :

$\boldsymbol{NP} \displaystyle\subset^{?} \boldsymbol{P}$

  • You could also use \shortstack{?\\$\subset$} – Steven B. Segletes May 21 '13 at 13:29

Usually \overset is used for that purpose.



$A\subset B$

The second formula is just for showing that the spacing for a relation symbol is preserved.

enter image description here

| improve this answer | |
  • 1
    I use \stackrel for this. Is overset better? – Chris Chudzicki Sep 8 '13 at 1:39
  • 1
    @ChrisChudzicki: Sorry for the necromancy, but see: tex.stackexchange.com/a/39230/40862 (so according to that answer yes, overset is better, because it takes care of spacing properly, without you having to figure out if something is a relation or a binary operator; if you do know that, the result will probably be the same). – tomasz Nov 6 '16 at 19:40

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.