emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Tucker-Kellogg <gtuckerkellogg@gmail.com>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: PATCH -- ox-latex.el .  sideways figure in latex export
Date: Sat, 5 Apr 2014 14:14:26 +0800	[thread overview]
Message-ID: <5CE478C5-C4A2-4BA7-B197-4807EAFE4B18@gmail.com> (raw)

This is a tiny patch to support a “:float sidewaysfigure” option in LaTeX backend export

---
 lisp/ox-latex.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index d65c975..c05ffb6 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1801,6 +1801,7 @@ used as a communication channel."
 	 (float (let ((float (plist-get attr :float)))
 		  (cond ((and (not float) (plist-member attr :float)) nil)
 			((string= float "wrap") 'wrap)
+			((string= float "sidewaysfigure") 'sidewaysfigure)
 			((string= float "multicolumn") 'multicolumn)
 			((or float
 			     (org-element-property :caption parent)
@@ -1876,6 +1877,10 @@ used as a communication channel."
 \\centering
 %s%s
 %s\\end{wrapfigure}" placement comment-include image-code caption))
+      (sidewaysfigure (format "\\begin{sidewaysfigure}%s
+\\centering
+%s%s
+%s\\end{sidewaysfigure}" placement comment-include image-code caption))
       (multicolumn (format "\\begin{figure*}%s
 \\centering
 %s%s
-- 
1.8.4.3

             reply	other threads:[~2014-04-05  6:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-05  6:14 Greg Tucker-Kellogg [this message]
2014-04-05 19:03 ` PATCH -- ox-latex.el . sideways figure in latex export Nicolas Goaziou
2014-04-06  4:10   ` Greg Tucker-Kellogg
2014-04-06  8:46     ` Nicolas Goaziou
2014-04-06 10:19       ` Greg Tucker-Kellogg
2014-04-06 12:26         ` 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=5CE478C5-C4A2-4BA7-B197-4807EAFE4B18@gmail.com \
    --to=gtuckerkellogg@gmail.com \
    --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).