mpastell / Pweave

Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.
http://mpastell.com/pweave
Other
435 stars 64 forks source link

BUG: newline between subsequent figures in Latex #8

Closed untom closed 9 years ago

untom commented 11 years ago

Hi there!

If a single chunk in a Pweave document produces multiple figures while producing Latex, this will result in an output like:

\includegraphics[width= \textwidth]{figures/....} \includegraphics[width= \textwidth]{figures/....}

The problem here is that since there are no newlines between the \include's, Latex (at least: pdflatex) will interpret this as "put them all on the same line". Which in turn results in all of the images landing on the same page. If the images are larger than the page, the later images will be cropped / not displayed at all.

Having an empty between the \includegraphics instructions solves this problem.

mpastell commented 11 years ago

Hi, I am unable to reproduce this problem using: This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)

For me the figures appear on separate lines continue on as many pages as required.

The reason that there is no newline is that multiple small figures will then appear side by side.

mpastell commented 9 years ago

Closed: unable to reproduce