情報アイコン
情報 / Info
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「Typst Japanese 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 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".
言語アイコン
翻訳率
44%
言語アイコン
翻訳済み

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

read

ファイルからプレーンテキストやデータを読み込む。

デフォルトでは、ファイルはUTF-8として読み込まれ、文字列として返されます。

encoding: noneを指定した場合、この関数は代わりに生のbytesを返します。

An example for a HTML file: \
#let text = read("example.html")
#raw(text, lang: "html")

Raw bytes:
#read("tiger.jpg", encoding: none)
Preview

引数
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。

path
必須引数
必須引数
必須引数は、関数を呼び出す際に必ず指定しなければなりません。
位置引数
位置引数
位置引数は順序通りに指定することで、引数名を省略して設定できます。

ファイルのパス。

詳細については、パスのセクションを参照してください。

encoding

ファイルを読み込む際に使用するエンコーディング。

noneに設定すると、この関数は生のバイトを返します。

使用可能な文字列値:
  • utf8

    Unicode UTF-8エンコーディング。

デフォルト値:

"utf8"

原文(英語)を開く
右矢印アイコン

検索