Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Fr4nk1inCs/typreset
A collection of presets/templates for my personal Typst writing
https://github.com/Fr4nk1inCs/typreset
Last synced: about 2 months ago
JSON representation
A collection of presets/templates for my personal Typst writing
- Host: GitHub
- URL: https://github.com/Fr4nk1inCs/typreset
- Owner: Fr4nk1inCs
- License: mit
- Created: 2023-04-01T14:18:42.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T06:06:04.000Z (12 months ago)
- Last Synced: 2024-04-24T03:20:33.777Z (9 months ago)
- Language: Typst
- Homepage:
- Size: 5.38 MB
- Stars: 21
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typst-cn - typst-notebook
README
# Typreset (W.I.P.)
A collection of [Typst](https://typst.app) presets to provide a starting point for your writing.
Available presets:
- `font.set-font()`: Chinese & English Font support.
- `homework`: Homework template with `simple_question` and `complex_question` frame to write your homework.
- `report`: Report template to write your report.At this time there is no manual or handbook for this project. But our `tests/` directory contains some examples of how to use this project.
## Usage
Typrest supports Typst 0.6.0 and newer.
At this time there is no release of this project. You need to manually configure your local Typst packages.
- Clone this project to `{data-dir}/typst/packages/local/typreset/0.1.0`, where `data-dir` [depends on your systems](https://github.com/typst/packages#local-packages). For example, in Linux, it is `~/.local/share/typst/packages/local/typreset/0.1.0`:
```bash
mkdir -p ~/.local/share/typst/packages/local/typreset/
git clone https://github.com/Fr4nk1inCs/typreset.git ~/.local/share/typst/packages/local/typreset/0.1.0
```Then you can use the presets in your Typst project:
```typ
#import "@local/typreset:0.1.0": *
```## Fonts
The default font family for English is [Linux Libertine](https://linuxlibertine.sourceforge.net/Libertine-EN.html). It's bundled with Typst, so you don't need to install it.
The default math font is [Libertinus](https://github.com/alerque/libertinus) Math, which you need to install manually.
For Arch-based Linux distributions, you can install it from `libertinus-font`
package in `extra` repository. You can also install it from
[its GitHub release page](https://github.com/alerque/libertinus/releases).### Language-specific Fonts
#### Simplified Chinese
Typreset uses the [fandol](https://ctan.org/pkg/fandol) fonts as the default simplified Chinese fonts in Typreset. If you want to use these fonts, you need to [install them](https://mirrors.ctan.org/fonts/fandol.zip).