realhats puts real hats on symbols in math mode. Why settle for the lifeless, old-fashioned circumflex when your variables could sport berets, sombreros, top hats, and more? Inspiration and most hats from the original realhats for LaTeX.
Before and after realhats:


Using realhats
Import hat
from realhats:
#import "@preview/realhats:0.1.0": hat
Use it as you would math.hat
. If you would like to specify which hat a variable wears, use the hat
named argument in the hat
function:
$ 2 hat(x, hat: "vueltiao") + 3 $
For a list of available hats, import realhats-list
:
#import "@preview/realhats:0.1.0": realhats-list
#realhats-list
Image Licenses
- ash: MIT
- beret: MIT
- birthday: MIT
- cowboy: MIT
- crown: MIT
- dunce: MIT
- fez: MIT
- mortarboard: MIT
- policeman: MIT
- santa: MIT
- scottish: MIT
- sombrero: MIT
- tophat: MIT
- witch: MIT
- tile-blue: MIT
- tile-gray: MIT
- tile-light-blue: MIT
- tile-white: MIT
- vueltiao: Creative Commons Attribution 3.0 Unported. Original by Camilo Sanchez, color added by Matthew Ward. Attribution is provided within this package; users are not required to include separate attribution in their documents when using this asset, as long as this notice remains intact.