Package Information
- Last Updated
- Authors
- Joel von Rotz
- Categories
- componentslayoututility
- Dependencies
- @preview/tableau-icons:0.344.0
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/alertoni:1.0.02. Import in your Typst file
Add this to your .typ file:
#import "@preview/alertoni:1.0.0": *Alertoni
A Typst package that introduces callouts with three different styles and various types. In addition, the package also supports custom styles, types and icon sets.
- Read more on how to use it and other functionality in the Manual.
Quick Examples
#import "@preview/alertoni:1.0.0" as at
All Predefined Types
#at.callout(type: "info", [])
#at.callout(type: "warning", [])
#at.callout(type: "important", [])
#at.callout(type: "caution", [])
#at.callout(type: "tip", [])
#at.callout(type: "correct", [])
#at.callout(type: "incorrect", [])
#at.callout(type: "example", [])

All Predefined Styles
Note: you can add your own style. Refer to the manual.
#at.callout(
style: "minimal", [Style `"minimal"`]
)
#at.callout(
style: "quarto", [Style `"quarto"`]
)
#at.callout(
style: "compact", [Style `"compact"`]
) -- it is also an inline style.

A Custom Type
#at.new-type(
name: "hey",
color: olive,
placeholder: "Hello There!",
icon: emoji.hand.wave
)
#at.callout(type: "hey", [
#lorem(20)
])

Types can also be langnuage specific and is explained in the manual.