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 .