Skip to content

ergs0204/LatexInNotebooklm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask DeepWiki

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:

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: Without LaTeX rendering

With LaTeX rendering enabled: With LaTeX rendering

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

About

Compatibility userscript for rendering LaTeX in Google NotebookLM with KaTeX

Topics

Resources

License

Contributing

Security policy

Stars

198 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors