From mboxrd@z Thu Jan 1 00:00:00 1970 From: deadbrain Subject: Org-mode Beamer graphviz & images Date: Mon, 09 Feb 2015 21:59:25 +0100 Message-ID: <54D91FAD.3000707@javaxpert.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvQb-0001w3-F6 for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 15:59:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKvQW-0002UZ-Ij for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 15:59:33 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:65217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvQW-0002UN-Cb for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 15:59:28 -0500 Received: by mail-wg0-f46.google.com with SMTP id a1so7997439wgh.5 for ; Mon, 09 Feb 2015 12:59:27 -0800 (PST) Received: from [192.168.0.18] (cbl33-1-82-228-228-67.fbx.proxad.net. [82.228.228.67]) by mx.google.com with ESMTPSA id kj8sm17902428wjc.29.2015.02.09.12.59.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 12:59:26 -0800 (PST) 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 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. Here is a generated TEX file (very short) : % Created 2015-02-09 Mon 21:54 \documentclass[presentation,smaller]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \tolerance=1000 \usetheme{Marburg} \usecolortheme{} \usefonttheme{} \useinnertheme{} \useoutertheme{} \date{\today} \title{Test ORG \& Graphviz} \begin{document} \maketitle \begin{frame}{Outline} \tableofcontents \end{frame} \section{Une section} \label{sec-1} \begin{frame}[label=sec-1-1]{Test graphviz} \includegraphics[width=.9\linewidth]{graph-intro.png} \end{frame} % Emacs 24.4.1 (Org mode 8.3beta) \end{document} from this org document: #+BEAMER_COLOR_THEME: #+BEAMER_FONT_THEME: #+BEAMER_HEADER: #+BEAMER_INNER_THEME: #+BEAMER_OUTER_THEME: #+BEAMER_THEME: Marburg #+OPTIONS: H:2 toc:t #+LATEX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation,smaller] #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra) #+TITLE: Test ORG & Graphviz * Une section ** Test graphviz #+ATTR_LATEX: :height 25cm #+begin_src dot :file graph-intro.png :cmdline -Kdot -Tpng digraph G{ node1 -> node2 node1 -> node3 node3 -> node4 node3 -> node5 } #+end_src Obviously I am doing something wrong , but what ? Thanks for your help Kind regards