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

12
stars
3,324
downloads
2
forks
852
days
76
days
76
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.
Latex Suite
4 years ago by artisticat1
Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
Better Word Count
6 years ago by Luke Leppan
Counts the words of selected text in the editor.
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
TikZJax
4 years ago by artisticat1
Render LaTeX and TikZ diagrams in your notes
Extended MathJax
6 years ago by Xavier Denis & Ng Wei En
draw.io
4 months ago by somesanity
A plugin for Obsidian that integrates the draw.io editor into Obsidian.
Math+
4 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.
Excalidraw Extras
4 months ago by zsviczian
Companion Obsidian.md plugin hosting extra add-on optional features for the main Excalidraw-Obsidian plugin
MathLive
3 years ago by Dan Zilberman
The must-have plugin for math in Obsidian
Desmos
5 years ago by Nigecat
Embed graphs directly into your obsidian notes
Latex Environments
6 years ago by Zach Raines
Quickly insert and change latex environments within math blocks in Obsidian.
Helix Keybindings
4 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.
MP Publisher
3 months ago by joeytoday
自定义主题预览,并发布到公众号草稿箱。
Typst Mate
8 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
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
Typst Renderer
3 years ago by fenjalien
Renders typst code blocks in Obsidian into images using Typst through the power of WASM!
Meld Calc
5 years ago by meld-cp
Auto Split
5 years ago by James Sartelle
Open notes with side-by-side editor & preview
Copy as LaTeX
5 years ago by mo-seph
Quick plugin to be able to copy/paste from Obsidian/Markdown into a Latex document
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.
No more flickering inline math
3 years ago by Ryota Ushio
No longer disturbed by flickering inline math in Obsidian.
Obsidian asciimath
4 years ago by widcardw
Asciimath support for Obsidian (based on asciimath-parser)
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
3 years ago by gboyd068
Latex Matrices
3 years ago by Daniele Susino
An obsidian plugin to create latex matrices.
Min3ditorHotkeys
6 years ago by Davor Sauer
Obsidian plugin adding minimal editor hotkeys
LaTeX to unicode converter
4 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.
Latex Exporter
2 years ago by Matthew S. Scott
Kill and Yank
4 years ago by INOUE Takuya
Obsidian plugin to enable kill and yank in editor
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
Math Indicator Changer
2 years ago by Ori Replication
Mathematica Plot
3 years ago by Marcos Nicolau
Insert functions on Obsidian using Wolfram Mathematica!
Transfer LaTeX from GPT
2 years ago by Xixia
Composition Mode
a month ago by kazys varnelis
Composition-mode-obsidian-plugin
LaTeX-OCR
3 years ago by Jack Barker
Editor Autofocus
3 years ago by Mgussekloo
LaTeX Panel Helper
10 months ago by Luster
A powerful and convenient LaTeX symbol panel for Obsidian to enhance your mathematical and scientific note-taking efficiency.
MathType
2 years 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.
Power Editor
2 months 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.
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
Auto Math
6 months ago by Vladislav Sorokin
Auto-expand LaTeX math snippets in Obsidian — write equations faster.
Source Mode Styling
8 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
10 months ago by Yanis Gerst
IMSwitch in Math Block
2 years ago by XXM
Excalidraw Math Plotter
a month ago by ahmeddawoud3
Plot mathematical function graphs directly onto Excalidraw canvases.
Quick Matrix
10 months ago by Charlie Flowe
Plugin for Obsidian.md that allows for faster interactions with matrices in LaTeX
Inline TikZ
2 months ago by Lachlan Harris
Render seamless Tikz, CircuiTikz & other PGFPlots LaTeX diagrams directly in your notes.
Project Euler Stats
a year ago by Artem Korsakov
Get statistics from Project Euler.
Markdown Cleaner
5 months ago by gao-qian-long
Obsidian格式化markdown插件