Metadata-Version: 2.4
Name: tewii
Version: 0.2.0
Summary: Seamless Markdown to LaTeX + PDF Convertor
Author: epsilorne
Author-email: epsilorne <contact@epsilorne.moe>
License-File: LICENSE
Requires-Dist: click>=8.5.0
Requires-Dist: notify-py>=0.3.43
Requires-Dist: psutil>=7.2.2
Requires-Dist: watchdog>=6.0.0
Requires-Python: >=3.14
Description-Content-Type: text/markdown

# 🥕 Tewii 

[![PyPI](https://img.shields.io/pypi/v/tewii)](https://pypi.org/project/tewii/)
[![CI](https://github.com/epsilorne/tewii/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/epsilorne/tewii/actions/workflows/build-and-test.yml)

Tewii is a Pandoc wrapper surrounding your default text editor, allowing you to seamlessly create LaTeX documents, rendered as a PDF, all from simpler Markdown.

## Features

- Use your default text editor to edit Markdown files and see a rendered PDF from your default PDF viewer
- Automated Markdown -> LaTeX conversion and rendering, every time you save your files
- Support for multiple source files, all combined into a single rendered document

## Installation
Tewii requires [Pandoc](https://pandoc.org/) and `pdflatex` (included with any LaTeX distribution), as well as Python >= 3.14.

You can download from PyPI:

```bash
$ python -m pip install tewii
```

Alternatively, you can install from source, using e.g. [UV](https://github.com/astral-sh/uv):

```bash
$ git clone https://github.com/epsilorne/tewii.git
$ cd tewii
$ uv tool install .
```

## Usage
Create an empty project using:
```
$ tewii init <NAME>
```

Then, edit your project with:
```
$ tewii edit <NAME>
```

For the best experience, it's recommended to use a PDF viewer that automatically refreshes upon file changes.
That way, changes in your source files are automatically reflected in the rendered PDF without intervening.
