From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [BUG] attr_latex in new exporter Date: Fri, 08 Mar 2013 07:03:30 -1000 Message-ID: References: <87k3pi18pf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE0iF-0001T4-Nf for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:04:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE0iA-0006tb-Gx for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:04:07 -0500 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:45577) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UE0iA-0006sx-7b for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:04:02 -0500 In-Reply-To: <87k3pi18pf.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 08 Mar 2013 11:34:20 +0100") 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: Nicolas Goaziou Cc: Org-mode Nicolas Goaziou writes: > Hello, > > tsd@tsdye.com (Thomas S. Dye) writes: > >> I think this behavior was introduced in the last week or so. >> >> This in the Org file: >> >> #+attr_latex: :height "2in" >> [[file:saa-fig/wet-dry.jpeg]] >> >> yields this in LaTeX output: >> >> \begin{figure}[htb] >> \centering >> \includegraphics[width=.9\linewidth,height=2in]{saa-fig/wet-dry.jpeg} >> \end{figure} >> >> I think when :height is set, then the default :width should not be >> set. > > I think it should be fixed. Could you confirm it? There is a change, but not a fix. Now I get this: \begin{figure}[htb] \centering \includegraphics[width=0.7\textwidth,height=2in]{saa-fig/wet-dry.jpeg} \end{figure} I'm expecting this: \begin{figure}[htb] \centering \includegraphics[height=2in]{saa-fig/wet-dry.jpeg} \end{figure} In other words, I'm looking to preserve the aspect ratio of the source image. All the best, Tom -- Thomas S. Dye http://www.tsdye.com