papr-pdf-0.1.0 is not a library.
papr 📄
Lightning-fast CLI tool to compile Markdown, LaTeX, and Plain Text files into publication-grade PDFs.
papr gives you an Overleaf-grade typesetting workflow right inside your terminal. It handles:
- Markdown (
.md): Full GitHub Flavored Markdown, embedded KaTeX math ($E=mc^2$), and syntax-highlighted code blocks. - LaTeX (
.tex): Multi-file project support (\input,\include,\includegraphics) powered by Tectonic / XeTeX with automatic package resolution. - Plain Text (
.txt): Clean monospaced layout with headers, line wrapping, and page margins.
🚀 Quick Start
Installation
1. Interactive Mode (No Arguments)
Just type papr and hit Enter:
$ papr
? Select document format to compile:
❯ 1. Markdown (.md)
2. LaTeX (.tex)
3. Plain Text (.txt)
? Enter path to input file (press [Tab] to autocomplete):
❯ chapters/main.tex
✔ Generated: chapters/main.pdf (84.2 KB, 0.38s)
2. Direct Command Mode
# Markdown to PDF
# Multi-file LaTeX to PDF (Overleaf-style)
# Plain Text notes to PDF
# Specify custom output path
# Open PDF immediately in your system viewer
🎨 Themes
For Markdown and Text files, choose between built-in styling themes:
🧩 Overleaf-Style Multi-File Support
When compiling .tex documents with \input{...} or \includegraphics{...}:
my-paper/
├── main.tex
├── figures/
│ └── architecture.png
└── sections/
├── intro.tex
└── results.tex
Run papr my-paper/main.tex and all relative sub-files and images resolve seamlessly!
📦 Publishing to crates.io
To publish updates:
📄 License
Dual-licensed under either of: