# OpenTex > OpenTex is a free LaTeX editor that runs in the browser. It needs no account and no TeX installation. Projects are stored in the browser, and most documents compile there with WebAssembly. OpenTex (https://opentex.yashvardhan.dev) is a local-first LaTeX editor. It compiles with BusyTeX (a WebAssembly build of TeX Live), keeps project files in the browser's IndexedDB, and imports existing LaTeX projects from a ZIP. ## What it does - **In-browser compilation**: BusyTeX (WebAssembly) builds most documents on the user's device. The engine is downloaded once on first use; until the first PDF is ready, a quick HTML preview of the document is shown. - **Server fallback**: projects that need full TeX Live (a non-standard document class, biber, glossaries, shell-escape) are sent to a compile server. - **Local-first storage**: documents, figures and bibliographies are stored in the browser. No account is required. - **Optional account**: signing in with Google syncs each project's title and LaTeX source to the account. Images, .bib files and chat history stay in the browser. - **Import**: drop a project ZIP on the home page or the workspace, or import from a Git repository. - **Templates**: IEEE, ACM, Nature, NeurIPS, arXiv, Springer LNCS and APA papers; CVs and resumes; cover letters; technical and lab reports; homework; Beamer slides. - **Editor and preview**: code, split and preview-only views with a PDF preview beside the source. - **AI assistant (optional)**: works on the open document using the user's own model-provider key. Document text is sent to that provider only when the assistant is used. - **Share links**: share a project with co-authors by link. - **Export**: PDF and project ZIP. ## Research-as-a-Service (optional, paid) Per-project help for people writing papers. The editor is free and does not require it. Launch offer: 50% off the regular prices ($149 / $99 / $79 / $99). - Paper review: from $74.50 - Literature scan: from $49.50 - Citation and reference audit: from $39.50 - Submission-readiness check: from $49.50 India PPP pricing for India-based clients: ₹1,499 / ₹999 / ₹799 / ₹999. Every claim in a report links to a source or is labelled unverified. ## Quick answers - **Is OpenTex free?** Yes. The editor is free; only Research-as-a-Service is paid. - **Do I need an account?** No. An account is optional and adds sync of title and LaTeX source. - **Do I need to install TeX Live, MacTeX or MiKTeX?** No. - **Are my documents uploaded?** Not by default. They leave the browser only when a project needs the compile server, when you sign in (title and source sync), when you share a link, or when you use the AI assistant. - **How do I bring in an existing project?** Download its source as a ZIP and drop it on OpenTex. ## Key URLs - Home: https://opentex.yashvardhan.dev/ - Editor: https://opentex.yashvardhan.dev/project - Templates: https://opentex.yashvardhan.dev/templates - Documentation: https://opentex.yashvardhan.dev/docs - Services and pricing: https://opentex.yashvardhan.dev/services - Terms of Service: https://opentex.yashvardhan.dev/tos (Markdown: https://opentex.yashvardhan.dev/TOS.md) - Privacy and data policy: https://opentex.yashvardhan.dev/data (Markdown: https://opentex.yashvardhan.dev/data.md) - OpenAPI Specification: https://opentex.yashvardhan.dev/openapi.json - AI Plugin Manifest: https://opentex.yashvardhan.dev/.well-known/ai-plugin.json - Full description for AI systems: https://opentex.yashvardhan.dev/llms-full.txt --- # OpenTex Agent Operational Specification (`llms.txt`) Target: https://opentex.yashvardhan.dev Environment: Local-First WebAssembly (BusyTeX) LaTeX IDE & Collaboration Engine ## 1. Complete Button & Interaction Directory ### Top Header Bar | Element | Selector / Identifier | Action / Purpose | |---|---|---| | View Mode: Code | `button:has-text(" Code")` | Display full Monaco code editor buffer. | | View Mode: Review | `button:has-text("Review")` | Split view: Monaco editor (left) + Live PDF Canvas (right). | | View Mode: Preview | `button:has-text("Preview")` | PDF view only. | | Assistant | `button:has-text("Assistant")` or `Ctrl+Shift+A` | Open AI Assistant panel / Agent Event Stream. | | Zoom Out | `button[title="Zoom out"]` / `text("-")` | Decrement PDF viewer magnification. | | Zoom In | `button[title="Zoom in"]` / `text("+")` | Increment PDF viewer magnification. | | Zoom Reset | `button:has-text("%")` | Reset PDF magnification to default 100%. | | Fit Width | `button[title="Fit width"]` | Fit rendered PDF page width to pane boundary. | | Theme Toggle | `button[title="Toggle theme"]` | Toggle Dark (`#0D0F17`) / Light theme. | | Fullscreen | `button[title="Toggle fullscreen"]` | Enter/exit window fullscreen. | | User Profile | Profile menu button | View current identity, Session ID, or Auth state. | ### Document Sidebar & Navigation (Left) | Element | Selector / Identifier | Action / Purpose | |---|---|---| | Templates | Tab: `Templates` | Open gallery: IEEE, ACM, CVPR, ICLR, NeurIPS, Springer, Resumes. | | Assets | Tab: `Assets` | Figure/image uploads, `.bib` files, supplementary files. | | Projects | Tab: `Projects` | List local projects from IndexedDB storage. | | Outline | Tab: `Outline` | Structural AST navigation (`\section`, `\subsection`, labels). | | Search | Input `Q Search` | Search files, symbols, and citations across project. | | Add Project | Button `+` | Create blank document or trigger ZIP / Git import modal. | | Document Items | Clickable document titles | Switch active Monaco buffer to selected project. | | Sign Out / Auth | `[→ Sign out` | Revoke session or switch from guest to Google sign-in. | | Feedback | `[+] Feedback` | Send error dump/diagnostics to support. | ### Formatting Ribbon (Editor Top) | Element | Macro Injected / Action | |---|---| | Heading Dropdown | Inserts `\section{}`, `\subsection{}`, `\subsubsection{}` | | B (Bold) | Wraps selection in `\textbf{...}` | | I (Italic) | Wraps selection in `\textit{...}` | | Σ (Math) | Wraps selection in `$ ... $` | | Link icon | Wraps selection in `\href{url}{text}` | | @ (Citation) | Opens citation picker / inserts `\cite{key}` | | Image icon | Inserts `\begin{figure}[htbp]...\includegraphics{}...\end{figure}` | | Table icon | Inserts `\begin{table}...\begin{tabular}...\end{tabular}...\end{table}` | | List icon | Inserts `\begin{itemize}\item ...\end{itemize}` | | Font Size `T 13.5px` | Sets editor line-height and font scale. | ### Preview & Output Action Bar (Preview Pane Top-Right) | Element | Action / Outcome | |---|---| | ⚡ (Recompile) | Triggers local BusyTeX WebAssembly build or cloud fallback compiler. | | Share icon | Creates live collaborative link `/c/` with edit tokens. | | Download icon | Exports compiled `.pdf` or complete project `.zip` bundle. | | Cloud / Sync | Commits document state to account storage if authenticated. | --- ## 2. Research-as-a-Service (RaaS) Verification Triggers When performing pre-submission checks, execute against these 4 services: 1. **Paper Review**: Scan for unsupported claims (e.g., unqualified "outperforms all baselines"), missing recent literature (last 2 years), and structural weaknesses. 2. **Literature Scan**: Query Semantic Scholar / arXiv for the 20–30 closest papers, map differences, identify research delta, and generate `.bib`. 3. **Submission Readiness**: Validate compliance against target venue requirements: - Margins, column count (1 vs 2 column). - Strict page limit enforcement. - Required sections (Ethical Considerations, Reproducibility Statement, Limitations). 4. **Citation & Reference Audit**: - Check every `\cite{key}` exists in `.bib`. - Verify DOIs, authors, publication year against CrossRef/Semantic Scholar. - Remove hallucinated citations or unresolved `[?]` references. --- ## 3. Lifecycle Execution Loop (Drafting → Rendering → Export) ``` [Drafting] ├─ Inspect outline and preamble in Monaco buffer. ├─ Generate/modify content via unified diffs. └─ Dispatch PatchReviewBar: ├─ Accept: Commit to buffer & update IndexedDB. ├─ Reject: Discard draft. └─ Edit: Open diff comparison. [Rendering & Diagnostics] ├─ Trigger Recompile (⚡). ├─ Poll compileResult: │ ├─ Success (exit code 0): Canvas updates with fresh PDF pages. │ └─ Failure (exit code != 0): Parse engine log: │ ├─ Missing .sty/.cls -> Suggest compatible alternative or upload asset. │ ├─ Undefined control sequence -> Fix macro syntax. │ └─ Package clash -> Adjust \usepackage load order in preamble. [Export & Collaboration] ├─ Share: Generate /c/ URL for multi-author live review. └─ Export: Produce final PDF or ZIP archive of all LaTeX sources + assets. ``` --- ## 4. Operational Invariants for AI Agents 1. **Non-Destructive Editing**: Always submit edits through the `PatchReviewBar` interface so human review can intervene. 2. **No Web Page Injection**: Output clean LaTeX syntax only. Never inject Markdown, backticks, or conversational text inside `.tex` buffers. 3. **Preamble Protection**: Do not remove `\documentclass`, geometry definitions, or existing packages unless resolving an explicit package conflict from the compiler log.