emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Andrey Tykhonov <atykhonov@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Generate and display image
Date: Fri, 21 Mar 2014 07:44:14 -0400	[thread overview]
Message-ID: <CAJ51ETp1sFAXfx3oJtk8dLWQfaUBTze2EecRZ6KW=8Lyoam2gQ@mail.gmail.com> (raw)
In-Reply-To: <87zjkj6awm.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

i find you have to toggle the inline images (org-toggle-inline-images) two
times to do that. once to turn the old images off, and once to turn them
all back on.

C-c C-x C-v runs that command for me.

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Fri, Mar 21, 2014 at 7:36 AM, Andrey Tykhonov <atykhonov@gmail.com>wrote:

>
> Hi all!
>
> What I want to do is to generate image (better to say a path to an image)
> in the org-file and then see it posted in my blog.
>
> For example, I have such block:
>
> #+BEGIN_SRC text2image :exports results
> Foo
> Bar
> Baz
> #+END_SRC
>
> There is text2image command line utility which takes a text and converts it
> to the image, then returns a path to the image.
>
> When I execute that block by means of `org-babel-execute-src-block' that
> block executes correctly and returns a path:
>
> #+RESULTS:
> : [[/home/demi/images/2014-03-21-024756.png]]
>
> The issue is that that after execution of
> `org2blog/wp-post-buffer-and-publish' I'm expecting to see in the blog post
> the image but I see this path literally (instead of image):
>
> [[/home/demi/images/2014-03-21-024756.png]]
>
>
> How to fix that issue? Please help.
>
> I tried to change text2image program to return a path with a prefix "file:"
> and "file:///" but that didn't help.
>
>
>
> Andrey
>
>

[-- Attachment #2: Type: text/html, Size: 2168 bytes --]

  reply	other threads:[~2014-03-21 11:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 11:36 Generate and display image Andrey Tykhonov
2014-03-21 11:44 ` John Kitchin [this message]
2014-03-24  8:34 ` 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='CAJ51ETp1sFAXfx3oJtk8dLWQfaUBTze2EecRZ6KW=8Lyoam2gQ@mail.gmail.com' \
    --to=jkitchin@andrew.cmu.edu \
    --cc=atykhonov@gmail.com \
    --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).