Skip to content

pride7/Typst-callout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst-callout

This is a simple implementation for "callout" in Typst.

Configure

There are 7 types for callout:

  • note (default)
  • warning
  • check
  • summary
  • question
  • example
  • quote

You can see the results in the example.pdf.

The configuration of each type is saved in configure.typ by using a dictionary configure. So you can insert other type by yourself.

For example,

#configure.insert(
  "note",
  (
    logo: "images/note.svg",
    box-color: rgb(240, 245, 248),
    title-color: rgb(88,123,207)
  )
)

Usage

#import "callout.typ": callout

#callout(
  title:[Your title],
  type:"warning"
)[
  #lorem(20)
]

You can use the #grid() to control the layout to achieve multi-callout group.

exmaple

exmaple2

About

callout in typst

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages