1 Like

Cool thanks, just as a note, even:

$$ x=1 \tag{1}\label{eq1} $$

As seen in $\eqref{eq1}$

isn’t working for me right now.

Huh, well a quick restart of obsidian did the trick.

Edit: well anytime I edit the label or around it it breaks and only a restart solves it.

I remember unpacking obsidian.asar to inspect the MathJax inside. It’s less than 2MB so it cannot be a full MathJax. More powerful MathJax implementation is usually an order of magnitude larger in size.

Auto-numbering aside, Obsidian struggles with complex equations in general. For strange reasons, I get the unrendered display equations with yellow background after a couple of previews of math documents, even though the initial preview is fine. The only way out of it is a relaunch. It’s so exacerbating that I stopped using Obsidian to process any document with display equations.

Obsidian bundles tex-chtml-full. We don’t support currently support equation numbering because the way mathjax works and the way Obsidian works are incompatible. Essentially, mathjax wasn’t designed to be used in an interactive setup.

Hiya WhiteNoise, just wondering if you have any comment about my previous use of \tag and \label then being referenced with eqref only working after a restart/reload until the corresponding block is edited (at which point it breaks). Is this expected behaviour? Or do I need to do a bug report?

1 Like

Unfortunately, that workaround doesn’t work anymore.

1 Like

Seems the label used will not allowed to be reused. My guess is the recompile didn’t clear the cache for that.

An ugly and manual solution: I used \hspace{3em} and added the equation number manually as follows:

$$\Large{\delta_{i}x = logf_{i}x+log\pi_{i}} \hspace{3em}(1)$$