[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Wow -- adding images to an org file

From: Daniel Martins
Subject: Re: [Orgmode] Re: Wow -- adding images to an org file
Date: Sun, 9 May 2010 12:05:56 -0300

In short

What I have to do (minimal code in .emacs and .org) to display an image?

This image will be maintained when I export the file?

iimage could be included in org distribution?


2010/5/8 Carsten Dominik <address@hidden>

On May 7, 2010, at 2:58 PM, Dan Davison wrote:

Carsten Dominik <address@hidden> writes:

On May 7, 2010, at 4:16 AM, Chris Thompson wrote:

Nathan Neff <nathan.neff <at> gmail.com> writes:

I just saw Andreas's screenshot here:


If you zoom in to his screenshot,

You can see how he adds images to his org files.
All that I had to do was put this into my emacs init file:

(defun org-dblock-write:image (params)
(let ((file (plist-get params :file)))
  (clear-image-cache file)
  (insert-image (create-image file) )))

Then, put this in an org-file:

#+BEGIN: image :file "~/Documents/personal/foo.png"

And run C-c C-c (or is it C-c C-x C-u)?

Anyway, Cool stuff!


Another way to have images in org-mode documents is to use the
minor mode, which handles  inline images:

For additional documentation:

At that place, I find this code:
(add-to-list 'iimage-mode-image-regex-alist (cons (concat
\(~?" iimage-mode-image-filename-regex "\\)\\]") 1))
(defun org-toggle-iimage-in-org () "display images in your org file"
(interactive) (if (face-underline-p 'org-link) (set-face-
underline-p 'org-link nil) (set-face-underline-p 'org-link t))
I guess I could actually add the above code to org.el, so that the
only thing to do for a user would be to turn on iimage-mode.
What is the purpose of toggling the underline property of the link face?

It puts a horizontal line through the middle of the displayed image
(haven't checked if that's fixed in latest emacs).

I see.

We have now native inline image display in Org-mode, you can toggle it with

C-c C-x C-v

This implementation uses overlays instead of text properties and therefore does not interfere with font-lock.

- Carsten

Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]