aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-02-11 19:03:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-02-11 19:03:46 -0800
commit84bf84650353d42668a9e5c8ac9f9609c3f6da6a (patch)
tree4af608b95876d0a6d17a95b6f36aa9297a6fa1db /src/Text
parent37fa6df612c5d02acd7ff177293e2d7c4630ccb2 (diff)
downloadpandoc-84bf84650353d42668a9e5c8ac9f9609c3f6da6a.tar.gz
LaTeX writer: Changed figure defaults to htbp.
This prevents "too many unprocessed floats." Resolves Issue #285.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 28a1e7174..7dd736da4 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -163,7 +163,7 @@ blockToLaTeX (Plain lst) = inlineListToLaTeX lst
blockToLaTeX (Para [Image txt (src,tit)]) = do
capt <- inlineListToLaTeX txt
img <- inlineToLaTeX (Image txt (src,tit))
- return $ "\\begin{figure}[htb]" $$ "\\centering" $$ img $$
+ return $ "\\begin{figure}[htbp]" $$ "\\centering" $$ img $$
("\\caption{" <> capt <> char '}') $$ "\\end{figure}" $$ blankline
blockToLaTeX (Para lst) = do
result <- inlineListToLaTeX lst