emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Willem Rein Oudshoorn <woudshoo@xs4all.nl>
To: emacs-orgmode@gnu.org
Subject: Table formula and text properties
Date: Wed, 07 Jan 2015 18:11:25 +0100	[thread overview]
Message-ID: <m1y4pewm6a.fsf@Wims-MBP.fritz.box> (raw)

I am trying to insert an image into a table by using a table formula.
My basic approach is by using a string with a display property like:


  (propertize "TEXT" 'display (list image))


Or to be more precise

   (propertize "SPARKLINE" 'display
               (list (sparkline-make-sparkline
                        100 10
                           '(1 20 12 13 141 13 24 90))))

In which the `sparkline-make-sparkline' function returns an image.

Inserting the resulting string with `insert' into a buffer will ensure
the image is displayed.

However org mode table formula code seems to strip the display property
from the string returned by the formula.  So this trick will not work.

Is there a way to insert a calculated image into an org table?

Kind regards,
Wim Oudshoorn.


   

             reply	other threads:[~2015-01-07 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-07 17:11 Willem Rein Oudshoorn [this message]
2015-01-08 17:26 ` Table formula and text properties Michael Brand
2015-01-08 18:52   ` Willem Rein Oudshoorn

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=m1y4pewm6a.fsf@Wims-MBP.fritz.box \
    --to=woudshoo@xs4all.nl \
    --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).