MathLive in Editor Mode

by MizarZh
5
4
3
2
1
Score: 57/100

Description

Category: Note Enhancements

The MathLive in Editor Mode plugin integrates MathLive's equation input functionality directly into Obsidian's editor mode. Users can toggle MathLive display modes (global, block, or inline) to edit mathematical expressions interactively. It supports macros, shortcuts, and keybindings to streamline workflows. This plugin is designed to enhance the experience of editing LaTeX equations within Obsidian, offering more flexibility compared to the default MathJax support.

Reviews

No reviews yet.

Stats

11
stars
2,965
downloads
2
forks
793
days
16
days
16
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
8
total issues
2
open issues
6
closed issues
36
commits

Latest Version

17 days ago

Changelog

Features

  • Added support for dismissing MathLive menus by clicking outside them, including menus rendered inside Shadow DOM.

Bug Fixes

  • Fixed MathLive fields disconnecting during menu callbacks, which could cause menu actions to fail.
  • Fixed outside-click dismissal interfering with MathLive menu item clicks.

README file from

Github

MathLive in Editor Mode

MathLive input in obsidian editor mode.

Features

  • Basic input function
  • Toggle mathlive display (global, block or inline)
  • Macro (sort of), shortcuts and keybindings support
  • Switch between mathlive and builtin mathjax
  • Place inline MathLive before or after the source equation
  • Different display modes

Usage

example.gif

Edit the equation in mathlive block below the latex display block.

It is also possible to assign a hotkey to toggle the display of mathlive block.

Macro settings

When the MathLive macros setting is set, the new command is available in MathLive widgets but not in builtin mathjax block due to some designs of mathjax.

If you want the new command to also show up in builtin mathjax block, you can use the copy button in MathLive macros to copy latex \newcommand command, then paste it in mathjax block in every page or use a plugin to preload those new commands.

Bugfix TODO

  • Input issue in tablet/phone
  • Keep focus and immediate MathJax refresh with the inline MathLive field on the right. The current implementation is experimental and depends on internal editor behavior described below.

The Inline MathLive position setting selects Left or Right. Left is the default for compatibility and uses the normal CodeMirror update path. Right enables the experimental focus-preservation path.

Non-public APIs

The plugin currently uses two groups of members that are absent from their public API declarations:

  • For right-side inline widgets and block widgets whose following cursor shares the decoration position, src/mathlive-input-sync.ts writes CodeMirror's private EditorView.inputState.composing property while MathLive is focused and around its transactions. Public CodeMirror exposes the read-only EditorView.composing getter, but does not expose inputState or a setter. Access is feature-detected; blur restores the focus-lifetime value, and each transaction also restores its previous value in finally.
  • src/setting.ts uses Obsidian settings internals to open and filter the Hotkeys tab: app.setting, openTabById(), activeTab, activeTab.headerComponent.components, and activeTab.updateHotkeyVisibility(). These members are absent from the official Obsidian API. The positional component lookup is especially fragile.

No non-public MathLive method is currently called. window.mathVirtualKeyboard, Mathfield methods/events, Obsidian renderMath()/finishRenderMath(), and Obsidian's typed global DOM/string helpers are public APIs. DOM queries, CSS selectors, shadow-DOM access, and DOM mutation are implementation techniques rather than non-public method calls, so they are not classified as non-public APIs here.

