How to typeset the symbol “^” (caret/circumflex/hat)

You can use

  • in text-mode (needs \textrm or similar in math-mode)
    • \textasciicircum or
    • \^{},
  • in math-mode
    • \hat{} (only this produces a circumflex),
    • \widehat{}, or
    • \wedge (∧).
  • in a verb-like manner

    • \string^,
    • \char`\^,
    • \verb!^!:

      \verb!d <- dist(fascores, method = "euclidean")^2!
      

Overview

Code

\documentclass{standalone}
\usepackage{upquote}% getting the right grave ` (and not ‘)!
\begin{document}
\begin{tabular}{lcc}
    Input                   &       Text       &                 Math                  \\ \hline
    \verb|\string^|         &     \string^     &              $\string^$               \\
    \verb|\char`\^|         &     \char`\^     &              $\char`\^$               \\
    \verb|\verb!^!|         &     \verb!^!     &              $\verb!^!$               \\ \hline
    \verb|\textasciicircum| & \textasciicircum &                  ---                  \\
    \verb|\^{}|             & \^{} (e.g. \^a)  &                  ---                  \\ \hline
    \verb|\hat{}|           &       ---        &       $\hat{}$ (e.g. $\hat a$)        \\
    \verb|\wedge|           &       ---        &      $\wedge$ (e.g. $a\wedge b$)      \\
    \verb|\widehat{}|       &       ---        & $\widehat{\ }$ (e.g. $\widehat{abc}$) \\
\end{tabular}
\end{document}

Output

enter image description here


You could also try \textsuperscript{$\wedge$} which yields:

enter image description here

To put this into context, (\textsuperscript{$\wedge$}N225), will yield:

enter image description here

Tags:

Symbols