From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: Embedding diagrams in Org
Date: Wed, 04 Mar 2015 21:22:46 +0000 [thread overview]
Message-ID: <olusidkmp95.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 874mq0d0zg.fsf@amu.edu.pl
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> e
> On 2015-02-18, at 13:34, Marcin Borkowski <mbork@wmi.amu.edu.pl> wrote:
>
>> Hello all,
>>
>> I need to embed some diagrams (graphs of functions, for instance, or
>> trees) in an Org file. Any suggestions on how to do it? In case of
>> ditaa, I can use a source block and the "results" line, and see the
>> image with C-c C-x C-v. Can I do a similar thing with Asymptote? How
>> hard/time-consuming would it be to add support e.g. for tikz or other
>> such tools?
>>
>> Best,
>
> While the answers I got were helpful, and thank you all for them, my
> curiosity jumped two levels up when I saw the code for
> org-latex--inline-image in ox-latex today. It seems that there are
> special provisions for tikz pictures. However, the code does seem to be
> a bit weird: for instance, the tikz code seems to be wrapped in the
> tikzpicture environment depending on whether any /options/ are given or
> not, which seems an odd choice to me.
>
> Did anyone use the ability to inline tikz pictures (i.e., pictures in
> a file with =tikz= or =pgf= extension)? If so, could you share some
> examples, or at least success stories?
>
The example I posted earlier in this thread [1] uses the *.tikz version for
latex export.
I do not know, whether that helps, but I think the behaviour of the tikz
graphics has been decided in this thread [2].
The wrapping in tikzpicture if options are present is quite sensible, as
these options have to be presented somewhere. Note, that it is fine to
nest tikzpicture environments. So, the *.tikz file is basically
expected to bring its own tikzpicture environment. If there are options
given in the org file, this is just wrapped into another tikzpicture
environment. (If I understand the reasoning correctly, that is...)
Regards,
Andreas
> Also, org-latex--inline-image seems to provide for including svg images,
> but I could not find a \usepackage{svg}, nor a provision for enabling
> shell-escape (like in the case of minted). Again: any success stories
> or is there a bug?
>
[1] http://permalink.gmane.org/gmane.emacs.orgmode/95197
[2] http://thread.gmane.org/gmane.emacs.orgmode/66900
next prev parent reply other threads:[~2015-03-04 21:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 12:34 Embedding diagrams in Org Marcin Borkowski
2015-02-18 14:19 ` Eric S Fraga
2015-02-18 15:51 ` Eduardo Ochs
2015-02-18 19:01 ` Eric S Fraga
2015-02-19 8:45 ` Sebastien Vauban
2015-02-18 19:37 ` Andreas Leha
2015-02-19 8:49 ` Sebastien Vauban
2015-02-21 11:06 ` Andreas Leha
2015-02-19 14:10 ` Eric S Fraga
2015-03-21 11:23 ` Marcin Borkowski
2015-03-21 21:41 ` Andreas Leha
2015-02-24 0:01 ` Marcin Borkowski
2015-02-24 8:04 ` Eric S Fraga
2015-02-24 17:00 ` Charles C. Berry
2015-03-05 8:51 ` Sebastien Vauban
2015-03-04 19:19 ` Marcin Borkowski
2015-03-04 19:37 ` Rasmus
2015-03-04 21:22 ` Andreas Leha [this message]
2015-03-05 8:12 ` Eric S Fraga
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=olusidkmp95.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/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).