Better MathJax

by GreasyCat
5
4
3
2
1
Score: 68/100

Description

Category: Note Enhancements

The Better MathJax plugin enhances the MathJax experience in Obsidian by introducing autocompletion and convenient navigation for mathematical expressions. It detects $ and $$ blocks to provide inline MathJax rendering and offers a helper modal for reference and editing shortcuts. Users can quickly navigate placeholders and configure settings for a tailored workflow. This plugin is ideal for users who frequently work with mathematical notations, enabling efficient and seamless editing with customizable hotkeys and features designed for precision and speed.

Reviews

No reviews yet.

Stats

18
stars
11,685
downloads
2
forks
1,253
days
10
days
10
days
4
total PRs
0
open PRs
3
closed PRs
1
merged PRs
4
total issues
0
open issues
4
closed issues
16
commits

Latest Version

11 days ago

Changelog

Suggestions without a backslash

In math, the first letters of any command now open the suggestion list. Type frac and accept \frac: the plugin replaces frac with \frac{@1@}{@2@}. Before, this worked only for environments such as pmat. The list shows only names that start with what you typed, and it opens after two letters. To get suggestions only after a backslash, turn on Require a backslash.

Macros from the note

If a note defines macros in its math, the plugin suggests them in that note, with a note badge and a preview. The plugin reads \newcommand, \renewcommand, \providecommand, \def, \let, \DeclareMathOperator and \newenvironment. A snippet has a field for each argument that you must give. To stop these suggestions, turn off Suggest macros from the note.

Tab stops

In math, Tab moves to the next stop in this order:

  1. Past a closing bracket that the plugin or Obsidian added for you, such as the brace after _ or ^.
  2. The next snippet field.
  3. The next @n@ marker in the same math block.
  4. Past the next ), ] or } on the line.

Shift+Tab goes back in the same order. When Tab has no stop, it works as usual. The placeholder commands use the same order.

Math without indentation

A new setting, Indent math, is on by default. When you turn it off, Tab and Enter do not indent in math, and snippets and the formatter add no indentation. Blockquote, callout and list prefixes stay.

All other settings stay the same.

README file from

Github

Better MathJax for Obsidian

Better MathJax suggests MathJax commands and environments while you type math in Obsidian. You can change any built-in symbol and add your own.

Features

For all features, with screenshots, see Features.

  • Suggestions in math. Type a command name in $…$ or $$…$$ to see matching symbols with rendered previews. You do not have to type the backslash: frac suggests \frac, and pmat suggests a full pmatrix block.
  • Snippets with fields. Accept \frac to insert \frac{@1@}{@2@}. Press Tab to go to the next field.
  • Tab stops. In math, Tab also moves past closing brackets. It goes first past the brackets that the plugin or Obsidian added for you. Shift+Tab moves back.
  • Macros from the note. Macros that a note defines with \newcommand, \DeclareMathOperator and similar commands become suggestions in that note.
  • Auto-braces. Type _ or ^ in math to get _{} or ^{}.
  • Formatting. Indent environments, align & columns and remove extra spaces. The math renders the same as before.
  • Math without indentation. One setting stops all indentation in math, from Tab, Enter, snippets and the formatter.
  • Symbol reference. See the description, examples and related symbols of a command.
  • Symbol browser. Search about 1,260 built-in symbols. Customize or disable any of them.
  • Custom symbols. Add your own symbols in a form with a live preview. Keep them in the plugin settings, or in a note that you or an AI agent can edit.
  • Backups. Before a change replaces or removes a symbol, the plugin saves a backup that you can restore.

Setup

  1. Install Better MathJax from Settings → Community plugins and turn it on.
  2. Open the plugin settings. The hotkey guide at the top shows the commands that have no hotkey.
  3. Assign hotkeys in Settings → Hotkeys. The plugin does not set hotkeys, but Tab, Enter and the arrow keys work without them.

Upgrading from 1.x

Your settings and hotkeys stay the same, with one exception. These three commands have new IDs, so you must assign their hotkeys again:

  • Select next placeholder
  • Select previous placeholder
  • Show symbol reference (before 2.0: Show mathjax helper on current selection)

The hotkey guide in the plugin settings shows the commands that have no hotkey.

