答案1
你可以使用 tikz 制作自己的:
\documentclass{article}
\usepackage{tikz}
\newlength\squareheight
\setlength\squareheight{6.75pt}
\newcommand\squareslash{\tikz{\draw (0,0) rectangle (\squareheight,\squareheight);\draw(0,0) -- (\squareheight,\squareheight)}}
\begin{document}
\[ A \squareslash B \]
\end{document}
输出:
然后您可以使用以下方法获得适当的间距\DeclareMathOperator
:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\newlength\squareheight
\setlength\squareheight{6.75pt}
\newcommand\squareslash{\tikz{\draw (0,0) rectangle (\squareheight,\squareheight);\draw(0,0) -- (\squareheight,\squareheight)}}
\DeclareMathOperator\squarediv{\squareslash}
\begin{document}
\[ A \squarediv B \]
\end{document}
输出: