[Tex/LaTex] \Theta with square

symbols

I'm using \Theta for some concept in my work, then I need a variation of such concept.
I was thinking to use \Theta symbol with a square instead of a circle.

How can I obtain such symbol?

Thanks

Best Answer

A solution with TikZ:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{calc}

\newlength\thetawidth
\newlength\thetaheight

\newcommand*{\SquareTheta}{%
  \begingroup
    \setlength{\mathsurround}{0pt}%
    \settowidth{\thetawidth}{$\Theta$}%
    \settoheight{\thetaheight}{$\Theta$}%
    \begin{tikzpicture}[
      x=\thetawidth,
      y=\thetaheight,
    ]
    \draw[line width=.1\thetawidth, line cap=round]
      (0.125,.05\thetawidth) -- +($(0,1)-(0,.1\thetawidth)$)
      (0.875,.05\thetawidth) -- +($(0,1)-(0,.1\thetawidth)$);
    \draw[line width=.05\thetaheight, line cap=butt]
      (0.125,.025\thetaheight) -- +(0.75,0)
      ($(0.125,1)-(0,.025\thetaheight)$) -- +(0.75,0);
    \draw[line width=.1\thetawidth, line cap=butt]
      (0.275,0.5) -- (0.725,0.5);
    \draw[line width=.0375\thetaheight, line cap=butt]
      ($(0.275,0.5)-(0,.1\thetawidth)$) -- +(0,.2\thetawidth)
      ($(0.725,0.5)-(0,.1\thetawidth)$) -- +(0,.2\thetawidth);
    \end{tikzpicture}%
  \endgroup
}

\begin{document}
\renewcommand*{\arraystretch}{0}
\begin{tabular}{c}
  $\Theta$ \\[1pt]
  $\SquareTheta$ \\[1pt]
  $\Theta\SquareTheta$
\end{tabular}
\end{document}

Result