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 Algorithms

samzhang02samzhang026k downloads

Facilitate writing algorithm blocks in LaTeX.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

A simple plugin for writing Algorithms and pseudocodes in Obsidian.

About

Obsidian is a great notetaking tool, I often find myself opening Obsidian instead of compiling a new .tex document for documents that I do not need to submit, simply due to how easy it is to use. However, Obsidian uses MathJax for its LaTeX functionality, which does not allow for package imports, such as algpseudocode.

I wrote this plugin so that I can easily take notes for my Algorithm and proof-based classes in Obsidian as well.

Usage

This plugin reads previous user inputs and converts them into standard LaTeX algorithm format upon detecting keywords, such as \If, \For, etc.

A great addition to this plugin could be Quick LaTeX for Obsidian and/or VIM keybindings. With these tools, you can achieve quite a fast workflow.

The functionalities of this plugin currently include:

  • Fast indentation with Shift+Tab.
  • Algorithm titles and subtitles.
  • Conditionals (If/ElseIf/Else, Switch cases).
  • For/While loops.
  • Proof keywords.

Currently supported keywords

Titles and Subtitles Conditionals Loops Proofs
\Algorithm \If \For \Theorem
\Input \Elseif \EndFor \Lemma
\Output \Else \While \Corollary
\Ensure \Endif \EndWhile \Definition
\Return \Switch \Break \Remark
\State \Case \Continue \Proof
\Default \QED

Credits

The development of this plugin used the API wrapper from Obsidian.

The idea of this plugin was heavily inspired by Quick LaTeX for Obsidian. (In fact, one of the functions in my code is taken straight from them, simply due to how great it is)

HealthFair
ReviewSatisfactory
About
Convert algorithm and pseudocode keywords into LaTeX algorithm environments inside Obsidian, turning inputs like \If, \For, \Switch into standard algorithm structures. Support titles and subtitles, conditionals, loops, switch/case handling, proof/theorem environments, and smart indentation.
LaTeXAutomationEditing
Details
Current version
1.0.2
Last updated
3 years ago
Created
3 years ago
Updates
3 releases
Downloads
6k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
WTFPL
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
samzhang02samzhang02
github.com/SamZhang02
GitHubsamzhang02
  1. Community
  2. Plugins
  3. LaTeX
  4. LaTeX Algorithms

Related plugins

MetaEdit

Manage your metadata.

Advanced Tables

Improved table navigation, formatting, and manipulation.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Advanced URI

Control everything with URI.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Hot Reload

Automatically reload in-development plugins when their files are changed

Outliner

Work with your lists like in Workflowy or Roam Research.

Templater

Create and use dynamic templates.