Skip to content

papersmith

Programmatic Word document generation with LaTeX equations, style presets, citations, charts, and MCP server.

Installation

pip install papersmith

Quick Start

from papersmith import SmithDocument

# Create a new document with the academic preset
doc = SmithDocument(preset="academic")

# Add some content
doc.add_heading("My Academic Paper", level=1)
doc.add_text("This is an introduction. Here is an inline equation: $E = mc^2$.")

# Save the document
doc.save("output.docx")