From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX export of images Date: Wed, 30 Sep 2009 09:30:04 +0200 Message-ID: <4B63EE9B-3199-424D-8D4D-B3C0308DC87A@gmail.com> References: <87pr9jf68i.fsf@missioncriticalit.com> <10AD8929-948F-4985-8E26-F49C0DF525A7@gmail.com> <8809.1254252762@alphaville.usa.hp.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mstdg-0001K5-Dt for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 03:30:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mstda-0001F8-CB for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 03:30:14 -0400 Received: from [199.232.76.173] (port=44637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mstda-0001Ew-59 for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 03:30:10 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:58024) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MstdZ-0007N5-QS for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 03:30:09 -0400 Received: by ewy4 with SMTP id 4so4185090ewy.31 for ; Wed, 30 Sep 2009 00:30:09 -0700 (PDT) In-Reply-To: <8809.1254252762@alphaville.usa.hp.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: mailing-list-org-mode On Sep 29, 2009, at 9:32 PM, Nick Dokos wrote: > > > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index 4058891..248d653 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -1553,8 +1585,8 @@ The conversion is made depending of STRING- > BEFORE and STRING-AFTER." > (cond ((and imgp (plist-get org-export-latex-options- > plist :inline-images)) > (insert > (concat > - (if floatp "\\begin{figure}[htb]\n") > - (format "\\centerline{\\includegraphics[%s]{%s}}\n" > + (if floatp "\\begin{figure}[htb]\n\\centering\n") > + (format "\\includegraphics[%s]{%s}\n" > attr > (if (file-name-absolute-p raw-path) > (expand-file-name raw-path) > @@ -1563,7 +1595,7 @@ The conversion is made depending of STRING- > BEFORE and STRING-AFTER." > (format "\\caption{%s%s}\n" > (if label (concat "\\label{" label "}") "") > (or caption ""))) > - (if floatp "\\end{figure}\n")))) > + (if floatp "\\end{figure}")))) > (coderefp > (insert (format > (org-export-get-coderef-format path desc) > I have applied this patch