From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [bug] new beamer exporter always adds default width to graphics Date: Tue, 12 Mar 2013 15:59:55 +0100 Message-ID: <20130312145955.GD8127@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFQgS-0006Ak-Ea for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 11:00:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFQgL-0000gQ-MO for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 11:00:08 -0400 Received: from mail-ee0-f48.google.com ([74.125.83.48]:60779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFQgL-0000fx-Fj for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 11:00:01 -0400 Received: by mail-ee0-f48.google.com with SMTP id t10so2737751eei.7 for ; Tue, 12 Mar 2013 08:00:00 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: emacs-orgmode@gnu.org On Tue, Mar 12, 2013 at 10:38:27AM -0400, Jay Kerns wrote: > Dear James, > > On Tue, Mar 12, 2013 at 9:25 AM, James Harkins wrote: [...] > > The org file contains: > > > > #+BEGIN_CENTER > > #+ATTR_LaTeX: :options width=6cm > > [[./img/new-version.png]] > > #+END_CENTER > > > > In the .tex file, I see: > > > > \begin{center} > > \includegraphics[width=6cm,width=.9\linewidth]{./img/new-version.png} > > \end{center} > > > > Two widths appear: the one that I wanted, and the default that I was > > trying to override. LaTeX obeys the one that I didn't want. > > > > The problem is somewhere between HEAD and this commit (i.e., 8cc6c13 > > is a "good" commit; head is "bad"): > > > > commit 8ee6c13c7fd6eacc2e8c2ace8054f8aac3548966 > > Author: Bastien Guerry > > Date: Sat Feb 23 13:47:44 2013 +0100 > > Fix typo: an headline -> a headline. > > Yes, the same thing happened to me too, and yes, there was a change > recently, and here is a link to the discussion about it: > > http://comments.gmane.org/gmane.emacs.orgmode/68011 > > I believe you can do the following to get what you were expecting: > > #+ATTR_LaTeX: :width 6cm I believe Nicolas mentioned sometime back the :width option is available only for floats whereas :options is the only way for included graphics files (because of how LaTeX works). This addition is a bit inconsistent with that line of thought. -- Suvayu Open source is the future. It sets us free.