Skip to content

hsreedeth/TypesetLLM

Repository files navigation

TypesetLLM*

Render Markdown to PDF with Pandoc + XeLaTeX. *(For MacOS & Linus)

Setup

Requires pandoc and xelatex. Note: Deactivate any active conda environments before starting up.

python -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt
python run_local.py

Convert a file

python -m src.cli path/to/file.md -o path/to/file.pdf
./convert.sh path/to/file.md

The converter uses the bundled template, Lua filter, and bundled fonts directly.

Run the API

uvicorn src.api:app --host 0.0.0.0 --port 8000

If the uvicorn CLI is slow to start on your machine, use:

python run_local.py

Open http://localhost:8000 for the local web app.

POST Markdown text to /convert and it returns a PDF.

About

Render your LLM generated reports, notes, short-form literature into handout style PDFs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors