git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Changed figure defaults to htbp.

This prevents "too many unprocessed floats." Resolves Issue #285.

commit84bf84650353d42668a9e5c8ac9f9609c3f6da6a authorJohn MacFarlane <jgm@berkeley.edu> dateFri 11 Feb 2011, 19:03 (16 years ago) parent37fa6df
2 files changed+2−2
src/Text/Pandoc/Writers/LaTeX.hs+1−1 tests/writer.latex+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -163,7 +163,7 @@ blockToLaTeX (Plain lst) = inlineListToLaTeX lst
163163blockToLaTeX (Para [Image txt (src,tit)]) = do
164164 capt <- inlineListToLaTeX txt
165165 img <- inlineToLaTeX (Image txt (src,tit))
166− return $ "\\begin{figure}[htb]" $$ "\\centering" $$ img $$
166+ return $ "\\begin{figure}[htbp]" $$ "\\centering" $$ img $$
167167 ("\\caption{" <> capt <> char '}') $$ "\\end{figure}" $$ blankline
168168blockToLaTeX (Para lst) = do
169169 result <- inlineListToLaTeX lst
tests/writer.latex+1−1
@@ -788,7 +788,7 @@ or here: <http://example.com/>
788788
789789From ``Voyage dans la Lune'' by Georges Melies (1902):
790790
791−\begin{figure}[htb]
791+\begin{figure}[htbp]
792792\centering
793793\includegraphics{lalune.jpg}
794794\caption{lalune}