mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 11:16:33 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user