`\stackrel` 但更低

`\stackrel` 但更低

我試著在時間上方放置皺眉,使其表現得像一頂帽子。我努力了:

\stackrel{\frown}{\times}
{\frown \above 0pt \times}
\overset{\frown}{\times}
\mathrlap{\frown}\times
{\frown\atop\times}
\ooalign{$\frown$\cr$\times$}

但皺眉與時代的距離不是太高就是太低。我認為\ooalign提供了一個解決方案,但我無法找到它。

編輯:

\ooalign{\hidewidth\raise1ex\hbox{$\frown$}\cr$\times$}

給出了相當好的結果,但符號未對齊。

答案1

Not \ooalign,它疊加了符號:你需要堆疊它們,所以\ialign更好。

\documentclass{article}
\usepackage{amsmath,mathtools}

\makeatletter
\DeclareRobustCommand{\frtimes}{\mathbin{\mathpalette\frtimes@@\relax}}
\newcommand{\frtimes@@}[2]{%
  \vbox{\offinterlineskip
    \sbox\z@{$\m@th#1\times$}%
    \ialign{%
      \hfil##\hfil\cr
      $\m@th#1{}_{\frown}\kern-\scriptspace$\cr
      \noalign{\kern-.3\ht\z@}
      \box\z@\cr
    }%
  }%
}
\makeatother

\begin{document}

$A\frtimes B_{A\frtimes B}$

\end{document}

在此輸入影像描述

答案2

這裡還有另外三種解決方案:一種用stackengine,另一種\frown\wideparen數學重音替換,分別來自mathabxyhmath

\documentclass[border=5pt]{standalone}
\usepackage[usestackEOL]{stackengine} %
\usepackage{accents}
\newcommand\frimes{\mathbin{\ensurestackMath{\stackon[-1pt]{\times}{\frown}}}}

\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<5><6><7><8><9><10>
<10.95><12><14.4><17.28><20.74><24.88>
mathx10
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathAccent{\varwideparen}{0}{mathx}{"8C}

\DeclareSymbolFont{largesymbols}{OMX}{yhex}{m}{n}
\DeclareMathAccent{\wideparen}{\mathord}{largesymbols}{"F3}

\begin{document}

$
a
\frimes
b
\quad
a
\mathbin{\varwideparen{\times}}
b
\quad
a
\mathbin{\wideparen{\times}}
b$

\end{document} 

在此輸入影像描述

答案3

我認為一個簡單的方法是創建一個array, 作為維爾納建議

\documentclass[border=5pt]{standalone}
\begin{document}
$
a
\begin{array}[b]{@{}c@{}}
  \frown       \\ [-7pt] % adjust as needed
  {} \times {} \\
\end{array}
b
$
\end{document}

屈服在此輸入影像描述

相關內容