Skip to content

Fr4nk1inCs/typreset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typreset (W.I.P.)

A collection of Typst 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.
  • thm-envs: Minimal theorem environments with theorem, lemma, corollary, definition and proof environment presets. Tweaked from typst-theorems.

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. For example, in Linux, it is ~/.local/share/typst/packages/local/typreset/0.1.0:

    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:

#import "@local/typreset:0.1.0": *

Fonts

The default font family for English is Linux Libertine. It's bundled with Typst, so you don't need to install it.

The default math font is 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.

Language-specific Fonts

Simplified Chinese

Typreset uses the fandol fonts as the default simplified Chinese fonts in Typreset. If you want to use these fonts, you need to install them.

About

A collection of presets/templates for my personal Typst writing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages