emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: best ways to generate simple diagrams?
Date: Tue, 7 May 2019 17:52:23 +0000	[thread overview]
Message-ID: <87woj2xicp.fsf@ucl.ac.uk> (raw)
In-Reply-To: <CAN_Dec_G4N_HBA85piQvc6L7X-fK+9bnt1khYWGOfKa=jxg=hA@mail.gmail.com>	(Matt Price's message of "Tue, 7 May 2019 13:22:45 -0400")

On Tuesday,  7 May 2019 at 13:22, Matt Price wrote:
> I thought that a latex src block with :exports results would work, but
> rather than a rendered graph I end up with a .png of the latex
> instructions themselves. Here's what I am trying:

It should work.  Try with the following header settings:

#+header: :exports results
#+header: :results file raw
#+header: :file image.png
#+header: :fit yes
#+begin_src latex
  \begin{tikzpicture}[node distance=4cm,minimum size=2cm]
    \node[draw,fill=blue!20!white] (humanities) {Humanities};
    \node[draw,fill=blue!20!white] (tools) [right of=humanities] {\parbox{3cm}{Computing \\ Tools and \\ Methodologies}};
    \draw[very thick,red] (tools) edge [out=270,in=270,->] (humanities);
  \end{tikzpicture}
#+end_src

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.3-327-g3375f0

  reply	other threads:[~2019-05-07 17:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-06 18:17 best ways to generate simple diagrams? Matt Price
2019-05-06 19:12 ` ckelty ckelty
2019-05-06 20:08 ` Heinz Tuechler
2019-05-07 11:25 ` Fraga, Eric
2019-05-07 17:22   ` Matt Price
2019-05-07 17:52     ` Fraga, Eric [this message]
2019-05-07 20:36       ` Matt Price
2019-05-07 20:51         ` Martin Schöön
2019-05-08  5:47           ` Fraga, Eric
2019-05-08  4:06 ` Marcin Borkowski

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=87woj2xicp.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.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).