git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #3093 from wilx/master-figure-placement

LaTeX: Do not set [htbp] figure placement options.

commitc6d3eca44ebc652c7cd2e77930b70454bd7d72d8 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 28 Sep 2016, 11:17 (10 years ago) parent14a26f9df33d13
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
@@ -423,7 +423,7 @@ blockToLaTeX (Para [Image attr@(ident, _, _) txt (src,'f':'i':'g':':':tit)]) = d
423423 lab <- labelFor ident
424424 let caption = "\\caption" <> captForLof <> braces capt <> lab
425425 figure <- hypertarget ident (cr <>
426− "\\begin{figure}[htbp]" $$ "\\centering" $$ img $$
426+ "\\begin{figure}" $$ "\\centering" $$ img $$
427427 caption $$ "\\end{figure}" <> cr)
428428 return $ if inNote
429429 -- 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}