[Tex/LaTex] Caret that looks like a typed caret

symbols

I want to type a caret in my document that looks like a typed caret—not a hat, not a wedge, not a hat over an invisible space character. I'm aware of the answer at How to typset the symbol “^” (caret/circumflex/hat) and none of them look like a^b. How can I get that in Latex? How can I get a^b?

Best Answer

Maybe this?

The {1.5} governs the horizontal stretch of the nominal ^ character, the [2] the vertical stretch. The {-1ex} governs the vertical placement of the result, and the overall object takes up the space given by {\ \,}. One can revise at will.

\documentclass[12pt]{article}
\usepackage{stackengine,graphicx}
\newcommand\specialcaret{%
  \stackengine{0pt}{\ \,}{\scalebox{1.5}[2]{\raisebox{-1ex}{\string^}}}{O}{c}{F}{T}{L}}
\begin{document}
a\specialcaret b
\end{document}

enter image description here