emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Latex export: Fix the position of captions on unfontified src blocks
@ 2013-08-13 12:39 Craig Tanis
  2013-08-15  8:04 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Craig Tanis @ 2013-08-13 12:39 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: 0001-Latex-export-Fix-the-position-of-captions-on-unfonti.patch --]
[-- Type: application/octet-stream, Size: 1296 bytes --]

From bf9c450c24e1a03f14300c7474e5291a095faf55 Mon Sep 17 00:00:00 2001
From: Craig Tanis <craig-tanis@utc.edu>
Date: Tue, 13 Aug 2013 08:08:53 -0400
Subject: [PATCH] Latex export: Fix the position of captions on unfontified
 src blocks

* lisp/ox-latex: 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
---
 lisp/ox-latex.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index e66c717..1fe918a 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2046,11 +2046,11 @@ contextual information."
 	       (float-env
 		(cond ((and (not float) (plist-member attributes :float)) "%s")
 		      ((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
 			       caption-str))
 		      ((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))
 		      (t "%s"))))
 	  (format
-- 
1.7.12.4 (Apple Git-37)


[-- Attachment #2: Type: text/plain, Size: 24 bytes --]






thanks,
craig tanis

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Latex export: Fix the position of captions on unfontified src blocks
  2013-08-13 12:39 [PATCH] Latex export: Fix the position of captions on unfontified src blocks Craig Tanis
@ 2013-08-15  8:04 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-08-15  8:04 UTC (permalink / raw)
  To: Craig Tanis; +Cc: emacs-orgmode

Hello,

Craig Tanis <craig-tanis@utc.edu> writes:

> From bf9c450c24e1a03f14300c7474e5291a095faf55 Mon Sep 17 00:00:00 2001
> From: Craig Tanis <craig-tanis@utc.edu>
> Date: Tue, 13 Aug 2013 08:08:53 -0400
> Subject: [PATCH] Latex export: Fix the position of captions on unfontified
>  src blocks
>
> * lisp/ox-latex: 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

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-15  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-13 12:39 [PATCH] Latex export: Fix the position of captions on unfontified src blocks Craig Tanis
2013-08-15  8:04 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).