CTAN Comprehensive TeX Archive Network

New on CTAN: unicodehat

Date: November 17, 2026 3:47:01 PM CET
Moritz R. Schäfer submitted the unicodehat package. Version: v1.0.0 License: lppl1.3c Summary description: Unicode circumflex letters as hatted letters in mathematics Announcement text:
Maps all precomposed Unicode Latin letters bearing a single circumflex accent to the corresponding hatted letters in mathematics, while preserving the original characters in text. Intended for directly typed quantum-mechanical operator nota- tion. Use UTF-8 input with LuaLaTeX or XeLaTeX. For text, choose a font containing the input characters: \documentclass{article} \usepackage{fontspec} \usepackage{unicodehat} \begin{document} Text: Ĥ. Mathematics: $Ĥ = Ê$. \end{document} In mathematics, for example, Ĥ expands to \hat{H}. Outside mathematics the original Unicode character is retained. The package uses newunicodechar and defines no package options.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/unicodehat More information is at https://ctan.org/pkg/unicodehat
Thanks for the upload. For the CTAN Team Manfred Lotz CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .

Unicodehat – Unicode circumflex letters as hatted letters in mathematics

This package maps all precomposed Unicode Latin letters bearing a single circumflex accent to the corresponding hatted letters in mathematics, while preserving the original characters in text: in math, Ĥ becomes \hat{H}. It is intended for directly typed quantum-mechanical operator notation.

The package requires UTF-8 input with Lua or and uses newunicodechar. For combining accents in math input, see luamathaccents.

PackageUnicodehat
Versionv1.0.0
Copyright2024–2026 Moritz R. Schäfer
MaintainerMoritz R. Schäfer

Announcements

more

Guest Book Sitemap Contact Contact Author