Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

LatexInNotebooklm

> 编程语言
Open source

Compatibility userscript for rendering LaTeX in Google NotebookLM with KaTeX

198 stars0 likes4 views
WebsiteGitHub

About

Compatibility userscript for rendering LaTeX in Google NotebookLM with KaTeX

LaTeX in Notebooklm

A Tampermonkey userscript that adds LaTeX rendering capability to Google's Notebooklm using KaTeX. This allows you to write mathematical formulas with standard LaTeX syntax using $formula$ delimiters.

[!NOTE] NotebookLM announced native LaTeX rendering in October 2025. Most users should try the built-in support first. This userscript remains available for older behavior, unsupported contexts, and community experimentation, but it may overlap with or conflict with native rendering as NotebookLM changes.

Features

  • Renders inline LaTeX formulas using $formula$ syntax
  • Automatically processes new content as it's added to the page
  • Uses KaTeX for fast, beautiful math rendering

Installation

  1. Install the Tampermonkey browser extension:
    • Chrome
    • Firefox
    • Edge
    • Safari

[!IMPORTANT]
On some Chromium-based browsers (Chrome, Brave, Vivaldi, Edge, Opera, etc.),
Tampermonkey will not run user scripts unless you explicitly enable:
Manage Extensions > Tampermonkey > Details > Allow User Scripts
Make sure this toggle is ON, otherwise the script will never execute.

  1. Install the script:
    • Recommended: Click here to install via .user.js file
      • This will open the script in Tampermonkey for one-click installation.
    • Manual method:
      • Open the Tampermonkey dashboard
      • Create a new script
      • Copy and paste the entire content of renderLatex.user.js
      • Save the script

Usage

  1. Navigate to https://notebooklm.google.com/
  2. Output with mathematical formulas using LaTeX syntax surrounded by dollar signs
    • Example: $E = mc^2$ will render as a properly formatted equation.

Examples

Without LaTeX rendering:

With LaTeX rendering enabled:

Dependencies

  • KaTeX - The fastest math typesetting library for the web

License

This project is licensed under the MIT License - see the LICENSE file for details.

Third-Party Licenses

This project uses the following third-party libraries:

  • KaTeX - MIT License
    • Copyright (c) 2013-2020 Khan Academy and other contributors
    • Used for rendering LaTeX equations

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptjavascriptkatexlatexmath

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言