lib/polytexnic/preprocessors/polytex.rb in polytexnic-1.2.5 vs lib/polytexnic/preprocessors/polytex.rb in polytexnic-1.2.6

- old
+ new

@@ -45,10 +45,10 @@ alt_text = el.children.first.attr['alt'] if has_label?(alt_text) attrs = attribute_list(el) # Override the kramdown default by adding "here" placement. # Authors who want a different behavior can always use raw LaTeX. - "\\begin{figure}[h]#{attrs}\n\\begin{center}\n#{img}\n\\end{center}\n\\caption{#{escape(el.children.first.attr['alt'])}}\n#{latex_link_target(el, true)}\n\\end{figure}#{attrs}\n" + "\\begin{figure}[H]#{attrs}\n\\begin{center}\n#{img}\n\\end{center}\n\\caption{#{escape(el.children.first.attr['alt'])}}\n#{latex_link_target(el, true)}\n\\end{figure}#{attrs}\n" else img.gsub('\includegraphics', '\image') + "\n" end end