# simple-typst-note

## Usage 

```rust
#import "lib.typ": *

#let title = "Hello, World!"
#let author = (
  name: "<NAME>",
  email: "<EMAIL>"
)
#let bib = bibliography("refer.bib")

#show: note.with(
  title: [#title],
  author: author,
  bib:bib,
  lang: "zh", 
  toc: false,
)

= Introduction

#lorem(50)

```

## Requirements

- Install `Family Song` for better font effect. You can visit [Keldos-Li/typora-latex-theme-fonts](https://github.com/Keldos-Li/typora-latex-theme-fonts/tree/main) for more infomation. 

## Advices

- Edit with VSCode + [tynymist-typst](https://marketplace.visualstudio.com/items?itemName=myriad-dreamin.tinymist) is recommended for writing typst notes.
- Convert to docx using [Pandoc](https://pandoc.org/) with `pandoc main.typ -o main.docx --reference-doc template.docx`

![](./assets/example.svg)
