From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: images in orgmode Date: Tue, 02 Feb 2010 16:07:48 -0500 Message-ID: <87eil3bb2z.fsf@stats.ox.ac.uk> References: <4B685D5E.5020008@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcPyb-0001Ae-9g for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 16:08:01 -0500 Received: from [199.232.76.173] (port=50292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcPyb-0001AU-0z for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 16:08:01 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcPyW-0000q9-S7 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 16:08:00 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:59904) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcPyW-0000px-E7 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 16:07:56 -0500 In-Reply-To: <4B685D5E.5020008@fastmail.fm> (Erwin Panen's message of "Tue, 02 Feb 2010 18:14:06 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: erwinpanen@fastmail.fm Cc: emacs-orgmode@gnu.org Erwin Panen writes: > Hi all, > > I'm finally trying out image support for Orgmode. > I've set up .emacs ((23.1.1 windows)according to > http://orgmode.org/worg/org-configs/org-config-examples.php > After some slight modifications it seems to work. > > I created a test.org file like this: > ---------------begin test file-------- > * Let's add a headline > * And a secong one > ** Now a secondary level one > [[~/images/scenario_27.png]] > Try another one > [[~/images/scenario_27.jpg]] > > ** Yes!! This works!! > ** Now let's try this: > `images/scenario_27.png=C2=B4 > --------------end test file----------- > > Question: > When I click on one of the links between [ ] square brackets, my > window splits in half, and in the bottom half the image appears. > Looking at iimage here: > http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html#4.+Key+bin > It should be possible to visualize these images inline with the text > instead of a separate window. > > What needs to be done to achieve this? Any pointer to a concise tutorial?. This works really well. From Eric Schulte's Emacs Starter Kit[fn:1] Use M-x org-toggle-iimage-in-org to toggle links to images into the images themselves. (Maybe this should also go on Worg hacks?) ** Support for viewing images This allows for the viewing of images in-line in Org-mode documents. #+begin_src emacs-lisp (require 'iimage) (setq iimage-mode-image-search-path (expand-file-name "~/")) ;; Match org file: links (add-to-list 'iimage-mode-image-regex-alist (cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-= regex "\\)\\]") 1)) (defun org-toggle-iimage-in-org () (interactive) (let ((turning-on (not iimage-mode))) (set-face-underline-p 'org-link (not turning-on)) (iimage-mode (or turning-on 0)))) #+end_src Dan > > Thanks for your precious help, > > Erwin > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [fn:1] http://github.com/eschulte/emacs-starter-kit This is an org-mode literate programming fork of http://github.com/technoma= ncy/emacs-starter-kit.