From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Org-mode Beamer graphviz & images Date: Tue, 10 Feb 2015 09:51:49 +0000 Message-ID: <87iofanlfu.fsf@ucl.ac.uk> References: <54D91FAD.3000707@javaxpert.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL7U9-0004j6-4O for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 04:52:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL7U4-0007qm-2F for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 04:52:01 -0500 Received: from mail-db3on0136.outbound.protection.outlook.com ([157.55.234.136]:21692 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL7U3-0007mT-R4 for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 04:51:56 -0500 In-Reply-To: <54D91FAD.3000707@javaxpert.com> (deadbrain's message of "Mon, 9 Feb 2015 21:59:25 +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: deadbrain Cc: emacs-orgmode@gnu.org On Monday, 9 Feb 2015 at 21:59, deadbrain wrote: > Hi all org-mode gurus, > I am trying to generate a deck of slides using Emacs/org-mode /beamer & > some companion tools (graphviz & plantuml). > I have a problem to set the dimensions for the graphviz (or plantuml) > generated pictures. > Whatever the version used (tested 8.2.10-30 or 8.3-beta from git) and > whatever the option (ATTR_LATEX set) the TEX file generated does not > contain the right scaling options. Two changes are required to get this to work. 1. you need to have the latex attribute just before the image. To do this, execute the src block which will generate the results line. Then move the attribute line to just before the RESULTS directive. 2. you need to tell the exporter that the results to export are a file. In summary, I got your example to work with the following snippet: --8<---------------cut here---------------start------------->8--- #+name: graph-info-figure #+begin_src dot :file graph-intro.png :cmdline -Kdot -Tpng :results file digraph G{ node1 -> node2 node1 -> node3 node3 -> node4 node3 -> node5 } #+end_src #+ATTR_LATEX: :height 3cm #+results: graph-info-figure [[file:graph-intro.png]] --8<---------------cut here---------------end--------------->8--- I named the src block as I find that it is good practice in general to do so... Note that I changed the size directive to 3cm to see the effect clearly! HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-798-g528b90