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.
- 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
- 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.
- Install the script:
- Recommended: Click here to install via
.user.jsfile- 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
- Recommended: Click here to install via
- Navigate to https://notebooklm.google.com/
- Output with mathematical formulas using LaTeX syntax surrounded by dollar signs
- Example:
$E = mc^2$will render as a properly formatted equation.
- Example:
- KaTeX - The fastest math typesetting library for the web
This project is licensed under the MIT License - see the LICENSE file for details.
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

