I don’t have enough experience with latex, which means I never learned the proper way to tag and align equations.
I have been using align to write multiple equations in a single block and \tag{#} to tag the equation. In obsidian it renders perfectly fine, and in combination with “latex suite” I am typing fast enough to type all of my notes even in my maths class. You have my deepest gratitude for this. Your program is substantially improving my quality of life.
I am trying to convert a file note to latex to make it a bit more presentable (its an assignment I have to submit).
After converting the markdown file to tex (pandoc -s file.md -o file.tex) I open it in vscode and although it renders the PDF, I get errors that \tag’s are not allowed in align and they are not rendered.
Is there another, “latex-compatible” way to align multiple equations and tag them? (besides breaking up the equations to multiple mathjax sections (I can always align them that way.
I think that when using pandoc from the terminal, the resulting math sections are not changed. Using the pandoc plugin didn’t work for me. It changed too many things.
This is actually invalid LaTeX: You can’t put the align environment inside math mode (\[...\] or $$...$$ ), even though MathJax seems to accept it. Try aligned environment instead and see if it works for you.
Package amsmath Error: Erroneous nesting of equation structures;
(amsmath) trying to recover with `aligned'.
See the amsmath package documentation for explanation.
Type H <return> for immediate help.
...
l.286 \end{align}
As far as I understand, it is already tries to replace align with aligned.
I manually edited that and here is part of the output in vscode
Package amsmath Error: \tag not allowed here.
See the amsmath package documentation for explanation.
Type H <return> for immediate help.
...
l.230 ...+\beta^{t+1}\lambda_{t+1}R_{t+2} = 0 \tag
{2}
It still doesn’t like \tags the way I use them. What other method should I try?