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
  • You could also use \shortstack{?\\$\subset$} May 21, 2013 at 13:29

1 Answer 1

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

2
  • 1
    I use \stackrel for this. Is overset better? Sep 8, 2013 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, 2016 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .