From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Centering graphics in LaTeX export Date: Thu, 15 May 2014 10:28:06 -0500 Message-ID: References: <87vbt79i9d.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxZp-0006Ui-62 for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkxZn-0005a8-OO for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:28:09 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:40244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxZn-0005a1-K3 for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:28:07 -0400 Received: by mail-ob0-f172.google.com with SMTP id wp18so1422107obc.3 for ; Thu, 15 May 2014 08:28:06 -0700 (PDT) In-Reply-To: <87vbt79i9d.fsf@somewhere.org> 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: Francesco Pizzolante Cc: mailing-list-org-mode On Thu, May 15, 2014 at 10:25 AM, Francesco Pizzolante wrote: > Hi, > > Here's a small patch that enables centering graphics in LaTeX exports > (as it already exists for tables). > > Currently, the only way to center images is by adding a caption (which > is not always needed) or by adding #+begin_center / #+end_center around > images (but it must be done for every image as we cannot define > a default behavior for centering images). > > Thanks to this patch: > > - an image can be centered by adding the ':center t' attribute in > a '#+ATTR_LATEX' directive (as for tables); > > - default centering of images can be achieved by setting the > 'org-latex-images-centered' variable to t. Sounds cool to me! I'm already always using an #+attr_latex line for setting the width; being able to center it with the same line would be pretty cool. That said, I'm guessing someone's going to point you in this direction for the patch submission itself (I guess that "someone" is me in this case). - http://orgmode.org/worg/org-contribute.html#sec-4 [patch snipped] Best regards, John