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 Reader does not handle \newenvironment #987

Closed
lod opened this issue Sep 16, 2013 · 3 comments
Closed

LaTeX Reader does not handle \newenvironment #987

lod opened this issue Sep 16, 2013 · 3 comments

Comments

@lod
Copy link

lod commented Sep 16, 2013

Command

pandoc -f latex -t native

Input

\documentclass{article}
\newenvironment{flubble}{FOO}{BAR}
\begin{document}
   \begin{flubble}
   grr
   \end{flubble}
\end{document}

Output

[Para [Str "grr"]]

Expected Output (approximate)

[Para [Str "FOO",Space,Str "grr",Space,Str "BAR"]]

Tested with pandoc 1.12.
Expected output verified against pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)

Possibly related to issue #982

@jgm
Copy link
Owner

jgm commented Sep 17, 2013

Correct -- currently only newcommand and renewcommand are supported.
It would be good to support newenvironment too.

@timtylin
Copy link
Contributor

I'll add it to my todo list while I'm deep in the bowels of the macro processing code.

@bitemyapp
Copy link

Would dearly love this to work, if anyone cares. Having to sed my book before converting to epub/html from LaTeX sucks.

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

5 participants