RyotaUshio / obsidian-latex-theorem-equation-referencer

A powerful indexing & referencing system for theorems & equations in your Obsidian vault.
https://ryotaushio.github.io/obsidian-latex-theorem-equation-referencer/
MIT License
177 stars 8 forks source link

Separate numbering for different callout categories #220

Open artemyfmv opened 9 months ago

math-feng commented 9 months ago

How should I use it, please?

artemyfmv commented 9 months ago

@math-feng, you can just use my fork, if you really need this feature.

math-feng commented 9 months ago

https://github.com/artemyfmv/obsidian-latex-theorem-equation-referencer

Is this it? How do I put it to use in Obsidian?

RyotaUshio commented 8 months ago

Hi, I'm sorry for the long silence. Thank you so much for the pull request!

Your current approach works in Live preview, but not in reading view. To make it work in reading view, you need to modify this method as well:

https://github.com/RyotaUshio/obsidian-latex-theorem-equation-referencer/blob/978f8dc28459fb8c96bf5b732c0f0fa301e2eeea/src/index/math-index.ts#L262

Plus, it is desirable to make this behavior optional, i.e. each user should be able to choose whether to number callouts by type.