mirror of
https://github.com/typst/typst
synced 2025-05-15 09:35:28 +08:00
Fixed usage of command options in README (#2445)
This commit is contained in:
parent
cf9ca6cb59
commit
b4e8a2afe3
13
README.md
13
README.md
@ -151,15 +151,24 @@ Typst further allows you to add custom font paths for your project and list all
|
|||||||
of the fonts it discovered:
|
of the fonts it discovered:
|
||||||
```sh
|
```sh
|
||||||
# Adds additional directories to search for fonts.
|
# Adds additional directories to search for fonts.
|
||||||
typst --font-path path/to/fonts compile file.typ
|
typst compile --font-path path/to/fonts file.typ
|
||||||
|
|
||||||
# Lists all of the discovered fonts in the system and the given directory.
|
# Lists all of the discovered fonts in the system and the given directory.
|
||||||
typst --font-path path/to/fonts fonts
|
typst fonts --font-path path/to/fonts
|
||||||
|
|
||||||
# Or via environment variable (Linux syntax).
|
# Or via environment variable (Linux syntax).
|
||||||
TYPST_FONT_PATHS=path/to/fonts typst fonts
|
TYPST_FONT_PATHS=path/to/fonts typst fonts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For other CLI subcommands and options, see below:
|
||||||
|
```sh
|
||||||
|
# Prints available subcommands and options.
|
||||||
|
typst help
|
||||||
|
|
||||||
|
# Prints detailed usage of a subcommand.
|
||||||
|
typst help watch
|
||||||
|
```
|
||||||
|
|
||||||
If you prefer an integrated IDE-like experience with autocompletion and instant
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user