https://github.com/komed3/latex-editor
LaTeX equation editor with image and PDF export
https://github.com/komed3/latex-editor
formula-editor image-export latex latex-editor math-formula pdf-export
Last synced: 18 days ago
JSON representation
LaTeX equation editor with image and PDF export
- Host: GitHub
- URL: https://github.com/komed3/latex-editor
- Owner: komed3
- License: mit
- Created: 2026-05-12T17:31:02.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2026-05-20T02:03:49.000Z (27 days ago)
- Last Synced: 2026-05-20T05:42:51.577Z (27 days ago)
- Topics: formula-editor, image-export, latex, latex-editor, math-formula, pdf-export
- Language: TypeScript
- Homepage: https://komed3.github.io/latex-editor/
- Size: 829 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaTeX Formula Editor
A web-based tool for drafting, previewing, and exporting mathematical equations using LaTeX syntax.
## Core Components
- **Rendering Engine**: Utilizes the **KaTeX** library for client-side mathematical typesetting.
- **Editor Interface**: Implements **PrismJS** for LaTeX-specific syntax highlighting and cursor-aware symbol insertion.
- **Viewport Workspace**: A zoomable canvas environment supporting coordinate transformations (pan/zoom) and automatic fit-to-viewport scaling.
## Technical Specifications
- **Client-Side Processing**: All formula rendering and logic occur within the browser. No server-side LaTeX distribution or external processing API is required.
- **Stateless Persistence**: Formula states are encoded using **LZ-String** compression and stored in the URL hash fragment. This enables formula sharing and bookmarking without database dependency.
### Export Formats
- **PNG (Raster)**: 32-bit transparent output at 4x Retina scale (~384 DPI equivalent).
- **PDF (Vector)**: Native vector-based output for lossless scaling in documents and print media.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
(c) 2026 Paul Köhler (komed3). All rights reserved.