Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.83 KB

native-install.md

File metadata and controls

40 lines (35 loc) · 1.83 KB

ローカル環境構築

コマンドによるインストール

Typst のインストール方法は,Typst の GitHubページ にある通りですが,以下の 3 つのパターンが簡単かと思われます.

Windows

PowerShell を開き以下のコマンドを入力する.

winget install --id Typst.Typst

winget コマンドが有効でない場合には,Microsoft Store から アプリインストーラー をインストールすると使えるようになります.

Mac

Homebrew を導入して,以下のコマンドを入力する.

brew install typst

このページ の通りですが,Homebrew のインストールは以下のコマンドで行えます.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Rust を通してインストール

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

コマンドによるコンパイル

  1. Typst をインストール.
  2. 解凍したフォルダーの main.typ を編集.
  3. PowerShell やターミナルで main.typ のあるディレクトリに移り,以下のコマンドで main.pdf を生成.
    typst compile main.typ