The first time 2.0 starts, it imports the symbols from your old symbol note. The plugin finds the note from your 1.x settings, or uses symbols.md. A message tells you how many symbols it found. The plugin does not change the note, so you can send it to the trash after the import. To import a note in the old format later, use Import from note in the settings or run Import custom symbols from note.

Version 2.0 also makes these changes:

  • It removes the fuzzy-search setting. One ranker puts an exact match first, then names that start with the query, then names that contain it. Letter case counts, so \delta and \Delta are different suggestions.
  • It removes the debug-log setting.
  • The subscript and superscript option now works while you type. Thus the Insert subscript/superscript commands are gone.

Development

For the build commands, the code layout and the release steps, see Development.

Credits

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Various Complements
6 years ago by tadashi-aikawa
This plugin for Obsidian enables you complete words like the auto-completion of IDE.
YOLO
10 months ago by Lapis0x0
Agent-native AI assistant — chat, write, whiteboard, learning, all in one.
Dragger
5 months ago by ariestar
An Obsidian plugin for dragging and rearranging any block.
Extended MathJax
6 years ago by Xavier Denis & Ng Wei En
Markdown Tabs
4 months ago by xhuajin
Create and render a Tabs component in your notes.
Pixel Perfect Image
2 years ago by Johan Sanneblad
Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.
Sectionals
2 months ago by Aaron Bell
Edit Markdown by structure
Copilot auto completion
3 years ago by Jordi Smit
Side-Notes
3 months ago by Fried Fishsticks
Tufte-style sidenotes for Obsidian
Spellcheck Toggler
3 years ago by Julian Szachowicz
A plugin for Obsidian which gives you more control over the red-underline spellcheck behaviour.
Auto Correct Capitals Misspellings
2 years ago by Ummel
This plugin automatically corrects words where the first two letters are capitalized and the rest are lower case.
Write Good
2 years ago by Mark Hesketh
Obsidian plugin to help improve writing style
Nova
9 months ago by Shawn Duggan
Nova - AI plugin for Obsidian that edits your documents directly through natural conversation. Stop copying from chat, start collaborating with AI.
Hemingway Mode
3 years ago by Joaquín Bernal
Proofreader
2 years ago by pseudometa (aka Chris Grieser)
AI-based proofreading and stylistic improvements for your writing. Changes are inserted as suggestions directly in the editor, similar to suggested changes in word processing apps.
Edit Link Alias
10 months ago by mnaoumov
Obsidian Plugin that adds edit link alias command.
Rich Text Editor Shortcuts
2 years ago by Joshua Wootonn
Create and toggle checkboxes, paste links wrapping your current selection, and toggle underline without leaving the keyboard.
Table Line Break Mobile
9 months ago by marcelflymark
Obsidian plugin: Insert a new line break inside a table cell using the <br> HTML element
Dataview Autocompletion
2 years ago by Daniel Bauer
Expand Selection
7 months ago by Alex Tait
Obsidian plugin to expand your editor selection to lines, sections (recursive), or the entire note
AI Revisionist
2 years ago by Synaptic Labs
Quick Nav
2 years ago by exoticknight
Enhance your editing experience by unleashing the hidden power of shortcuts.
Base Source Editor
a month ago by fronglemog
Edit the YAML source of a Base without leaving Obsidian.
Mode manager
2 years ago by dk949
Better management of reading/editing modes in obsidian
Type Chinese Like English
2 years ago by Hwenyi
在 Obsidian 中像是输入英文一样输入中文和 LaTeX
Duplicate line
2 years ago by Marcin Sztolcman
Plugin for Obsidian: duplicate current line, or selection.
Variant Editor
a year ago by Kunal Jain
Obsidian plugin to create variants
Editing Mode Hotkey
2 years ago by Signynt
Obsidian plugin to change the default editing mode (between Live Preview and Source) using a command or hotkey
Regex Line Filter
a year ago by 64MM4-KN1F3
A note filtering plugin for Obsidian
Select word
2 years ago by Connor Espino
RTL Math Text
a year ago by orelby
A plugin for Obsidian that adds support for right-to-left text in math expressions
Simple Editorial
2 months ago by Beppe
A minimal editorial markup plugin for writers using Obsidian.