It's as the title says. How can I write ^(caret) in Latex.

If I type something like [^set], then the s in set is raised to a power. How can I display [^set] the way it is?

$\wedge$ sorta works but it gives ∧ and not ^.

  • not clear what you want or if you want math mode, but perhaps $^{\wedge}\mathrm{set}$ May 11 at 7:00

2 Answers 2


Use \string^ that makes the argument category code 12 (other).



text mode: [\string^set]

math mode: $[\string^set]$


enter image description here

If you're using caret often enough, you can define a shorthand macro for that


Read more about \string in this detailed answer by egreg.


In a simple way:


this is a caret \^{}which is over a space. % space after \^ is not mandatory

$\hat{ }x+1$



Not the answer you're looking for? Browse other questions tagged or ask your own question.