情報アイコン
情報 / 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".
言語アイコン
翻訳率
21%
言語アイコン
翻訳済み

このページは日本語に翻訳済みです。

direction

コンテンツをレイアウトできる4つの向き。

取りうる値は以下の通りです。

  • ltr: 左から右。
  • rtl: 右から左。
  • ttb: 上から下。
  • btt: 下から上。

これらの値はグローバルスコープでも、direction型のスコープでも用いることができます。 したがって、以下の2つのどちらでも書くことができます。

#stack(dir: rtl)[A][B][C]
#stack(dir: direction.rtl)[A][B][C]
Preview

定義
Definitions
Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.

axis

このdirectionが属する軸。"horizontal""vertical"のいずれかになります。

self.axis(
)->
右矢印アイコン
例を表示
#ltr.axis() \
#ttb.axis()
Preview

start

このdirectionの始点をalignmentとして返します。

self.start(
)->
右矢印アイコン
例を表示
#ltr.start() \
#rtl.start() \
#ttb.start() \
#btt.start()
Preview

end

このdirectionの終点をalignmentとして返します。

self.end(
)->
右矢印アイコン
例を表示
#ltr.end() \
#rtl.end() \
#ttb.end() \
#btt.end()
Preview

inv

逆の向き。

self.inv(
)->
右矢印アイコン
例を表示
#ltr.inv() \
#rtl.inv() \
#ttb.inv() \
#btt.inv()
Preview

検索