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
4,075
downloads
2
forks
883
days
106
days
106
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

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