5

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

Sverre
  • 20,729
bjn
  • 183
  • 9
    \hat{G} ..... – David Carlisle Oct 23 '14 at 19:26
  • 7
    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
  • @cfr the last bit of the table does show accent usage but the actual question and most of the answer relate to getting the character on its own \^{} or \textasciicircumflex or \verb|^| – David Carlisle Oct 28 '14 at 21:23
  • @DavidCarlisle I'm really not bothered either way. To me, it is a duplicate but if others don't think so, that's fine. (I think the question is rather unclear which is why the answer is quite comprehensive.) – cfr Oct 28 '14 at 21:26
  • @review queue: I found this question today and I think it is not a duplicate of the linked question, because this question asks for accented letters and the other question asks for the ^symbol in isolation, which is a quite different question with rather different answers as well. – Marijn Jul 26 '21 at 10:31

1 Answers1

16

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

Ĝ
David Carlisle
  • 757,742