Skip to content

8LWXpg/jupyter2typst

Repository files navigation

Jupyter to Typst converter

Feel free to open a issue or PR!

Features

  • automatic image download/extract
  • nice template
  • support for KaTeX in markdown convert (mostly complete)

Look for demos in test folder.

Install

Install jupyter2typst with cargo:

cargo install --git 'https://github.com/8LWXpg/jupyter2typst.git'

After that, you can use jupyter2typst in your terminal.

Don't forget to download the template and include it in the same directory as your .ipynb file.

curl 'https://raw.githubusercontent.com/8LWXpg/jupyter2typst/master/test/template.typ' > template.typ

modify the template.typ to fit your needs.

Usage

jupyter2typst <input> [-o <output>] [-i <img-path>]
  • input: the path of the input .ipynb file
  • output: the path of the output .typ file
  • img-path: the path of the image folder, default is ./img

KaTeX support list

read convert_list.md