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
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
Repository Layout
LatexEditorBackEnd/— FastAPI backend:/compile,/repair,/notation,/agent/edit,/health.LatexStudio-AI-master/— the web frontend: login, project dashboard, Monaco-based editor.vscode-latex-preview/— the VS Code extension described above.
See the GitHub repository for full setup instructions for each component.