\Theta 用平方

\Theta 用平方

\Theta我在工作中使用了一些概念,因此我需要这种概念的变体。我考虑使用\Theta正方形而不是圆形的符号。

我怎样才能获得这样的符号?

谢谢

答案1

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}

结果

相关内容