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

LaTeX environments as a Div? #6997

Closed
jgm opened this issue Jan 1, 2021 · 2 comments
Closed

LaTeX environments as a Div? #6997

jgm opened this issue Jan 1, 2021 · 2 comments

Comments

@jgm
Copy link
Owner

jgm commented Jan 1, 2021

In parsing LaTeX environments without raw_tex extension, pandoc currently tries to parse the environment's contents and just skips the begin and end tag (with a warning).

Proposal: instead of doing this, parse the contents as before but put them in a Div with class = the environment name. (We probably still want the warning, though, to inform the user that the formatting normally associated with the environment is not being applied.)

Do the same for unknown LaTeX commands, but with Spans rather than Divs.

See pandoc-discuss thread "[LaTeX → RST] Export environments into directives".

@jgm
Copy link
Owner Author

jgm commented Jan 2, 2021

OK, I think this should be done just with environments. There are too many commands whose contents should not be treated as textual; skipping them when raw_tex is disabled (as we currently do) seems the best approach.

@jgm jgm closed this as completed in 260aaaa Jan 2, 2021
@dbitouze
Copy link

dbitouze commented Jan 3, 2021

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants