https://github.com/user-attachments/assets/59d20ff8-47e1-4aa5-be7e-72c09baa97a6
LatexNotes is a powerful SaaS platform designed to convert handwritten math notes into professional-quality LaTeX code using Gemini AI, with real-time previews powered by Tectonic. Users can organize notes into projects, add image-based pages, and export entire projects as polished PDFs with customizable title pages.
Intelligent Image to LaTeX Conversion
Leverage AI to accurately convert images of handwritten notes into LaTeX code.
Real-Time LaTeX Preview
Instantly visualize rendered LaTeX output for quick verification and edits.
Intuitive User Interface
Clean, responsive, and user-friendly design using React + TailwindCSS.
RESTful API Backend
Seamless interaction between frontend and backend using Axios.
Comprehensive LaTeX Support
Full LaTeX preamble for compatibility across environments.
Project Management System
Organize notes into multiple projects and pages with custom descriptions.
Customizable Output
Modify LaTeX code to suit specific formatting needs.
PDF Export
Generate professional PDFs directly from your projects.
# Clone the repository
git clone https://github.com/yourusername/thorem.git
cd thorem
# Install server dependencies
npm install
# Install client dependencies
cd client
npm install
cd ..
Create a .env
file in the root directory:
cp .env.example .env
Then configure the necessary variables:
# Backend Configuration
PORT=3001
# Optional: DATABASE_URL=your_database_connection_string
# Frontend Configuration
CLIENT_PORT=3000
Start the backend server:
npm run server
Start the frontend development server:
npm run client
Access the application at: http://localhost:3000
Build the frontend:
cd client
npm run build
cd ..
Start the backend:
npm start
Create a New Project Use the sidebar to create a new notes project.
Add Pages Add pages to the project for different sections or topics.
Upload Notes Upload images of handwritten notes to each page. AI handles the LaTeX conversion.
Edit LaTeX Refine or update the auto-generated LaTeX in the editor.
Preview See a live preview of the LaTeX document.
Export as .tex Download the LaTeX source file.
Export as PDF Generate a full PDF document with title pages and formatting.
thorem/
βββ client/ # Frontend React application
β βββ public/ # Static assets
β βββ src/ # React source code
βββ server/ # Backend Node.js server
β βββ api/ # API routes and controllers
β βββ models/ # Data models
β βββ services/ # Business logic
βββ docs/ # Documentation
βββ tests/ # Test files
βββ scripts/ # Utility scripts
Contributions are welcome! Hereβs how:
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, feel free to open an issue or reach out via krishprajapati.me.