kyoxiao / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

markdown2pdf fails with LaTeX "too many unprocessed floats" error on files with lots of images #285

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the ProGit markdown file and preprocess it as directed.
2. Run markdown2pdf instead of converting it to epub. (or convert to latex and 
then run pdflatex manually).

What is the expected output? What do you see instead?

The LaTeX step fails with 

   ! LaTeX Error: Too many unprocessed floats.

This happens when there are too many images.

One way to fix it in this case would be by changing the options to the figure 
environment to include allowing figures their own page if necessary
(mentioned at http://theoval.cmp.uea.ac.uk/~nlct/latex/novices/figures.html). 
Ie,

   \begin{figure}[htb]

to 

   \begin{figure}[htbp]

The output in the case of the ProGit book is not always aesthetically ideal, 
but it does work.

What version of the product are you using? On what operating system?

pandoc 1.8, ghc 6.12.3, osx 10.5.8

Original issue reported on code.google.com by jesse.k....@gmail.com on 9 Feb 2011 at 8:11

GoogleCodeExporter commented 8 years ago
I've used this suggestion,
84bf84650353d42668a9e5c8ac9f9609c3f6da6a

Thanks.

Original comment by fiddloso...@gmail.com on 12 Feb 2011 at 3:06