/obsidian-equation-citator

Elegantly cite and preview equations with clean, auto-numbered references

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Obsidian Equation Citator

Release Stars License
First Release : Aug 3, 2025 Last Updated : Sep 15, 2025

5 mins Quick Start : see Full Tutorial & Guidelines

Complete Features & Updates : see Changelog

Video Tutorial: I'll make a video tutorial if this plugin has 5000 downloads or this repo gets 50 stars.

How to use this plugin?

You can download following 3 files in the latest release page :

main.js
manifest.json
style.css

and put them in .obsidian/plugins/equation-citator folder under your obsidian vault.

Also after this plugin is published in obsidian, you can download it from community plugins.

Introduction & Simple Examples

Obsidian-Equation-Citator is a plugin that provides a simple and elegant way to write in-line equation citation cite equations in obsidian just like \ref{} label in latex.

Here is a simple examples to show how it works.

$$ E = mc^2 \tag{A} $$

This is an equation $\ref{eq:A}$.

this will be rendered as follows (support both light and dark theme) :

most-simple-equation

  • Why this plugin?

    • While the existing plugin Math Booster (or LaTeX-like Theorem & Equation Referencer now) also provides equation citation in obsidian (since it's based on latex, it can't do cross-file citation and outline-based equation autonumber). Equation citator is focused on providing an easy-to-use, light-weight but more powerful, elegant, and full customizable citation experience.
  • This plugin would be very helpful if you :

    • have habit of adding \tag{} in equation blocks, and want to have a elegant and powerful way to cite them.
    • don't want to add ugly block reference ^ in your equation blocks for reference, and make your citation more organized and clean.

Warning

You should follow some very simple rules to make this plugin work properly, please check Full Tutorial & Guidelines for details.

If an issue occurs because of you are not following such rules, such issue may be closed without being fixed.

Main Features

1. 🚀 Make citations, Preview, Easy jump and Rename Tags

Use simple inline $\ref{eq:A}$ format to cite equation block with \tag{A} and preview it just as links in obsidian.

Ctrl + hover to preview the equation of following tag (just hover when in reading mode). double click to jump to location of equation, or ctrl + double click to open on the right and jump

Select tag (\tag{1.2}) and right click to rename tag, and its citation will be automatically updated.

continuous-cross-file

2. 🔗Cross-file citation, Multi/Consecutive citation

  • Cross-file citation is supported by footnote format. Citing several equations by delimiter , is also supported.

  • Use consecutive format (~) to cite multiple equations.

# for example
$\ref{eq:1^1.3.1~3, 1^2.1.1~2}$
# but we recommend this nested format after version 1.2.2 : 
$\ref{eq:1^{1.3.1~3}, 1^{2.1.1~2}}$ 

continuous-cross-file

3. ✈️ Auto complete citations

Suggest you available equations when adding citations and fill in the equation number in 1-click :

continuous-cross-file

4. ⚡One-click outline-based Equation AutoNumber

Auto number all the equations in by one click on the sidebar icon :

continuous-cross-file

5. 📜PDF export support

Original PDF export in obsidian can fail to render citation, so a command Make markdown copy to export PDF is provided to make markdown for export to pdf correctly.

pdf-export-example

Bugs & Suggestions

Since it's a new plugin, some bugs or issues may still exist. If you encounter any, please provide the following information on the issue page (if this is a feature coming soon, please not comment on the issue page, but wait for the release update) :

  1. A description of the bug or issue, along with steps to reproduce it.
  2. The relevant markdown text that triggers the issue.
  3. Enable debug mode in the settings tab, and provide the console log (Ctrl + Shift + I in Obsidian).

Tip

Since this plugin have cache mechanism for better performance, some problems like delay or no in-time update (like a little delay for citation update) may happens. So you may wait several seconds, or re-open file or restart obsidian to ensure your issue is not just a normal cache-related behavior.

If u have knowledge about plugin development, you can also find which function is causing the bug or issue, provide testing cases or make pull requests to fix the bug or issue.

Also, if u have any suggestion or question for this plugin, feel free to leave it in the issue page.

Note

Contributors and maintainers are always welcome!

I developed this plugin to help my daily work and follow my personal interests. It's totally free, I would be very glad if anyone can fork this repo and help me to maintain this plugin (since I'm busy during school time).

You can contribute to this plugin by simply forking this repo, submitting a PR and describe what you have done (Please test your code carefully before submitting!).

Very appreciate for your contributions!