Zero-setup LaTeX editing
Write and compile LaTeX documents directly in your browser without any installation or configuration.Browser-based editor
Typeset uses CodeMirror as its editing foundation, providing:- Syntax highlighting for LaTeX
- Line wrapping for long equations
- Keyboard shortcuts (
Tabfor indentation) - Light and dark themes (GitHub Light/Dark)
- Custom theme support
Default template
Every new project starts with a ready-to-use LaTeX template that includes standard document structure, title, author, and date fields. Seeapp/actions.ts:10 for the template generation.
The template is stored as a Yjs document, enabling real-time collaboration from the moment you create a project.
AI-powered code assistant
Get intelligent help from leading AI models that understand LaTeX and can edit your documents.Multiple AI models
Choose between two powerful models:- GPT-4.1 mini (OpenAI) - Fast and capable
- Gemini 2.5 Flash (Google) - High-performance reasoning
Editing capabilities
The AI assistant can directly modify your LaTeX document using theeditFile tool. When the AI suggests changes:
- A side-by-side diff appears in the editor
- You can review the changes before accepting
- Accept to apply, or reject to keep your current version
- Accepted edits automatically trigger compilation
components/project/chat.tsx:61 and components/project/editor.tsx:71.
Context-aware help
The AI has access to your entire document through file attachments:Real-time collaboration
Work with your team on the same document simultaneously with conflict-free editing.Powered by Liveblocks
Typeset uses Liveblocks with Yjs for operational transformation, ensuring all collaborators see consistent document state even when editing the same lines.Live presence
See who’s actively working on your document:- Avatars in the navigation bar show online collaborators
- Colored cursors and selections show where others are editing
- Real-time updates as changes are made
Access control
Manage who can access your projects:- Invite by email: Grant write access to collaborators (
app/actions.ts:97) - Remove access: Revoke permissions when needed (
app/actions.ts:107) - Leave projects: Exit shared projects you no longer need (
app/actions.ts:67) - Owner controls: Project owners can delete projects (
app/actions.ts:62)
Instant PDF compilation
Compile your LaTeX documents to PDF in seconds with detailed error reporting.Tectonic compiler
Typeset uses Tectonic, a modern LaTeX compiler that:- Downloads packages automatically
- Compiles significantly faster than traditional TeX distributions
- Provides clear error messages
- Runs in isolated environments for security
Error handling
When compilation fails, you see:- The specific error message from the LaTeX compiler
- Line numbers where errors occurred
- A clear alert in the preview panel
components/project/collaborative-editor.tsx:421 for the error display UI.
One-click compilation
Click the Compile button or press the play icon to compile. The process:- Sends your document content to
/api/compile - Tectonic processes the LaTeX on the server
- Returns a PDF blob on success
- Automatically switches to the preview tab
Project management
Organize and manage your LaTeX documents effectively.Create projects
- Unique nanoid identifiers
- Default LaTeX template
- Automatic owner permissions
- Initialized Yjs document for collaboration
Rename projects
Click the project title in the navigation bar to rename. Project titles:- Can be 1-60 characters long
- Update across all views (
app/actions.ts:81) - Are stored in Liveblocks room metadata
Project views
Access your projects from two dashboards:- My Projects: Projects you own
- Shared with Me: Projects others have invited you to
Modern CodeMirror editor
The editor includes advanced features from CodeMirror 6:- LaTeX language support: Syntax-aware editing with the
codemirror-lang-latexpackage - Basic setup: Line numbers, search, bracket matching, and more
- Custom key bindings: Tab key for indentation
- Theme integration: Syncs with your system theme preference
- Line wrapping: Long lines wrap automatically for better readability
Side-by-side diff view
When the AI suggests edits, CodeMirror’s MergeView shows changes:Responsive design
Typeset works seamlessly across devices:- Desktop: Three-panel layout with resizable panels
- Mobile: Tab-based interface for chat, editor, and preview
- Tablet: Adaptive layout based on screen size
components/project/collaborative-editor.tsx:138 for the mobile-optimized UI.
Next steps
Editor
Deep dive into the CodeMirror editor
AI assistant
Learn advanced AI collaboration techniques
Collaboration
Master real-time editing features
Compilation
Understand the LaTeX compilation process