情報 / Info
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「Typst Japanese Community」がTypst v0.14.0の公式ドキュメントを翻訳したものです。誤訳や古い情報が含まれている可能性があるため、公式ドキュメントとの併用を推奨します。翻訳の改善やサイトの機能向上について、GitHubでのIssueやPull Requestを歓迎します。コミュニティにご興味のある方はDiscordサーバー「くみはんクラブ」にぜひご参加ください。
This site provides a Japanese translation of the Typst v0.14.0 documentation maintained by the "Typst Japanese 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".
翻訳済み

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

ratio

百分率。

数値の後にパーセント記号を付けて表記します。 百分率は、ページやコンテナに対するレイアウト要素の相対的なサイズを指定するために、相対長さの一部として用いられることが最も一般的です。

#rect(width: 25%)
Preview

百分率はその他にも、何らかの基準に対する相対量を表せます。例えば、水平方向の拡大縮小量や、囲まれたコンテンツの高さに対する括弧の高さなどです。

スクリプト記述

自身のコード内では、百分率を自由に使用できます。以下の表のように、さまざまな型と乗算できます。

乗算する型結果
ratio27% * 10%2.7%
length27% * 100pt27pt
relative27% * (10% + 100pt)2.7% + 27pt
angle27% * 100deg27deg
int27% * 254%
float27% * 0.3703710%
fraction27% * 3fr0.81fr

百分率が文書中に表示される際は、可読性のため有効数字2桁に丸められます。

原文(英語)を開く

検索