From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: deadbrain <jerome@javaxpert.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-mode Beamer graphviz & images
Date: Tue, 10 Feb 2015 09:51:49 +0000 [thread overview]
Message-ID: <87iofanlfu.fsf@ucl.ac.uk> (raw)
In-Reply-To: <54D91FAD.3000707@javaxpert.com> (deadbrain's message of "Mon, 9 Feb 2015 21:59:25 +0100")
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
next prev parent reply other threads:[~2015-02-10 9:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 20:59 Org-mode Beamer graphviz & images deadbrain
2015-02-10 9:51 ` Eric S Fraga [this message]
2015-02-10 10:15 ` jerome moliere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iofanlfu.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=jerome@javaxpert.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).