如何制作自定义 LaTeX 符号

Bra*_*ing 1 latex

我不认为有人可以帮助定制 TeX 符号吗?我需要一个在子集符号中间\sqsubset带有 a 的符号。\cdot

我尝试使用我发现的其他问题中的一些建议,但它们都破坏了子集符号的间距。

Wer*_*ner 6

您可以叠加符号\sqsubset并使\cdot它们成为一个单元,并根据其使用的样式改变其大小。

在此输入图像描述

\documentclass{article}

\usepackage{amssymb}

\newcommand{\sqsubsetcdot}{
  \mathchoice
    {\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \displaystyle
    {\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \textstyle
    {\mathrel{\ooalign{$\scriptstyle\sqsubset$\cr\hidewidth$\scriptstyle\cdot$\hidewidth}}}% \scriptstyle
    {\mathrel{\ooalign{$\scriptscriptstyle\sqsubset$\cr\hidewidth$\scriptscriptstyle\cdot$\hidewidth}}}% \scriptscriptstyle
}

\begin{document}

$A \sqsubset B_{A \sqsubset B_{A \sqsubset B}}$

$A \sqsubsetcdot B_{A \sqsubsetcdot B_{A \sqsubsetcdot B}}$

\end{document}
Run Code Online (Sandbox Code Playgroud)