Skip to content

An integrated editor for the typst typesetting system.

License

Notifications You must be signed in to change notification settings

Bzero/typstwriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typstwriter

An integrated editor for the typst typesetting system.

Features

  • Integrated Document Viewer
  • Integrated File System viewer
  • Syntax highlighting

Configuration

Typstwriter can be configured using a configuration file, see example_config.ini for an example config file. After modifying the config file, typstwriter needs to be restarted.

Typstwriter looks for configuration files in the following locations:

  • /etc/typstwriter/typstwriter.ini
  • /usr/local/etc/typstwriter/typstwriter.ini
  • Platform specific configuration directory:
    • $XDG_CONFIG_HOME/typstwriter/typstwriter.ini
    • %USERPROFILE%\AppData\Local\typstwriter\typstwriter\typstwriter.ini
  • ~/.typstwriter.ini
  • ./typstwriter.ini

Files further down in the list will take precedence.

Installation

Using pip:

Typstwriter is available on PyPI. To install using pip simply use:

pip install typstwriter

From source

Get the source code by cloning the desired branch or download a release from th github repository and install from the toplevel directory:

git clone https://github.com/Bzero/typstwriter
pip install ./typstwriter/

Install typst

Independently of the installation method chosen, the typst CLI has to be available to compile typst documents. Consult the typst repository for details on installing typst. Alternatively, the path of a typst executable can be specified in the configuration file.

Development

Clone the repository

git clone https://github.com/Bzero/typstwriter/

Install typstwriter in edit mode

pip install -e ./typstwriter/

Run the tests with pytest to make sure that everything is working correctly. Inside the source directory, run:

pytest

Activate pre-commit hooks to automatically check changes before committing. Inside the source directory, run:

pre-commit install

Contributing

Contributions are always welcome!

License

Typstwriter is licensed under the MIT license.