aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaclav Zeman <vhaisman@gmail.com>2016-08-29 09:51:04 +0200
committerVaclav Zeman <vhaisman@gmail.com>2016-08-29 10:03:09 +0200
commitdf33d1358768f6250ceed0cfb2b4e5d7e31f431c (patch)
treed54da5615d28b2dcbf072640d11018b8c769f2bd
parentd29a6238968c963c8fba829d23a605d3e780118e (diff)
downloadpandoc-df33d1358768f6250ceed0cfb2b4e5d7e31f431c.tar.gz
LaTeX: Do not set [htbp] figure placement options.
Do not set `[htbp]` placement options on each figure to allow overriding them by them using `\fps@figure` redefintion either in header or in template.
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
-rw-r--r--tests/writer.latex2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 29e8c962c..b7db64aec 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -421,7 +421,7 @@ blockToLaTeX (Para [Image attr@(ident, _, _) txt (src,'f':'i':'g':':':tit)]) = d
lab <- labelFor ident
let caption = "\\caption" <> captForLof <> braces capt <> lab
figure <- hypertarget ident (cr <>
- "\\begin{figure}[htbp]" $$ "\\centering" $$ img $$
+ "\\begin{figure}" $$ "\\centering" $$ img $$
caption $$ "\\end{figure}" <> cr)
return $ if inNote
-- can't have figures in notes
diff --git a/tests/writer.latex b/tests/writer.latex
index 03e7133b7..eaecea949 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -917,7 +917,7 @@ or here: <http://example.com/>
From ``Voyage dans la Lune'' by Georges Melies (1902):
-\begin{figure}[htbp]
+\begin{figure}
\centering
\includegraphics{lalune.jpg}
\caption{lalune}