Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TeXRANew to Visual Studio Code? Get it now.
TeXRA

TeXRA

TeXRA.ai

|
217 installs
| (2) | Free
TeXRA: Your LLM-powered 24/7 LaTeX Research Assistant.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TeXRA: Your Favourite and Intelligent TeXRA for Academic Research

TeXRA is a powerful VS Code extension designed to help frustrated academics with their writing and research by leveraging the power of large language models (LLMs). It provides a seamless AI-assisted writing experience through an intuitive interface integrated directly into VS Code.

See texra.ai. For detailed guides and usage instructions, visit the Full Documentation Site.

UI Features

  • Enhanced file selection interface with improved multiple file selection and management
  • Streamlined agent execution process with clearer options and feedback
  • Improved error handling and user notifications for a smoother experience
  • Automatic adaptation to VS Code's light and dark themes, ensuring a consistent and comfortable viewing experience
  • Integrated LaTeX support with intelligent document processing
  • Built-in version control features including LaTeX diff functionality
  • Advanced PDF and image handling capabilities:
    • PDF page counting and conversion to images
    • Image encoding and processing
    • Support for various image formats (PNG, JPG, PDF,etc.)
  • LaTeX-specific tools:
    • Automatic document indentation
    • Word and element counting (text, headers, captions, math)
    • Smart merging of included files
  • YAML and XML configuration support
  • Git integration for version control
  • ProgressBoard view for detailed logs and re-running tasks
  • Multiple output support and intelligent merge tools

Architecture

TeXRA is built as a TypeScript-based VS Code extension that provides:

  • Multiple AI agent support: correct, polish, draw, adapt, and more
  • LaTeX document processing and enhancement
  • Automatic figure and TikZ extraction
  • Version control integration (latexdiff functionality)
  • Customizable prompts and settings
  • Direct integration with OpenAI, Anthropic, Google, DeepSeek, Moonshot (Kimi), and DashScope (Qwen) APIs with optional OpenRouter routing

Installation Guide

After installing the extension, you can configure your API keys in VS Code settings:

  • OpenAI API key
  • Anthropic API key
  • Gemini API key
  • Other (xAI, deepseek, OpenRouter, Qwen, Kimi, etc.) API keys

Required Dependencies

TeXRA requires several system dependencies for full functionality. See the Installation Guide in the full documentation for detailed setup instructions for your operating system.

LaTeX Distribution

  • Install a LaTeX distribution:
    • Windows:
      • MiKTeX (download) or
      • TeX Live (download)
    • macOS: MacTeX (download) or via homebrew (brew install texlive)
    • Linux: TeX Live (sudo apt-get install texlive-full for Ubuntu)

Perl

  • Required for LaTeX tools and document processing
  • Windows: Included with MiKTeX
  • macOS: Pre-installed
  • Linux: Install via package manager (sudo apt-get install perl for Ubuntu)

Optionally, you can also install GraphicsMagick/ImageMagick & Ghostscript for the fallback of the pdf to image conversion.

See the Installation Guide for setup details if needed.

After installing these dependencies, ensure they are accessible from the command line by adding them to your system's PATH if necessary. When VS Code is started from a system menu rather than a terminal, it may not inherit your full shell environment. TeXRA searches common locations for tools, including Homebrew, Linuxbrew, TeX Live and MiKTeX bins. Newer TeX Live installations are preferred when multiple versions are found. Launching VS Code from a configured terminal is still the most reliable approach.

Basic Usage

  1. Open a LaTeX or text file in VS Code
  2. Access the TeXRA sidebar (look for the logo icon in the Activity Bar)
  3. Select your desired agent (e.g., polish, correct, draw)
  4. Choose your input file(s) and any additional options
  5. (Optional) Select auxiliary files or figures
  6. Choose your preferred AI model
  7. Write specific instructions for the agent (vague requests like "make it better" can lead to unpredictable results!).
  8. Click "Execute" to run the AI-assisted agent
  9. Review the output in the newly created file

Although many models are supported, we recommend using Anthropic sonnet*/opus or O1/O3-series or Gemini 2 Flash/Thinking models for the best experience. You can also experiment with GitHub Copilot models via the new VS Code Language Model API.

Available AI Agents

TeXRA provides agents optimized for various academic tasks. Some core examples include:

  • correct: Fix typos, grammatical errors, and LaTeX syntax issues.
  • polish: Improve writing style, clarity, and flow.
  • draw: Create or enhance TikZ figures from descriptions.
  • paper2slide: Convert research papers into presentation slides.
  • ocr: Convert images or PDF documents to LaTeX code.
  • transcribe_audio: Transcribe audio files to transcript.

See the Built-in Agents Guide for the full default list and detailed descriptions.

This list can also be customized in the VS Code settings.

Customization

TeXRA offers various customization options through VS Code settings:

  • Configure available AI agents and their parameters
  • Adjust included directories and file types
  • Fine-tune prompts for specific agents
  • Customize model parameters like temperature and max tokens
  • Set up output directories and file handling preferences

Advanced Features

  • Multi-file processing for complex projects
  • Automatic TikZ figure extraction and compilation
  • Automatic compilation of input and output LaTeX files to PDFs
  • LaTeX diff functionality for version comparison
  • Git integration for accessing recent commits
  • Intelligent document merging with conflict resolution
  • Custom prompt templates for specialized tasks
  • PDF processing capabilities:
    • Convert PDFs to high-quality images
  • LaTeX document analysis:
    • Word count statistics
  • File organization tools:
    • Automatic build directory management
    • Smart file backup and versioning
    • Cross-platform path handling

Support & Feedback

Encountering issues or have suggestions? Please report them on our GitHub Issues page.

License

© [TeXRA Team] [2025]. All rights reserved.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft