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
3,144
downloads
2
forks
823
days
46
days
47
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
8
total issues
2
open issues
6
closed issues
57
commits

Latest Version

2 months 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.
Better Word Count
6 years ago by Luke Leppan
Counts the words of selected text in the editor.
Latex Suite
4 years ago by artisticat1
Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
Emoji Toolbar
6 years ago by oliveryh
An Obsidian plugin to quickly add emojis into your notes
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
Typewriter Scroll
6 years ago by death_au
Typewriter Scroll Obsidian Plugin
Relative Line Numbers
6 years ago by Nadav Spiegelman
Completr
5 years ago by tth05
Auto-completion plugin for the obsidian editor.
Numerals
4 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
Extended MathJax
6 years ago by Xavier Denis & Ng Wei En
TikZJax
4 years ago by artisticat1
Render LaTeX and TikZ diagrams in your notes
draw.io
3 months ago by somesanity
A plugin for Obsidian that integrates the draw.io editor into Obsidian.
Math+
3 months ago by ocapraro
This is an Obsidian plugin for taking math notes using Excalidraw.
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.
MathLive
3 years ago by Dan Zilberman
The must-have plugin for math in Obsidian
Latex Environments
6 years ago by Zach Raines
Quickly insert and change latex environments within math blocks in Obsidian.
Desmos
4 years ago by Nigecat
Embed graphs directly into your obsidian notes
Excalidraw Extras
3 months ago by zsviczian
Companion Obsidian.md plugin hosting extra add-on optional features for the main Excalidraw-Obsidian plugin
Helix Keybindings
3 months ago by obsidian-helix
Use Helix keybindings inside Obsidian.md
Pseudocode
3 years ago by Yaotian Liu
An obsidian plugin that helps to render a LaTeX-style pseudocode inside a code block.
Typst Mate
7 months ago by azyarashi
Render math expressions with Typst instead of MathJax in Obsidian.
CookLang Editor
5 years ago by death_au/cooklang
Edit and display Cooklang recipes in Obsidian
MP Publisher
2 months ago by joeytoday
自定义主题预览,并发布到公众号草稿箱。
Font Size Adjuster
3 years ago by Ryota Ushio
An Obsidian.md plugin to adjust font size via commands.
Latex OCR
3 years ago by Lucas Van Mol
Generate LaTeX equations from images in your clipboard or vault
Meld Calc
5 years ago by meld-cp
Typst Renderer
3 years ago by fenjalien
Renders typst code blocks in Obsidian into images using Typst through the power of WASM!
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
Export To TeX
6 years ago by Zach Raines
export obsidian markdown files in a format that can be pasted into a TeX file
Calctex
3 years ago by Mike
An Obsidian plugin for automatic calculation of LaTeX formulas.
Obsidian asciimath
4 years ago by widcardw
Asciimath support for Obsidian (based on asciimath-parser)
No more flickering inline math
3 years ago by Ryota Ushio
No longer disturbed by flickering inline math in Obsidian.
LaTeX Math
a year ago by Zarstensen
Integrated CAS (via. Sympy) plugin for Obsidian, with a LaTeX focused workflow.
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
LaTeX Algorithms
4 years ago by SamZhang02
A simple plugin for writing Algorithms and pseudocodes in Obsidian.md
SwiftLaTeX Render
2 years ago by gboyd068
Min3ditorHotkeys
6 years ago by Davor Sauer
Obsidian plugin adding minimal editor hotkeys
Latex Matrices
3 years ago by Daniele Susino
An obsidian plugin to create latex matrices.
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
Wypst
3 years ago by 0xpapercut
High quality rendering of Typst in Obsidian, powered by wypst.
Kill and Yank
4 years ago by INOUE Takuya
Obsidian plugin to enable kill and yank in editor
Latex Exporter
2 years ago by Matthew S. Scott
Mathematica Plot
3 years ago by Marcos Nicolau
Insert functions on Obsidian using Wolfram Mathematica!
Math Indicator Changer
2 years ago by Ori Replication
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
Transfer LaTeX from GPT
2 years ago by Xixia
LaTeX-OCR
3 years ago by Jack Barker
Editor Autofocus
3 years ago by Mgussekloo
LaTeX Panel Helper
9 months ago by Luster
A powerful and convenient LaTeX symbol panel for Obsidian to enhance your mathematical and scientific note-taking efficiency.
MathType
a year ago by slateblua
Math typing plugin for Obsidian
Plot Vectors and Graphs
2 years ago by Nicole Tan YiTong
Obsidian Plugin to generate graphs given the function.
Markdown Cleaner
4 months ago by gao-qian-long
Obsidian格式化markdown插件
Composition Mode
16 days ago by kazys varnelis
Composition-mode-obsidian-plugin
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
Source Mode Styling
7 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.
LaTeX autocomplete
9 months ago by Yanis Gerst
Power Editor
25 days ago by Power Plugins
Format any note from a toolbar, selection bubble, or slash menu: WYSIWYG editing, block drag handles, image resizing, dictation, and AI edits, all staying plain Markdown.
Auto Math
5 months ago by Vladislav Sorokin
Auto-expand LaTeX math snippets in Obsidian — write equations faster.
IMSwitch in Math Block
a year ago by XXM
Quick Matrix
9 months ago by Charlie Flowe
Plugin for Obsidian.md that allows for faster interactions with matrices in LaTeX
Excalidraw Math Plotter
16 days ago by ahmeddawoud3
Plot mathematical function graphs directly onto Excalidraw canvases.
Project Euler Stats
a year ago by Artem Korsakov
Get statistics from Project Euler.
Inline TikZ
18 days ago by Lachlan Harris
Render seamless Tikz, CircuiTikz & other PGFPlots LaTeX diagrams directly in your notes.