markdown strictly requires all equations to be enclosed in $$ but align environment equations does not require to be enclosed in $$...$$ in LaTeX. If I try to convert a .md file (Conmmand: pandoc test1.md -s -o test1.pdf) containing align environment formula enclosed in $$, I recieve the following error:
! 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.57 \end{align}
pandoc.exe: Error producing PDF
I have raised the issue at adequate platforms tex.SE and pandoc-discuss, but seems like there is no solution to this.
Would it be possible to allow conversion of align environment equation enclosed in $$ to pdf OR any other option which can work.
Kindly let me know if I have not made myself clear.
Thanks
Use the aligned environment, which works inside $$.
+++ pkjkrai66 [Aug 06 16 01:45 ]:
markdown strictly requires all equations to be enclosed in $$ but align
environment equations does not require to be enclosed in $$...$$ in
LaTeX. If I try to convert a .md file (Conmmand: pandoc test1.md -s -o
test1.pdf) containing align environment formula enclosed in $$, I
recieve the following error:
! Package amsmath Error: Erroneous nesting of equation structures;
(amsmath) trying to recover with `aligned'.See the amsmath package documentation for explanation.
Type Hfor immediate help.
...l.57 \end{align}
pandoc.exe: Error producing PDF
I have raised the issue at adequate platforms [1]tex.SE and
[2]pandoc-discuss, but seems like there is no solution to this.Would it be possible to allow conversion of align environment equation
enclosed in $$ to pdf OR any other option which can work.Kindly let me know if I have not made myself clear.
Thanks—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [3]view it on GitHub, or [4]mute the
thread.References
- https://tex.stackexchange.com/questions/322038/error-with-equation-conversion-while-converting-markdown-to-pdf-using-pandoc
- https://groups.google.com/forum/#!topic/pandoc-discuss/IHB_mcdGxJI
- https://github.com/jgm/pandoc/issues/3059
- https://github.com/notifications/unsubscribe-auth/AAAL5D4yUm7tbD1Giqsi0LH_oxWkPF_cks5qdEmegaJpZM4JePKx
Most helpful comment
Use the
alignedenvironment, which works inside $$.+++ pkjkrai66 [Aug 06 16 01:45 ]: