Thread View: comp.text.tex
1 messages
1 total messages
Started by CTAN Announcements
Tue, 17 Nov 2026 15:47
New on CTAN: unicodehat
Author: CTAN Announcements
Date: Tue, 17 Nov 2026 15:47
Date: Tue, 17 Nov 2026 15:47
48 lines
3725 bytes
3725 bytes
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 .
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads