Revise Readme

This commit is contained in:
Laurenz 2023-04-11 12:10:33 +02:00
parent 94e052b8cc
commit 8734d64ebc

View File

@ -101,26 +101,27 @@ Let's dissect what's going on:
``` ```
</details> </details>
## Installing ## Installation
You can get sources and pre-built binaries for the latest release of Typst from Typst's CLI is available from different sources:
the [releases page][releases]. This will give you Typst's CLI which converts
Typst sources into PDFs.
Typst is also available through several package managers: - You can get sources and pre-built binaries for the latest release of Typst
from the [releases page][releases].
```sh - You can install Typst through different package managers. Note that the
# macOS or Linux using Homebrew versions in the package managers might lag behind the latest release.
brew install typst - macOS/Linux: `brew install typst`
- Arch Linux: `pacman -S typst`
# Arch Linux - If you have a [Rust][rust] toolchain installed, you can also install the
pacman -S typst latest development version with
``` `cargo install --git https://github.com/typst/typst`. Note that this will
be a "nightly" version that may be broken or not yet properly documented.
Nix users can use the `typst` package with `nix-shell -p typst` or build and run - Nix users can use the `typst` package with `nix-shell -p typst` or build and
the bleeding edge version with `nix run github:typst/typst -- --version`. run the bleeding edge version with `nix run github:typst/typst -- --version`.
Docker users can run a prebuilt image with - Docker users can run a prebuilt image with
`docker run -it ghcr.io/typst/typst:main`. `docker run -it ghcr.io/typst/typst:main`.
## Usage ## Usage
Once you have installed Typst, you can use it like this: Once you have installed Typst, you can use it like this:
@ -154,16 +155,6 @@ If you prefer an integrated IDE-like experience with autocompletion and instant
preview, you can also check out the [Typst web app][app], which is currently in preview, you can also check out the [Typst web app][app], which is currently in
public beta. public beta.
## Build from source
To build Typst yourself, you need to have the [latest stable Rust][rust]
installed. Then, you can build the CLI with the following command:
```sh
cargo build -p typst-cli --release
```
The optimized binary will be stored in `target/release/`.
## Contributing ## Contributing
We would love to see contributions from the community. If you experience bugs, We would love to see contributions from the community. If you experience bugs,
feel free to open an issue or send a PR with a fix. For new features, we would feel free to open an issue or send a PR with a fix. For new features, we would
@ -171,10 +162,17 @@ invite you to open an issue first so we can explore the design space together.
If you want to contribute and are wondering how everything works, also check out If you want to contribute and are wondering how everything works, also check out
the [`ARCHITECTURE.md`][architecture] file. It explains how the compiler works. the [`ARCHITECTURE.md`][architecture] file. It explains how the compiler works.
## Pronunciation To build Typst yourself, you need to have the [latest stable Rust][rust]
**IPA**: /taɪpst/ installed. Then, you can build the CLI with the following command:
"Ty" like in **Ty**pesetting and "pst" like in Hi**pst**er. ```sh
cargo build --release
```
The optimized binary will be stored in `target/release/`.
## Pronunciation
IPA: /taɪpst/. "Ty" like in **Ty**pesetting and "pst" like in Hi**pst**er.
## Design Principles ## Design Principles
All of Typst has been designed with three key goals in mind: Power, All of Typst has been designed with three key goals in mind: Power,