An AI-powered LaTeX editor with real-time suggestions, PDF compilation, and intelligent editing capabilities.
- Real-time LaTeX Suggestions: Get intelligent autocompletions as you type
- PDF Compilation: Compile your LaTeX documents to PDF with a single click
- Smart Editing: Select text and use AI to edit or improve it
- LaTeX Assistant: Ask questions about LaTeX and get helpful responses
- Modern UI: Clean, intuitive interface with dark mode support
The project consists of two main parts:
- Frontend (
latex-editor/): React application with the editor interface - Backend (
latex-editor-backend/): Node.js server handling AI requests and LaTeX compilation
- Node.js (v14 or higher)
- npm (v6 or higher)
- pdfLaTeX installed on your system
- GROQ API key for AI capabilities
-
Clone the repository:
git clone https://github.com/yourusername/latex-copilot.git cd latex-copilot -
Install dependencies for all components:
npm run install-all -
Create a
.envfile in thelatex-editor-backenddirectory:GROQ_API_KEY=your_groq_api_key_here PORT=3001
Start both the frontend and backend with a single command:
npm start
- Frontend will be available at: http://localhost:3000
- Backend will be running at: http://localhost:3001
- Writing LaTeX: Type in the editor pane and use Tab to accept suggestions
- Compiling: Click the "Compile" button to generate a PDF
- Editing Text: Select text and press Cmd+K (or Ctrl+K) to edit with AI
- Getting Help: Press Cmd+L (or Ctrl+L) to open the LaTeX Assistant
MIT