From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Setting width of babel-generated image in LaTeX export? Date: Wed, 24 Oct 2012 11:55:54 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8vk-000428-Nd for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR8vj-0008UL-7Z for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:56:04 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:43526) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TR8vi-0008Tw-UB for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 17:56:03 -0400 In-Reply-To: (Michael Gauland's message of "Wed, 24 Oct 2012 21:08:39 +0000 (UTC)") 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 Aloha Mike, Perhaps #+ATTR_LaTeX: width=3D3cm will work? I don't believe the square brackets following #+ATTR_LaTeX in your initial image are correct. Here is how I've been generating figures for LaTeX export using the new exporter: #+name: fundamental-model #+header: :exports results #+header: :file fundamental-model.pdf #+BEGIN_SRC dot graph G {=20 graph [margin=3D"0.01"]; d [label =3D "Dated event", shape =3D"box"]; t [label =3D "Target event"]; d -- t [label =3D "Association", dir =3D "both", len =3D 2]; {rank=3Dsame; d t;} } #+END_SRC=20=20=20=20=20=20=20=20=20=20 #+CAPTION[The fundamental relationship of a chronological model]:=20 #+CAPTION: The fundamental relationship of a chronological model based on r= adiometric dating. #+ATTR_LaTeX: width=3D232pt #+NAME: fig:fundamental #+RESULTS: fundamental-model [[file:fundamental-model.pdf]] Naming the results lets me cross reference, e.g., These two types of events are often referred to as the dated event and the target event, respectively (fig.=C2=A0[[fig:fundamental]]). hth, Tom Michael Gauland writes: > I'm having trouble specifying the width of an image I export to LaTeX (wi= th > either the new or old exporter). The snippet below demonstrates my proble= m. 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) f= or 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=3D3cm]: > #+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=3D4cm > [[file:test-output.png]] > > > > --=20 Thomas S. Dye http://www.tsdye.com