Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in groff ms math output #198

Closed
RobertGoulding opened this issue Sep 11, 2022 · 2 comments
Closed

Error in groff ms math output #198

RobertGoulding opened this issue Sep 11, 2022 · 2 comments
Labels

Comments

@RobertGoulding
Copy link

Try this sample markdown in r.md:

$$\begin{align} f(x) &= x^2 \\ &= y-2 \end{align}$$

The command pandoc -t ms -o r.pdf r.md gives the error:

eqn:<standard input>:73: error: syntax error
 context is
        } above { >>> } <<<

Examining the ms file generated by pandoc -s -o r.ms r.md, line 73 is:

rcol{ {f left ( x right )} above {} }

Although I can't find it in the eqn documentation, it seems that there cannot be an empty entry in a matrix. The following code is correct, and properly formats the equation:

rcol{ {f left ( x right )} above {""} }
@RobertGoulding
Copy link
Author

(And I guess that should be aligned, not align, but that doesn't make any difference)

@jgm jgm transferred this issue from jgm/pandoc Sep 11, 2022
@jgm
Copy link
Owner

jgm commented Sep 11, 2022

Transferring to jgm/texmath - the eqn writer there will need to get the fix

@jgm jgm closed this as completed in 0fb6bf8 Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants