LatexInNotebooklm
A tempermonkey for rendering latex in Notebooklm
Install / Use
/learn @ergs0204/LatexInNotebooklmREADME
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.
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
- 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
Usage
- 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:
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
