情報アイコン
情報 / Info
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「Typst Japan Community」がTypst v0.13.1の公式ドキュメントを翻訳したものです。誤訳や古い情報が含まれている可能性があるため、公式ドキュメントとの併用を推奨します。翻訳の改善やサイトの機能向上について、GitHubでのIssueやPull Requestを歓迎します。コミュニティにご興味のある方はDiscordサーバー「くみはんクラブ」にぜひご参加ください。
This site provides a Japanese translation of the Typst v0.13.1 documentation maintained by the "Typst Japan Community" with permission from Typst GmbH. We recommend using this alongside the official documentation. We welcome contributions through Issues and Pull Requests on our GitHub repository for both translation improvements and website enhancements. Feel free to join our Discord server "Kumihan Club".
言語アイコン
未翻訳

このページはまだ翻訳されていません。原文の内容が表示されています。

Variants

Alternate typefaces within formulas.

These functions are distinct from the text function because math fonts contain multiple variants of each letter.

Function

serif

Serif (roman) font style in math.

This is already the default.

math.serif()->

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

sans

Sans-serif font style in math.

math.sans()->
$ sans(A B C) $
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

frak

Fraktur font style in math.

math.frak()->
$ frak(P) $
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

mono

Monospace font style in math.

math.mono()->
$ mono(x + y = z) $
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

bb

Blackboard bold (double-struck) font style in math.

For uppercase latin letters, blackboard bold is additionally available through symbols of the form NN and RR.

math.bb()->
$ bb(b) $
$ bb(N) = NN $
$ f: NN -> RR $
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

cal

Calligraphic font style in math.

math.cal()->
Let $cal(P)$ be the set of ...
Preview

This corresponds both to LaTeX's \mathcal and \mathscr as both of these styles share the same Unicode codepoints. Switching between the styles is thus only possible if supported by the font via font features.

For the default math font, the roundhand style is available through the ss01 feature. Therefore, you could define your own version of \mathscr like this:

#let scr(it) = text(
  features: ("ss01",),
  box($cal(it)$),
)

We establish $cal(P) != scr(P)$.
Preview

(The box is not conceptually necessary, but unfortunately currently needed due to limitations in Typst's text style handling in math.)

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to style.

検索