From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Feature request: enable toggling of \centering in Latex figure export Date: Mon, 25 Jul 2016 23:34:02 +0200 Message-ID: <87d1m1v1v9.fsf@saiph.selenimh> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRnVl-00062P-NG for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 17:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRnVj-0001Mp-ST for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 17:34:04 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:46429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRnVj-0001MW-Mb for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 17:34:03 -0400 In-Reply-To: (Spencer Hill's message of "Wed, 29 Jun 2016 19:46:56 -0700") 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" To: Spencer Hill Cc: emacs-orgmode@gnu.org Hello, Spencer Hill writes: > MWE: > #+CAPTION: Figure caption. > [[file:figure01.pdf]] > > Issue: > When an image is exported to LaTeX as a float, the \centering command > is hard-coded into the export: see org-latex--inline-image in > ox-latex.el. This is not the case for tables, for which centering can > be toggled via #+ATTR_LATEX: centering t. I would like for this same > centering option to be made available for figure floats also. > > Motivation: > I am attempting to render a .tex file for an article submission to a journal, and the publisher requires the figures to be left-aligned. > > It seems like a simple enough patch, but I have 0 elisp experience so > wouldn't be the person for the job. Or let me know if I'm missing > something. Thanks! Done in development branch. Please test it and report anything wrong. Regards, -- Nicolas Goaziou