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

Parse LaTeX Parallel Environment #4512

Open
schrieveslaach opened this issue Mar 30, 2018 · 3 comments
Open

Parse LaTeX Parallel Environment #4512

schrieveslaach opened this issue Mar 30, 2018 · 3 comments

Comments

@schrieveslaach
Copy link
Contributor

Pandoc should be able to parse Parallel environments, such as:

\begin{Parallel}{0.5\linewidth}{0.5\linewidth}
    \ParallelLText{Text on the left side}
    \ParallelRText{Text on the right side}
\end{Parallel}

pandoc -f latex -t html should produce following content:

<div>
    <div style="width: 50%; float: left">Text on the left side</div>
    <div style="width: 50%; float: left">Text on the right side</div>
</div>
@jgm
Copy link
Owner

jgm commented Mar 30, 2018 via email

@jgm
Copy link
Owner

jgm commented Mar 30, 2018 via email

@schrieveslaach
Copy link
Contributor Author

I tried to parse the Parallel environment (see PR) and its almost done. With some guidance I might be able to finish it. Maybe, we can use it or not…

I'm not sure about the special pandoc environments because it would not give me the ability to do more that by declaring a custom LaTeX command in a separate file which defines the environment. For example, I'm not sure if I'm able to add a style or anything else.

I'm imagine to parse these command in pandoc (along the style) and the writers (e. g. OdtWriter) are able to use the CSS style information to create an appropriate document. For example, if the OdtWriter detects CSS floats it generates a similar looking ODT document, such as that my PDF and ODT look similar.

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

Successfully merging a pull request may close this issue.

3 participants