1

How can one add a $\alpha$ directly on top of a $\square$ in Latex.

Creating a symbol like this:

enter image description here

2
  • 5
    Try $\overset{\alpha}{\square}$
    – Ukiyo-E
    Commented Oct 30, 2020 at 3:46
  • Thank you, it worked :)
    – user4933
    Commented Oct 30, 2020 at 3:49

1 Answer 1

3

Using \Square of wasysym package you can obtain the inline \square. Also with the command \stackrel{...}{...} you can obtain the similar result of \overset.

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{wasysym}


\begin{document}
$X\stackrel{\alpha}{\Square}Y$
\end{document}

enter image description here

Without wasysym package you can see the difference.

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
%\usepackage{wasysym}


\begin{document}
$X\stackrel{\alpha}{\square}Y$
\end{document}

enter image description here

You must log in to answer this question.

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