Skip to content

Mathetix is an intelligent bridge between visual mathematics and digital typesetting

Notifications You must be signed in to change notification settings

VicoErv/mathetix-sigma-presenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mathetix

Mathetix UI

Overview

Mathetix is an intelligent bridge between visual mathematics and digital typesetting. It transforms handwritten or printed equations into precision LaTeX code, enhanced by AI-powered context and explanations. Built with a premium glassmorphism UI, it leverages Deep Learning (pix2tex) for OCR and Local AI (qwen2.5-coder) for semantic understanding.

Features

  • Image to LaTeX Conversion: Drag and drop images to instantly generate LaTeX code.
  • AI Explanations: Uses a local LLM to provide brief, contextual explanations of the formulas.
  • Mixed Content Parsing: Properly renders mathematical notation within the AI descriptions.
  • History System: Automatically saves all conversions to a local SQLite database for easy retrieval.
  • Premium UI: Dark mode, smooth animations, and responsive design.

Requirements

  • Python: 3.9+
  • Node.js: 18+
  • Ollama: Installed and running locally.
  • Model: pix2tex (automatically installed via pip) and qwen2.5-coder:7b (via Ollama).

Setup

Backend

  1. Navigate to the backend directory:
    cd backend
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Start the server:
    python app.py
    The backend will run on http://127.0.0.1:5000.

Frontend

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm run dev
    The application will be available at http://localhost:5173.

AI Integration

Ensure Ollama is running and the model is pulled:

ollama serve
ollama pull qwen2.5-coder:7b

Output

The application provides:

  • Rendered LaTeX: Visual representation of the formula.
  • Raw Code: Copy-pasteable LaTeX string.
  • Explanation: Natural language description of what the formula represents.

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).

About

Mathetix is an intelligent bridge between visual mathematics and digital typesetting

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published