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

Support "columns" fenced div in LaTeX #5868

Open
gmd7 opened this issue Nov 3, 2019 · 3 comments
Open

Support "columns" fenced div in LaTeX #5868

gmd7 opened this issue Nov 3, 2019 · 3 comments

Comments

@gmd7
Copy link

gmd7 commented Nov 3, 2019

I expected the latex writer to turn the file test.md

:::::::::::::: {.columns}
::: {.column width="50%"}
left
:::
::: {.column width="50%"}
right
:::
::::::::::::::

into

\begin{document}
\maketitle
\begin{minipage}[t]{0.5\textwidth}
left
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
right
\end{minipage}
\end{document}

instead of

\begin{document}
\maketitle

left

right

\end{document}

pandoc 2.7.3
pandoc -s test.md --metadata title="test" -o test.tex

@mb21
Copy link
Collaborator

mb21 commented Nov 3, 2019

That would work if you used -t beamer.

For the more general case: #2106

@jgm
Copy link
Owner

jgm commented Nov 3, 2019

As documented, the special treatment for column divs is only for slide shows.
You could use a filter to get this result in regular LaTeX.

We could turn this issue into a request to support the columns div in regular LaTeX. I think that would make sense.

@jgm jgm changed the title latex writer ignores fenced divs Support "columns" fenced div in LaTeX Nov 3, 2019
@gmd7
Copy link
Author

gmd7 commented Nov 3, 2019

Thanks

gmd7 added a commit to gmd7/pandoc that referenced this issue Feb 23, 2020
gmd7 added a commit to gmd7/pandoc that referenced this issue Feb 23, 2020
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

3 participants