Could someone please let me know how to include the s-with-a-hat character (\^{s}) within a square root. I hoped $\sqrt{ \^{s} }$ would do the job.
Asked
Active
Viewed 637 times
4
Mico
- 506,678
James Bejon
- 331
-
1this is unrelated to square root, you need hat rather than ^ in math mode. – David Carlisle Jan 03 '15 at 13:25
2 Answers
10
Probably you are looking for the \hat command.
\documentclass{article}
\begin{document}
$\sqrt{\hat{s}}$
\end{document}

karlkoeller
- 124,410
-
That looks great, thanks. Only there are all sorts of other symbols I'd like to use within the square root sign, such as those listed here: (http://en.wikibooks.org/wiki/LaTeX/Special_Characters#Escaped_codes). Do I have to find math mode equivalents of them all? – James Bejon Jan 03 '15 at 13:44
-
1@JamesBejon Yes, you should look the math versions of these up, see http://tex.stackexchange.com/q/14/15925 . The math versions work too when there are multiple accents on the same symbol. – Andrew Swann Jan 03 '15 at 14:41
1
Building on @karlkoeller 's answer - you can use \text and \emph in math mode. This may not get the italicized variable names quite right. Clearly needs work for accents below the letter.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\sqrt{\hat{s}}$ $\sqrt{\text{\emph{\"s}}}$
$\sqrt{\text{\emph{\v{s}}}}$ $\sqrt{\text{\emph{\c{s}}}}$
\end{document}
Ethan Bolker
- 9,333
- 3
- 42
- 69
-
1I'd prefer
$\sqrt{\ddot{s}}$to$\sqrt{\text{\emph{\"s}}}$, at least for situations that involve the second derivative with respect to time... The placement of the cedilla below the italic-s is much improved by loading either thelmodernpackage or thefontencpackage with optionT1, by the way. – Mico Jan 03 '15 at 14:18 -
2Sorry, but this is wrong. It could be only for the cedilla, but for hat, double dot and check accents, one should use
\hat{s},\ddot{s}and\check{s}. Note also that$\sqrt{\text{\emph{\"s}}}$would result in an upright s when in the statement of a theorem or anywhere italics is used. – egreg Jan 03 '15 at 14:41 -
@egreg I knew (and said) the
\emphwas a hack. Without knowing the OP's use cases I don't know whether that's a problem. – Ethan Bolker Jan 03 '15 at 15:31