emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Craig Tanis <craig-tanis@utc.edu>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Latex export: Fix the position of captions on unfontified src blocks
Date: Tue, 13 Aug 2013 08:39:31 -0400	[thread overview]
Message-ID: <58CFCC66-9BA4-40FF-9215-6ADB95C34E64@utc.edu> (raw)

[-- 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

             reply	other threads:[~2013-08-13 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 12:39 Craig Tanis [this message]
2013-08-15  8:04 ` [PATCH] Latex export: Fix the position of captions on unfontified src blocks Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58CFCC66-9BA4-40FF-9215-6ADB95C34E64@utc.edu \
    --to=craig-tanis@utc.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).