git.iko.soy/typeable/pandoc
on master help sign in
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.

commitdf33d1358768f6250ceed0cfb2b4e5d7e31f431c authorVaclav Zeman <vhaisman@gmail.com> dateMon 29 Aug 2016, 09:51 (10 years ago) parentd29a623
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
@@ -421,7 +421,7 @@ blockToLaTeX (Para [Image attr@(ident, _, _) txt (src,'f':'i':'g':':':tit)]) = d
421421 lab <- labelFor ident
422422 let caption = "\\caption" <> captForLof <> braces capt <> lab
423423 figure <- hypertarget ident (cr <>
424− "\\begin{figure}[htbp]" $$ "\\centering" $$ img $$
424+ "\\begin{figure}" $$ "\\centering" $$ img $$
425425 caption $$ "\\end{figure}" <> cr)
426426 return $ if inNote
427427 -- can't have figures in notes
tests/writer.latex+1−1
@@ -917,7 +917,7 @@ or here: <http://example.com/>
917917
918918From ``Voyage dans la Lune'' by Georges Melies (1902):
919919
920−\begin{figure}[htbp]
920+\begin{figure}
921921\centering
922922\includegraphics{lalune.jpg}
923923\caption{lalune}