没有弧包的情况下如何编写几何弧符号?

没有弧包的情况下如何编写几何弧符号?

我尝试了一些其他软件包:yhmath 和 mathdesign,以及一些代码:

\DeclareFontEncoding{FMX}{}{}%%%
\DeclareFontSubstitution{FMX}{futm}{m}{n}%%%
\DeclareSymbolFont{largesymbols}{FMX}{futm}{m}{n}
\DeclareMathAccent{\widearc}{\mathord}{largesymbols}{216}

\def\frown{\XeTeXmathaccent"0"1"23DC}

这些解决方案根本不起作用,有些弄乱了我的其他符号,如括号、方括号等。

有没有一种简单的方法可以在两个或三个字母上放置弧线或类似物?

我来到这里,经过一番评论并试图弄清楚之后,我制作了这样的弧形符号。

\renewcommand{\overarc}[1]{\ooalign{\hfil\scalebox{0.9}{$#1$}\hfil\cr\hfil\raisebox{8pt}{\rotatebox{90}{\scalebox{1}{$)$}}}\hfil\cr}}

它对我的提议很有效。但欢迎任何建议。

答案1

这是你的意思吗?它基于我在字母上方的弧线排版颠倒

\documentclass{article}
\usepackage{scalerel}
\usepackage{stackengine}
\stackMath

\newcommand\reallywidefrown[1]{%
\stackon[0pt]{#1}{%
\stretchto{%
  \scaleto{%
    \scalerel*[\widthof{#1}]{\mkern-1.5mu\frown\mkern-2mu}%
    {\rule[-\textheight/2]{1ex}{\textheight}}%
  }{\textheight}%
}{0.8ex}}%
}
\parskip 1ex
\begin{document}

$\reallywidefrown{zbcdefghijklm}$

$\reallywidefrown{zbcdefghijk}$

$\reallywidefrown{zbcdefghi}$

$\reallywidefrown{zbcdefg}$

$\reallywidefrown{zbcde}$

$\reallywidefrown{zbc}$

$\reallywidefrown{zb}$

$\reallywidefrown{z} = 0$

\end{document}

在此处输入图片描述


如果您需要保留数学样式的版本,则可以使用效率较低的版本:

\documentclass{article}
\usepackage{scalerel}
\usepackage{stackengine}
\stackMath
\newsavebox\tmpbox
\newcommand\reallywidefrown[1]{\ThisStyle{%
\sbox\tmpbox{$\SavedStyle#1$}%
\stackon[0pt]{\usebox{\tmpbox}}{%
\stretchto{%
  \scaleto{%
    \scalerel*[\wd\tmpbox]{\mkern-.8mu\frown\mkern-.8mu}%
    {\rule[-\textheight/2]{1ex}{\textheight}}%
  }{\textheight}%
}{0.8ex}}%
}}
\parskip 1ex
\begin{document}

$\reallywidefrown{zbcdefghijklm} \quad\scriptstyle\reallywidefrown{zbcdefghijklm}
  \quad\scriptscriptstyle\reallywidefrown{zbcdefghijklm}$

$\reallywidefrown{zbcdefghijk} \quad\scriptstyle\reallywidefrown{zbcdefghijk}
  \quad\scriptscriptstyle\reallywidefrown{zbcdefghijk}$

$\reallywidefrown{zbcdefghi} \quad\scriptstyle\reallywidefrown{zbcdefghi}
  \quad\scriptscriptstyle\reallywidefrown{zbcdefghi}$

$\reallywidefrown{zbcdefg} \quad\scriptstyle\reallywidefrown{zbcdefg}
  \quad\scriptscriptstyle\reallywidefrown{zbcdefg}$

$\reallywidefrown{zbcde} \quad\scriptstyle\reallywidefrown{zbcde}
  \quad\scriptscriptstyle\reallywidefrown{zbcde}$

$\reallywidefrown{zbc} \quad\scriptstyle\reallywidefrown{zbc}
  \quad\scriptscriptstyle\reallywidefrown{zbc}$

$\reallywidefrown{zb} \quad\scriptstyle\reallywidefrown{zb}
  \quad\scriptscriptstyle\reallywidefrown{zb}$

$\reallywidefrown{z} = 0$

\end{document}

在此处输入图片描述

相关内容