← Back to Projects
📝

TeXStudio AI

An AI-assisted LaTeX editor — a browser-based Monaco editor with live PDF compilation and AI-powered authoring, plus a VS Code extension that brings the same compile-and-preview pipeline directly into the editor.

Overview

TeXStudio AI is a full-stack LaTeX authoring project made of three independent components sharing a single backend service: a browser-based editor frontend, a FastAPI backend that does the actual compilation and AI work, and a VS Code extension that lets you preview a compiled PDF without leaving your editor.

Architecture

┌─────────────────────┐ ┌──────────────────────────┐ │ Web frontend │ │ │ │ (Monaco editor, │──────► │ Backend (FastAPI) │ │ login/projects) │ HTTP │ pdflatex/bibtex compile │ └─────────────────────┘ │ + Qwen-powered AI │ └──────────────────────────┘ ┌─────────────────────┐ ▲ │ VS Code extension │──────────────────┘ │ (Ctrl+Shift+O preview)│ HTTP └─────────────────────┘

Both clients are independent of each other — neither the web frontend nor the VS Code extension embeds any compilation or model logic themselves; they only call the backend over HTTP.

Key Features

🛠️

AI-Powered LaTeX Repair

Feeds broken LaTeX and the compiler's error output to a locally-loaded Qwen coder model to get back corrected source.

🔣

Math Notation Lookup

Select text in the editor and get back the matching mathematical symbol, its LaTeX command, and typical usage.

🤖

Agentic Command Bar

Natural-language instructions ("add a 3x4 table comparing X and Y") insert or remove LaTeX blocks directly at the cursor.

📄

Live PDF Compilation

Multi-file/multi-image LaTeX projects compiled with pdflatex + bibtex, rendered straight into an in-page PDF viewer.

🔐

Accounts & Cloud Projects

Firebase Authentication (email/password + Google) with per-user projects persisted in Firestore and Storage.

🧩

VS Code Extension

Compile and preview a .tex project's PDF inline via a Webview (bundled pdf.js), triggered with Ctrl+Shift+O — no separate viewer window.

Technology Used

FastAPI Python PyTorch + Transformers (Qwen2.5-Coder) pdflatex / bibtex Monaco Editor Firebase Auth / Firestore / Storage Cloudinary VS Code Extension API pdf.js

Repository Layout

See the GitHub repository for full setup instructions for each component.