From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Tucker-Kellogg Subject: PATCH -- ox-latex.el . sideways figure in latex export Date: Sat, 5 Apr 2014 14:14:26 +0800 Message-ID: <5CE478C5-C4A2-4BA7-B197-4807EAFE4B18@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWJsJ-0002Im-JB for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWJs9-0004ad-Q3 for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:14:43 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:65495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWJs9-0004aW-J1 for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:14:33 -0400 Received: by mail-pa0-f43.google.com with SMTP id bj1so4416816pad.30 for ; Fri, 04 Apr 2014 23:14:32 -0700 (PDT) Received: from [192.168.1.105] (nusnet-193-216.dynip.nus.edu.sg. [137.132.193.216]) by mx.google.com with ESMTPSA id y4sm21950082pbk.76.2014.04.04.23.14.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 23:14:30 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list This is a tiny patch to support a =93:float sidewaysfigure=94 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=3D float "wrap") 'wrap) + ((string=3D float "sidewaysfigure") = 'sidewaysfigure) ((string=3D 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 --=20 1.8.4.3=