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

groff ms writer: Formatting below math formula #5251

Closed
rlefmann opened this issue Jan 24, 2019 · 0 comments
Closed

groff ms writer: Formatting below math formula #5251

rlefmann opened this issue Jan 24, 2019 · 0 comments

Comments

@rlefmann
Copy link

rlefmann commented Jan 24, 2019

When creating groff ms output, the text following a math formula is not formatted correctly. Example:

This is some text, followed by an equation
$$
a^2 + b^2 = c^2
$$
and some more text.
pandoc input.md -s -t ms -o output.pdf

The text following the math formula completely disappears in the output. If I add an empty line after the equation, the text is formatted in a new (indented) paragraph.

The problem is most likely a missing newline in the output (following the .EN macro):

...
This is some text, followed by an equation
.EQ
a sup 2 + b sup 2 = c sup 2
.EN and some more text.
...

If I add the newline in the ms output file and then run

eqn output.ms -T pdf | groff -ms -T pdf > output.pdf

the output pdf is formatted as expected.

@jgm jgm closed this as completed in 22b09d8 Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant