![如何在 Latex 中为“奇怪的 m”符号创建命令?](https://linux22.com/image/394455/%E5%A6%82%E4%BD%95%E5%9C%A8%20Latex%20%E4%B8%AD%E4%B8%BA%E2%80%9C%E5%A5%87%E6%80%AA%E7%9A%84%20m%E2%80%9D%E7%AC%A6%E5%8F%B7%E5%88%9B%E5%BB%BA%E5%91%BD%E4%BB%A4%EF%BC%9F.png)
答案1
答案2
答案3
如下文所讨论的此主题,您随时可以构建自己的。
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\makeatletter
\DeclareRobustCommand{\checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
\edef\@tempa{\math@version}\edef\@tempb{bold}%
\ifx\@tempa\@tempb%
\def#1{1}%
\else
\def#1{0}%
\fi}
\makeatother
\newcommand{\freakym}{\checkbold\tmp%
\def\mpath{(0,1ex) to[out=0,in=70] (0.2em,0) to[out=70,in=180]
(0.4em,1ex) to[out=0,in=70] (0.6em,0) to[out=70,in=180]
(0.8em,1ex) to[out=0,in=70] (1em,0) to[out=-110,in=-90,looseness=2.5]
(1.15em,-0.2ex)}
\ensuremath{\mathchoice{%
\tikz[baseline=0ex]{\draw[line width={(1+0.33*\tmp)*0.06em}] \mpath;}
}{%
\tikz[baseline=0ex]{\draw[line width={(1+0.33*\tmp)*0.06em}] \mpath;}
}{%
\tikz[baseline=0ex]{\draw[line width={(1+0.33*\tmp)*0.045em},scale=0.75]
\mpath;}
}{%
\tikz[baseline=0ex]{\draw[line width={(1+0.33*\tmp)*0.035em},scale=0.6]
\mpath;}
}}}
\begin{document}
\freakym
$A\freakym B_{C\freakym D}$ {\Large $A\freakym B_{C\freakym D}$}
\boldmath$A\freakym B_{C\freakym D}$ {\Large $A\freakym B_{C\freakym D}$}
\unboldmath
\end{document}
只是为了好玩,这是一个受到 CarLaTeX 强烈启发的版本。如果她在她不错的答案中添加了类似内容,我很乐意删除我的答案的这一部分。
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\makeatletter
\DeclareRobustCommand{\checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
\edef\@tempa{\math@version}\edef\@tempb{bold}%
\ifx\@tempa\@tempb%
\def#1{1}%
\else%
\def#1{0}%
\fi}
\makeatother
\newcommand\clippym{\checkbold\tmp%
\tikz[baseline=(m.base)]{\begin{scope}
\clip(-0.4em,0) rectangle (0.15em,1.8ex);
\node[anchor=south,inner sep=0pt](m){$m$};
\end{scope}
\begin{scope}[xshift=0.12em]
\clip(0,-0.6ex) rectangle (0.4em,1.8ex);
\node[anchor=south west,inner sep=0pt](m) at(-0.2725em-\tmp*0.075em,-0.4ex) {$\eta$};
\end{scope}}}
\begin{document}
\clippym\footnote{Full credit for $\clippym$ goes to CarLaTeX.}
{\Large \clippym}
$\boldsymbol{\clippym}$
{\Large $\boldsymbol{\clippym}$}
\end{document}