Typst のインストール方法は,Typst の GitHubページ にある通りですが,以下の 3 つのパターンが簡単かと思われます.
PowerShell を開き以下のコマンドを入力する.
winget install --id Typst.Typst
winget
コマンドが有効でない場合には,Microsoft Store から アプリインストーラー をインストールすると使えるようになります.
Homebrew を導入して,以下のコマンドを入力する.
brew install typst
このページ の通りですが,Homebrew のインストールは以下のコマンドで行えます.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Ubuntu の場合などはこの方法をオススメします. Rust をインストールして,以下のコマンドを入力する.
cargo install --git https://github.com/typst/typst --locked typst-cli
このページ の通りですが,Rust のインストールは以下のコマンドで行えます.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Typst をインストール.
- 解凍したフォルダーの
main.typ
を編集. - PowerShell やターミナルで
main.typ
のあるディレクトリに移り,以下のコマンドでmain.pdf
を生成.typst compile main.typ