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

Handle floats and float placement #5

Open
jdutant opened this issue Mar 26, 2021 · 0 comments
Open

Handle floats and float placement #5

jdutant opened this issue Mar 26, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jdutant
Copy link
Collaborator

jdutant commented Mar 26, 2021

Possibly a job for a separate filter. From Bastien Dumont (https://groups.google.com/g/pandoc-discuss/c/JxV3nF_igdw):

I noticed one problem though: LaTeX always places on top of the page full-width figures in a multicolumn environment. It means that the stream will be broken after the figure, as this document will show:

\documentclass{article}
\usepackage{multicol}
\usepackage{lipsum}

\begin{document}

\begin{multicols}{2}
\lipsum[1-7]
\end{multicols}

\begin{figure}
\begin{quote}
\lipsum[8]
\end{quote}
\end{figure}

\begin{multicols}{2}
\lipsum[1-7]
\end{multicols}

\end{document}

If you only want to make all figures span the entire width in a two-column layout, you can simply add this in the metadata block of your document (without changing anything in the command-line):

header-includes: |
  \renewenvironment{figure}{\begin{figure*}}{\end{figure*}}

However, the limitation regarding the figures' placement will still apply.

@jdutant jdutant added the enhancement New feature or request label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant