コンテンツにスキップ

showybox 様々なボックス描画

showybox – Typst Universe
Colorful and customizable boxes for Typst
showybox – Typst Universe favicon https://typst.app/universe/package/showybox
showybox – Typst Universe

様々な枠線を作ることができるパッケージです。

#import "@preview/showybox:2.0.4": showybox
#showybox(
[Hello world!]
)

func17

#showybox(
frame: (
border-color: red.darken(50%),
title-color: red.lighten(60%),
body-color: red.lighten(80%)
),
title-style: (
color: black,
weight: "regular",
align: center
),
shadow: (
offset: 3pt,
),
title: "Red-ish showybox with separated sections!",
lorem(20),
lorem(12)
)

func18

#showybox(
frame: (
dash: "dashed",
border-color: red.darken(40%)
),
body-style: (
align: center
),
sep: (
dash: "dashed"
),
shadow: (
offset: (x: 2pt, y: 3pt),
color: yellow.lighten(70%)
),
[This is an important message!],
[Be careful outside. There are dangerous bananas!]
)

func19