r

realhats

@preview

Put real hats on symbols instead of circumflexes.

v0.1.0
MIT

Package Information

Last Updated
Categories
fun
Disciplines
mathematicsphysics

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/realhats:0.1.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/realhats:0.1.0": *

Version History

0.1.0
85091b071bc2...

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:

Without realhats With 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