Browse Source

Latex export: Fix the position of captions on unfontified src blocks

* lisp/ox-latex (org-latex-src-block): Change format string to
  position caption after figure content.

Note: This is now consistent with the caption positioning for
formatted src blocks, later in the same function.

TINYCHANGE
Craig Tanis 11 years ago
parent
commit
927f1bd5e9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ox-latex.el

+ 2 - 2
lisp/ox-latex.el

@@ -2046,11 +2046,11 @@ contextual information."
 	       (float-env
 	       (float-env
 		(cond ((and (not float) (plist-member attributes :float)) "%s")
 		(cond ((and (not float) (plist-member attributes :float)) "%s")
 		      ((string= "multicolumn" float)
 		      ((string= "multicolumn" float)
-		       (format "\\begin{figure*}[%s]\n%s%%s\n\\end{figure*}"
+		       (format "\\begin{figure*}[%s]\n%%s%s\n\\end{figure*}"
 			       org-latex-default-figure-position
 			       org-latex-default-figure-position
 			       caption-str))
 			       caption-str))
 		      ((or caption float)
 		      ((or caption float)
-		       (format "\\begin{figure}[H]\n%s%%s\n\\end{figure}"
+		       (format "\\begin{figure}[H]\n%%s%s\n\\end{figure}"
 			       caption-str))
 			       caption-str))
 		      (t "%s"))))
 		      (t "%s"))))
 	  (format
 	  (format