4

Triying to use a patch for \overarc from this answer https://tex.stackexchange.com/a/409106/54817

I got this result

enter image description here

\documentclass{article}

%\usepackage{fix-cm}

\usepackage{arcs}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\over@under@arc}
{\relsize{-10}}{\renewcommand\RSpercentTolerance{5}\relsize{-10}}{}{\fail}
\makeatother

\begin{document}
\Huge

$$\overarc{AB}$$

\end{document}

Log file:
https://pastebin.com/T5NRMvtb

Salim Bou
  • 17,021
  • 2
  • 31
  • 76

2 Answers2

4

Different approach, based on Big tilde in math mode

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

\newcommand\reallywidetilde[1]{\ThisStyle{%
  \setbox0=\hbox{$\SavedStyle#1$}%
  \stackengine{-.5\LMpt}{$\SavedStyle#1$}{%
    \stretchto{\scaleto{\SavedStyle\mkern.2mu\frown}{.4\wd0}}{.5\ht0}%
  }{O}{c}{F}{T}{S}%
}}

\def\test#1{$%
  \reallywidetilde{#1}\,
  \scriptstyle\reallywidetilde{#1}\,
  \scriptscriptstyle\reallywidetilde{#1}
$\par}

\parskip 1ex
\begin{document}

\test{abcdefghijklm}
\test{abcdefghijk}
\test{abcdefghi}
\test{abcdefg}
\test{abcde}
\test{abc}
\test{ab}
\end{document}

enter image description here

  • Thank's for the answer but my question is on the patch explained in my question why those dimensions appear in front of \overarc – Salim Bou Feb 08 '19 at 16:27
0
\documentclass{article}

\usepackage{arcs} 
\usepackage{etoolbox}

\makeatletter
\providecommand\@gobblethree[3]{}
\patchcmd{\over@under@arc}
 {\@gobbletwo}
 {\@gobblethree}
 {}{}
\makeatother

\begin{document}

$$\overarc{AB}$$

\end{document}

I also have the same problem. I have tried to add the above code and it works prefectly.

Refer to the link https://xetex.tug.narkive.com/pBGTS2zG/the-arcs-package#post14, it stated out the problem of the package arcs. To update the code in the package arcs, I refer the link \overarc command from arcs package and xwatermark .