Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Extended MathJax

wei2912wei291254k downloads

Enable additional MathJax packages and adds a global preamble for MathJax.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

This plugin extends the MathJax support in Obsidian with a MathJax preamble file which is loaded at startup. It also enables some additional MathJax extensions (notably mhchem and bussproofs).

The preamble is stored in a preamble.sty file in the root of the vault.

Installation

  1. Install 'Extended MathJax' from the Obsidian community plugin browser or by navigating to this link: obsidian://show-plugin?id=obsidian-latex.
  2. Create a preamble.sty file in the root of your vault using your choice of text editor.
  3. Add your macros to preamble.sty

Changing your preamble

If you make changes to your preamble you will need to run the command "Reload app without saving". This will reload all your Obsidian plugins and your preamble.

Help, my preamble is not read!

There are two common reasons why your preamble is not read:

  1. preamble.sty needs to be present before running "Reload app without saving". If it is not present on startup, the plugin will disable itself and you need to manually enable it again.
  2. Make sure the preamble is indeed named preamble.sty (with the correct file extension .sty).
    • Within Obsidian, check that the preamble matches the top row and not the bottom row: image
    • Check that your file browser does not hide file extensions (e.g. default behaviour in Windows' File Explorer).

Example

Look at examples/stlc for an example of an obsidian vault using a preamble to define custom macros.

70%
HealthGood
ReviewSatisfactory
About
Extend MathJax support by loading a preamble.sty from your vault root and enabling extra MathJax extensions like mhchem and bussproofs. Reload Obsidian after editing the preamble; preamble.sty must exist at startup and be named correctly to be loaded.
LaTeXMath
Details
Current version
0.4.1
Last updated
3 years ago
Created
5 years ago
Updates
5 releases
Downloads
54k
Compatible with
Obsidian 0.12.16+
License
MIT
Report bugRequest featureReport plugin
Author
wei2912wei2912
github.com/wei2912/obsidian-latex
GitHubwei2912
  1. Community
  2. Plugins
  3. LaTeX
  4. Extended MathJax

Related plugins

Quick LaTeX

Simplify and speed up LaTeX math typing.

Typst Mate

Render math expressions with Typst instead of MathJax.

Latex Suite

Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements.

Desmos

Embed Desmos graphs into your notes.

MathLive

Faster and more intuitive MathJax editing using MathLive.

Math+

Take math notes using Excalidraw.

Better Math in Callouts & Blockquotes

Add better Live Preview support for math rendering inside callouts & blockquotes.

LaTeX Math

Evaluate, solve and much more within LaTeX blocks using Sympy.

Matrix

Utility to easily create LaTeX matrices.

Calctex

Calculate LaTeX formulas.