# Transforming a specific package in text-mode into math-mode

The arcs package is useful to put an arc over or under a piece of text.

It is a package that works in text-mode, but could be another one that works only in text-mode and not necessarily the one that I have chosen.

I think it's just a specific package that is only used in text mode but not in mathematical mode. I never have used this package. With this MWE I have an error

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amssymb, amsmath}
\usepackage{arcs}

\begin{document}
\overarc{A}
\end{document}


LaTeX Font Warning: Font shape OML/cmm/m/it in size <3.59999> not available(Font)

At this moment I remember very little. What could be the strategies in LaTeX to transform a specific package in text-mode into a math-mode?

• I think this package is just broken, because this results in an infinite loop: dpaste.com/3JVAWDALV (expires in 10 days) Jul 27, 2020 at 23:52
• @HenriMenke I'm always very lucky 😄😄. I have chosen the corrupt package. Yes I have seen that I have a loop of errors . Very nice dpaste, that I not knew. <4.19997> not available(Font) and <2.99998> not available(Font) for OT1, OML, cmr, cmm, etc. The package can be found inside the symbol guide on page 23. If it doesn't work, what do you do? Jul 27, 2020 at 23:58
• @HenriMenke With the latest version of MikTeX, I have no errors and no bugs in this package. Jul 28, 2020 at 4:44
• When you say you want it to work "in math mode", do you want the arc over an italic letter, or over a roman letter in math mode? Also, are you expecting to have math kernings? Jul 28, 2020 at 9:15
\reallywideoverarc{#1}\,
\scriptstyle\reallywideoverarc{#1}\,
\scriptscriptstyle\reallywideoverarc{#1}
$\par\vspace{-4pt}$%
\reallywideunderarc{#1}\,
\scriptstyle\reallywideunderarc{#1}\,
\scriptscriptstyle\reallywideunderarc{#1}
\makeatother
\begin{document}
\overarc{A}
\overarc{AB}
\underarc{A}
\underarc{AB}
\end{document}
`