From mboxrd@z Thu Jan 1 00:00:00 1970 From: "myles english" Subject: Re: Setting width of babel-generated image in LaTeX export? Date: Wed, 24 Oct 2012 22:51:41 +0100 Message-ID: <87mwzbfsia.fsf@ed.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8jw-0000mf-7p for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:43:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR8jv-0002Ck-95 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:43:52 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:51085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8jv-0002Cg-2d for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:43:51 -0400 Received: by mail-we0-f169.google.com with SMTP id u3so612480wey.0 for ; Wed, 24 Oct 2012 14:43:49 -0700 (PDT) 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: Michael Gauland Cc: emacs-orgmode@gnu.org Hi Michael, Michael Gauland writes: > I'm having trouble specifying the width of an image I export to LaTeX (with > either the new or old exporter). The snippet below demonstrates my problem. It > uses plantuml to generate an image file, using ATTR_LaTeX to specify the width. > When exported, the .tex file specifies the default width (.9\linewidth) for the > first image; the second image correctly specifies a width of 4cm. > > Am I doing something wrong, or is this a bug? > Thanks, > Mike > > * Snippet > #+ATTR_LaTeX[width=3cm]: Try: #+ATTR_LaTeX: width=3cm Myles > #+BEGIN_SRC plantuml :file test-output.png > FirstState: A Really Wide State To Make The Image Wider Than The Text > SecondState: Another Really Wide State To Make The Image Wider Than The Text > FirstState -right-> SecondState > #+END_SRC > > #+RESULTS: > [[file:test-output.png]] > > > #+ATTR_LaTeX: width=4cm > [[file:test-output.png]]