Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

LaTeX Vault

Giulio MapelliGiulio Mapelli24 downloads

Render LaTeX code blocks (TikZ, pgfplots, matrices, algorithms, code listings, math) to SVG using a local TeX installation (TeX Live/MiKTeX).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

An Obsidian plugin that renders LaTeX code blocks in your vault using a local TeX installation (MiKTeX / TeX Live), producing SVG images: TikZ diagrams, pgfplots, matrices, algorithms, code listings, math — with any installed package, including the ones TikZJax cannot load.

Features

  • Renders latex-vault blocks (plus legacy tikz, tikzcd, pgfplots) to SVG using your local TeX (MiKTeX / TeX Live), in both Reading and Edit mode.
  • Supports any LaTeX package (pgfplots, circuitikz, tikz-cd, forest, nicematrix, algorithmicx, listings, ...), unlike TikZJax.
  • Automatic pdflatex + dvisvgm / latex + dvisvgm fallback, with disk caching.
  • In Edit mode the code stays available behind a closed "Show LaTeX code" toggle.
  • Smart wrapping: bare TikZ commands and pgfplots axes are wrapped in a tikzpicture, while self-contained environments (forest, circuitikz, quantikz, karnaugh-map, bytefield) and non-picture content (matrices, algorithms, code listings, math) are typeset as-is.
  • Optional shell-escape (off by default) for packages that run external tools.

Requirements

  • Obsidian (desktop).
  • A local TeX installation with latex/pdflatex and dvisvgm on your PATH (or configured in the plugin settings):
Platform Recommended TeX Notes
Windows MiKTeX set the latex/dvisvgm binary paths in settings if not on PATH
macOS MacTeX / TeX Live binaries usually in /Library/TeX/texbin
Linux TeX Live (texlive-full) binaries usually in /usr/bin

For the build you also need Node.js.

Installation

From Obsidian Community Plugins (Recommended)

  1. Open Settings → Community plugins → Browse in Obsidian.
  2. Search for LaTeX Vault, click Install, and then Enable.

From Source

  1. Clone the repo and build:
git clone https://github.com/GodJeam/latex-vault.git
cd latex-vault
npm install
npm run build
  1. Copy the generated files into your vault:
<vault>/.obsidian/plugins/latex-vault/
    ├── main.js
    ├── manifest.json
    └── styles.css
  1. In Obsidian: Settings → Community plugins → enable LaTeX Vault.

Usage

Wrap LaTeX code in a ```latex-vault fenced block:

```latex-vault
\begin{tikzpicture}
\draw (0,0) circle (1);
\end{tikzpicture}
```

Blocks are not limited to diagrams: matrices, pseudocode, code listings and formulas work too:

```latex-vault
$\begin{pNiceMatrix} 1 & 2 \\ 3 & 4 \end{pNiceMatrix}$
```

```latex-vault
\begin{algorithmic}
\For{$i = 1$ to $n$}
  \State $s \gets s + a_i$
\EndFor
\end{algorithmic}
```

Preamble and packages

Leading lines with preamble commands (\usepackage, \usetikzlibrary, \newcommand, \lstset, ...) are moved to the preamble. A block containing \documentclass is compiled verbatim; one containing \begin{document} only gets the missing class and tikz.

tikz, amsmath and amssymb are always loaded. These packages are loaded automatically when their environments/commands are detected (unless you load them yourself):

Detected Package
tikzcd tikz-cd
axis (any pgfplots axis), \addplot pgfplots (compat=1.18)
forest / circuitikz / quantikz forest / circuitikz / quantikz
karnaugh-map / bytefield karnaugh-map / bytefield
pNiceMatrix, NiceArray, ... / blockarray nicematrix / blkarray
algorithmic algpseudocode
lstlisting / minted / tcolorbox listings / minted / tcolorbox
\dv, \pdv, \bra, \ket physics
\coloneqq, \mathclap, ... mathtools
\cancel / \SI, \num, ... cancel / siunitx

Floats (algorithm, figure, table) are forced to the [H] placement so they render inside the standalone image; \begin{algorithm} loads algorithm automatically unless you load algorithm2e.

Any other installed package can be loaded with \usepackage in the block or in the Extra preamble setting. A full TeX installation (e.g. texlive-scheme-full) avoids missing-package errors.

minted: recent TeX Live versions run it in restricted mode. If yours does not, enable shell-escape in the settings — only for trusted vaults, since it lets code blocks execute commands.

The latex-vault tag is dedicated to the plugin, so Obsidian's latex syntax highlighting keeps working for code you only want to show. The tikz, tikzcd and ```pgfplots tags still work for existing notes.

In the plugin settings you can configure the engine, binary paths, an extra preamble, shell-escape, and the interface language (English by default, Italian optional). Use the Test button to verify your TeX configuration.

Structure

  • src/ — TypeScript source
  • build/ — build tooling (esbuild config, tsconfig)
  • main.js / manifest.json / styles.css — built plugin files (copy into the vault)

License

GPL-3.0 — see LICENSE.

HealthExcellent
ReviewSatisfactory
About
Render LaTeX code blocks to SVG via your local TeX installation for TikZ, pgfplots, matrices, algorithms, listings and math with any installed package. Operate in Reading and Edit mode with source hidden behind a toggle, apply smart wrapping for TikZ/pgfplots and self-contained environments, and use disk caching.
LaTeXImages
Details
Current version
0.4.0
Last updated
Last week
Created
3 months ago
Updates
1 release
Downloads
24
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
GPL-3.0
Report bugRequest featureReport plugin
Author
Giulio MapelliGiulio Mapelligodjeam
GitHubgodjeam
  1. Community
  2. Plugins
  3. LaTeX
  4. LaTeX Vault

Related plugins

Latex Suite

Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Featured Image

Automatically set a featured image property in your notes based on the first image.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Paste image rename

Rename image after pasting, support name pattern and auto renaming.

Imagine

A comprehensive image management plugin for managing, inserting, resizing, viewing, and batch processing images.

Wechat Converter

将 Markdown 转换为微信公众号排版,并支持一键发送到微信(weixin/wx)公众号(支持自定义 CSS和公众号贴图)、飞书、小红书(rednote)、知乎、微博、CSDN等20+平台。

Tars

Text generation based on tag suggestions, using Claude, OpenAI, Ollama, Kimi, Doubao, Qwen, Zhipu, DeepSeek, QianFan & more.

PlantUML

Generate PlantUML diagrams.