From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Setting width of babel-generated image in LaTeX export? Date: Wed, 24 Oct 2012 21:08:39 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8C6-0000wY-4w for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR8C5-0007Bb-8W for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:08:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:45647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8C5-0007A6-1w for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:08:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TR8CA-0003WK-6F for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 23:08:58 +0200 Received: from 218-101-54-25.trimble.co.nz ([218.101.54.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 23:08:58 +0200 Received: from mikelygee by 218-101-54-25.trimble.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 23:08:58 +0200 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 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]: #+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]]