# How to write letters with a circumflex? [duplicate]

I want to write a theorem with letter G, which has over ^ it. I tried $G^{\^}$, but that doesn't work.

• \hat{G} ..... – David Carlisle Oct 23 '14 at 19:26
• Since G is uppercase, maybe $\widehat{G}$. – dedded Oct 23 '14 at 19:28
• @DavidCarlisle: Thanks David it works well! You can write it as an answer. – bjn Oct 28 '14 at 21:01
• @cfr I commented yes but deleted comment as I think not, the previous question and the accepted answer there are for getting ^ not as an accent over a letter. – David Carlisle Oct 28 '14 at 21:13
• @DavidCarlisle Perhaps I don't understand. I thought that the $\hat{a}$ was exactly analogous to $\hat{G}$ and that $\widehat{abc}$ there was analogous to $\widehat{G}$ here (maths). Similarly, \^a there seems analogous to \^{G} here (text) except that it might be better to use the curly brackets. That is exactly what I think of as a to bach accent i.e. a circumflex. You might be right about the question, though. – cfr Oct 28 '14 at 21:18

TeX distinguishes text accents (usually with single symbol names like \^) from math accents (usually with multi-letter names like \hat) so:

In math:

$\hat{G}$


or perhaps

$\widehat{G}$


In text:

\^{G}


Or if you specify a suitable input encoding such as utf8 then you could just type the letter directly in text as

Ĝ