How to write hat in LaTeX
Use \hat{x} in math mode — between $…$ in a document, or directly in the editor above.
| LaTeX command | \hat{x} |
|---|---|
| Notes | Wide: \widehat{xyz} |
Example
\hat{\imath},\ \hat{\jmath}
The editor above is pre-filled with this example — tweak it and export it as PNG, SVG or a Word equation.
More accents
| Symbol | Command |
|---|---|
| Vector arrow | \vec{v} |
| Bar (overline) | \bar{x} |
| Dot (time derivative) | \dot{x} |
| Tilde | \tilde{x} |


