Pandoc: Error in converting `align` environment equations enclosed in `$$`

Created on 6 Aug 2016  Â·  1Comment  Â·  Source: jgm/pandoc

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

Most helpful comment

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 H for 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

  1. https://tex.stackexchange.com/questions/322038/error-with-equation-conversion-while-converting-markdown-to-pdf-using-pandoc
  2. https://groups.google.com/forum/#!topic/pandoc-discuss/IHB_mcdGxJI
  3. https://github.com/jgm/pandoc/issues/3059
  4. https://github.com/notifications/unsubscribe-auth/AAAL5D4yUm7tbD1Giqsi0LH_oxWkPF_cks5qdEmegaJpZM4JePKx

>All comments

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 H for 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

  1. https://tex.stackexchange.com/questions/322038/error-with-equation-conversion-while-converting-markdown-to-pdf-using-pandoc
  2. https://groups.google.com/forum/#!topic/pandoc-discuss/IHB_mcdGxJI
  3. https://github.com/jgm/pandoc/issues/3059
  4. https://github.com/notifications/unsubscribe-auth/AAAL5D4yUm7tbD1Giqsi0LH_oxWkPF_cks5qdEmegaJpZM4JePKx
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jgm picture jgm  Â·  62Comments

jgm picture jgm  Â·  117Comments

jgm picture jgm  Â·  48Comments

kevinushey picture kevinushey  Â·  79Comments

jclement picture jclement  Â·  117Comments