Editor features
The LaTeX editor includes:- Syntax highlighting for LaTeX commands, environments, and math expressions
- Line wrapping to keep your code readable without horizontal scrolling
- Tab support with proper indentation handling
- Theme support that automatically adapts to light/dark mode
- Real-time collaboration with visible user cursors and selections
The editor uses CodeMirror 6 with the
codemirror-lang-latex language package for LaTeX-specific syntax support.Writing LaTeX
Start typing
Click anywhere in the editor panel (center panel) and start writing your LaTeX code. The editor provides syntax highlighting as you type.
Use LaTeX commands
Type LaTeX commands like
\section{}, \textbf{}, or math environments. The syntax highlighting helps you identify commands, arguments, and environments.Collaborative editing
When multiple users work on the same document, the editor shows:- Colored cursors representing each collaborator
- User names displayed near their cursor position
- Real-time updates as other users type
- Selection highlights showing what others have selected
Each collaborator is assigned a unique color that identifies their cursor and selections throughout the document.
Review mode
When the AI assistant suggests changes to your document, the editor switches to a side-by-side comparison view that shows:- Your current document on the left
- The AI’s suggested version on the right
- Visual diff highlighting to see exactly what changed
Review the changes
Compare the two versions side-by-side. Changed lines are highlighted so you can quickly spot modifications.
Accept or reject
Click Accept to apply the changes, or Reject to keep your original document. The buttons appear at the bottom of the editor panel.
Keyboard shortcuts
The editor supports standard keyboard shortcuts:Tab- Insert tab or indentCmd/Ctrl + Z- UndoCmd/Ctrl + Shift + Z- RedoCmd/Ctrl + F- FindCmd/Ctrl + H- Find and replace
Theme customization
The editor automatically adapts to your system theme:- Light mode uses the GitHub Light theme with clear, readable colors
- Dark mode uses the GitHub Dark theme with reduced eye strain