After updating Obsidian or CodeMirror, manually verify continuous inline input, same-line block trailing-text navigation, focus retention, MathLive menu selection/dismissal, immediate source/MathJax updates, and the Set hotkey button. pnpm build cannot detect private-member changes.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Completr
5 years ago by tth05
Auto-completion plugin for the obsidian editor.
Desmos
4 years ago by Nigecat
Embed graphs directly into your obsidian notes
Latex Suite
4 years ago by artisticat1
Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
TikZJax
4 years ago by artisticat1
Render LaTeX and TikZ diagrams in your notes
Daily Notes Editor
4 years ago by boninall
A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.
Obsidian asciimath
4 years ago by widcardw
Asciimath support for Obsidian (based on asciimath-parser)
Numerals
4 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
Kill and Yank
3 years ago by INOUE Takuya
Obsidian plugin to enable kill and yank in editor
LaTeX Algorithms
3 years ago by SamZhang02
A simple plugin for writing Algorithms and pseudocodes in Obsidian.md
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
Pseudocode
3 years ago by Yaotian Liu
An obsidian plugin that helps to render a LaTeX-style pseudocode inside a code block.
Latex Matrices
3 years ago by Daniele Susino
An obsidian plugin to create latex matrices.
MathLive
3 years ago by Dan Zilberman
The must-have plugin for math in Obsidian
Typst Renderer
3 years ago by fenjalien
Renders typst code blocks in Obsidian into images using Typst through the power of WASM!
No more flickering inline math
3 years ago by Ryota Ushio
No longer disturbed by flickering inline math in Obsidian.
Calctex
3 years ago by Mike
An Obsidian plugin for automatic calculation of LaTeX formulas.
Image2LaTEX
3 years ago by Hugo Persson
This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it
Editor Autofocus
3 years ago by Mgussekloo
Latex OCR
3 years ago by Lucas Van Mol
Generate LaTeX equations from images in your clipboard or vault
LaTeX-OCR
3 years ago by Jack Barker
Font Size Adjuster
2 years ago by Ryota Ushio
An Obsidian.md plugin to adjust font size via commands.
Mathematica Plot
2 years ago by Marcos Nicolau
Insert functions on Obsidian using Wolfram Mathematica!
Wypst
2 years ago by 0xpapercut
High quality rendering of Typst in Obsidian, powered by wypst.
SwiftLaTeX Render
2 years ago by gboyd068
Plot Vectors and Graphs
2 years ago by Nicole Tan YiTong
Obsidian Plugin to generate graphs given the function.
Math Indicator Changer
2 years ago by Ori Replication
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
Better Word Count
6 years ago by Luke Leppan
Counts the words of selected text in the editor.
Latex Environments
6 years ago by Zach Raines
Quickly insert and change latex environments within math blocks in Obsidian.
Typewriter Scroll
6 years ago by death_au
Typewriter Scroll Obsidian Plugin
Emoji Toolbar
6 years ago by oliveryh
An Obsidian plugin to quickly add emojis into your notes
Export To TeX
6 years ago by Zach Raines
export obsidian markdown files in a format that can be pasted into a TeX file
Extended MathJax
6 years ago by Xavier Denis & Ng Wei En
Relative Line Numbers
6 years ago by Nadav Spiegelman
Min3ditorHotkeys
6 years ago by Davor Sauer
Obsidian plugin adding minimal editor hotkeys
Image in Editor
5 years ago by Ozan Tellioglu
This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
Quick LaTeX
5 years ago by joeyuping
Meld Calc
5 years ago by meld-cp
Copy as LaTeX
5 years ago by mo-seph
Quick plugin to be able to copy/paste from Obsidian/Markdown into a Latex document
Auto Split
5 years ago by James Sartelle
Open notes with side-by-side editor & preview
CookLang Editor
5 years ago by death_au/cooklang
Edit and display Cooklang recipes in Obsidian
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
Transfer LaTeX from GPT
2 years ago by Xixia
Latex Exporter
2 years ago by Matthew S. Scott
IMSwitch in Math Block
a year ago by XXM
MathType
a year ago by slateblua
Type math faster
Project Euler Stats
a year ago by Artem Korsakov
Get statistics from Project Euler.
LaTeX Math
a year ago by Zarstensen
Integrated CAS (via. Sympy) plugin for Obsidian, with a LaTeX focused workflow.
LaTeX autocomplete
8 months ago by Yanis Gerst
Quick Matrix
8 months ago by Charlie Flowe
Plugin for Obsidian.md that allows for faster interactions with matrices in LaTeX
LaTeX Panel Helper
8 months ago by Luster
A powerful and convenient LaTeX symbol panel for Obsidian to enhance your mathematical and scientific note-taking efficiency.
Typst Mate
6 months ago by azyarashi
Render math expressions with Typst instead of MathJax in Obsidian.
Source Mode Styling
6 months ago by Chris Howard
Obsidian plugin. Provides a customisable raw look in source mode using a monospace font to clearly differentiate from Live Preview.
Auto Math
4 months ago by Vladislav Sorokin
Auto-expands LaTeX snippets. External rules with live reload, Custom Rules Editor, and default math pack.
Markdown Cleaner
3 months ago by gao-qian-long
This plugin has not been manually reviewed by Obsidian staff. Clean Markdown syntax and automatically convert LaTeX to a compatible format.