6

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}$

1 Answers1

9

Usually \overset is used for that purpose.

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$A\overset{?}{\subset}B$

$A\subset B$
\end{document}

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

enter image description here

egreg
  • 1,121,712
  • 1
    I use \stackrel for this. Is overset better? – Chris Chudzicki Sep 08 '13 at 01:39
  • 1
    @ChrisChudzicki: Sorry for the necromancy, but see: http://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 06 '16 at 19:40