* Displaying images inline @ 2008-08-22 21:52 Lindsay Todd 2008-08-22 23:00 ` James TD Smith 0 siblings, 1 reply; 10+ messages in thread From: Lindsay Todd @ 2008-08-22 21:52 UTC (permalink / raw) To: emacs-orgmode Is there a way to link to a file containing an image, and have the image display inline in org-mode? I know that if the org file is exported to HTML, it can be done so that the HTML file displays the image inline -- but I'd kind of like to be able to see the linked images from the org file itself, much like I can do with a muse file. (Although if there were a file-wide property to control whether or not that happens, it would be nice -- I could see maybe wanting to never inline in some files.) Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-22 21:52 Displaying images inline Lindsay Todd @ 2008-08-22 23:00 ` James TD Smith 2008-08-23 2:46 ` Sebastian Rose ` (3 more replies) 0 siblings, 4 replies; 10+ messages in thread From: James TD Smith @ 2008-08-22 23:00 UTC (permalink / raw) To: emacs-orgmode On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: > Is there a way to link to a file containing an image, and have the > image display inline in org-mode? I know that if the org file is > exported to HTML, it can be done so that the HTML file displays the > image inline -- but I'd kind of like to be able to see the linked > images from the org file itself, much like I can do with a muse file. > (Although if there were a file-wide property to control whether or not > that happens, it would be nice -- I could see maybe wanting to never > inline in some files.) You can do this using iimage; add the following to your .emacs: ;;iimage (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)) (define-key org-mode-map [(control c) ?i] 'iimage-mode) You can then toggle inline display of images in an org buffer using C-c i. -- |-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-| ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-22 23:00 ` James TD Smith @ 2008-08-23 2:46 ` Sebastian Rose 2008-08-23 23:55 ` Manish ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: Sebastian Rose @ 2008-08-23 2:46 UTC (permalink / raw) To: [emacs-orgmode] WOW!! Thanks for this one!!! :) James TD Smith wrote: > On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: >> Is there a way to link to a file containing an image, and have the >> image display inline in org-mode? I know that if the org file is >> exported to HTML, it can be done so that the HTML file displays the >> image inline -- but I'd kind of like to be able to see the linked >> images from the org file itself, much like I can do with a muse file. >> (Although if there were a file-wide property to control whether or not >> that happens, it would be nice -- I could see maybe wanting to never >> inline in some files.) > > You can do this using iimage; add the following to your .emacs: > > ;;iimage > (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)) > (define-key org-mode-map [(control c) ?i] 'iimage-mode) > > You can then toggle inline display of images in an org buffer using C-c i. > > -- > |-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-| > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-22 23:00 ` James TD Smith 2008-08-23 2:46 ` Sebastian Rose @ 2008-08-23 23:55 ` Manish 2008-08-24 9:32 ` Chris Randle 2008-08-24 13:21 ` Lindsay Todd 3 siblings, 0 replies; 10+ messages in thread From: Manish @ 2008-08-23 23:55 UTC (permalink / raw) To: James TD Smith; +Cc: emacs-orgmode Awesome! Many thanks. I used to toggle so much between an image (charts/graphs) and Emacs while writing about it but now.. wow! Thanks again. -- Manish On Sat, Aug 23, 2008 at 4:30 AM, James TD Smith <ahktenzero@mohorovi.cc> wrote: > On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: >> Is there a way to link to a file containing an image, and have the >> image display inline in org-mode? I know that if the org file is >> exported to HTML, it can be done so that the HTML file displays the >> image inline -- but I'd kind of like to be able to see the linked >> images from the org file itself, much like I can do with a muse file. >> (Although if there were a file-wide property to control whether or not >> that happens, it would be nice -- I could see maybe wanting to never >> inline in some files.) > > You can do this using iimage; add the following to your .emacs: > > ;;iimage > (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)) > (define-key org-mode-map [(control c) ?i] 'iimage-mode) > > You can then toggle inline display of images in an org buffer using C-c i. > > -- > |-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-| > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Displaying images inline 2008-08-22 23:00 ` James TD Smith 2008-08-23 2:46 ` Sebastian Rose 2008-08-23 23:55 ` Manish @ 2008-08-24 9:32 ` Chris Randle 2008-08-24 12:49 ` Manish 2008-08-24 13:21 ` Lindsay Todd 3 siblings, 1 reply; 10+ messages in thread From: Chris Randle @ 2008-08-24 9:32 UTC (permalink / raw) To: emacs-orgmode James TD Smith wrote: > On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: >> Is there a way to link to a file containing an image, and have the >> image display inline in org-mode? > You can do this using iimage; add the following to your .emacs: <snip> Every time I've tried to follow the instructions for getting inline images to work, I've had no luck. The iimage mode is shown, but links just stay as links. I think that my setup is capable of displaying graphics because I can see the GNU Emacs logo at Emacs startup. In principle, should iimage-mode work with Org-mode 6.06b, GNU Emacs 22.1.1 on Windows XP Pro SP3? If so, I'll take a closer look for where I may be going wrong. -- Chris Randle ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-24 9:32 ` Chris Randle @ 2008-08-24 12:49 ` Manish 2008-08-24 18:07 ` Daniel Goldin 0 siblings, 1 reply; 10+ messages in thread From: Manish @ 2008-08-24 12:49 UTC (permalink / raw) To: Chris Randle; +Cc: emacs-orgmode On Sun, Aug 24, 2008 at 3:02 PM, Chris Randle wrote: > James TD Smith wrote: > >> On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: >>> Is there a way to link to a file containing an image, and have the >>> image display inline in org-mode? > >> You can do this using iimage; add the following to your .emacs: <snip> > > Every time I've tried to follow the instructions for getting inline > images to work, I've had no luck. The iimage mode is shown, but links > just stay as links. > > I think that my setup is capable of displaying graphics because I can > see the GNU Emacs logo at Emacs startup. > > In principle, should iimage-mode work with Org-mode 6.06b, GNU Emacs > 22.1.1 on Windows XP Pro SP3? If so, I'll take a closer look for where I > may be going wrong. I think you need some libraries in emacs\bin directory. I have libpng3.dll, libpng12.dll, libungif4.dll, libXpm.dll, xpm4.dll, zlib1.dll there. You should be able to download them from http://gnuwin32.sourceforge.net/packages.html You may want to download for jpeg as well (though it hasn't worked for me yet.) HTH, -- Manish ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-24 12:49 ` Manish @ 2008-08-24 18:07 ` Daniel Goldin 0 siblings, 0 replies; 10+ messages in thread From: Daniel Goldin @ 2008-08-24 18:07 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 1635 bytes --] I've got the same problem running emacs 22.1.1 on Ubuntu 8.04, Org 6.06b. Images remain links when I toggle. Any thoughts? d. On Sun, Aug 24, 2008 at 5:49 AM, Manish <mailtomanish.sharma@gmail.com>wrote: > On Sun, Aug 24, 2008 at 3:02 PM, Chris Randle wrote: > > James TD Smith wrote: > > > >> On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote: > >>> Is there a way to link to a file containing an image, and have the > >>> image display inline in org-mode? > > > >> You can do this using iimage; add the following to your .emacs: <snip> > > > > Every time I've tried to follow the instructions for getting inline > > images to work, I've had no luck. The iimage mode is shown, but links > > just stay as links. > > > > I think that my setup is capable of displaying graphics because I can > > see the GNU Emacs logo at Emacs startup. > > > > In principle, should iimage-mode work with Org-mode 6.06b, GNU Emacs > > 22.1.1 on Windows XP Pro SP3? If so, I'll take a closer look for where I > > may be going wrong. > > I think you need some libraries in emacs\bin directory. I have > libpng3.dll, libpng12.dll, libungif4.dll, libXpm.dll, xpm4.dll, > zlib1.dll there. You should be able to download them from > http://gnuwin32.sourceforge.net/packages.html You may want to download > for jpeg as well (though it hasn't worked for me yet.) > > HTH, > -- Manish > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Daniel Goldin 213.926.1960 [-- Attachment #1.2: Type: text/html, Size: 2559 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-22 23:00 ` James TD Smith ` (2 preceding siblings ...) 2008-08-24 9:32 ` Chris Randle @ 2008-08-24 13:21 ` Lindsay Todd 2008-08-24 15:54 ` Taru Karttunen 3 siblings, 1 reply; 10+ messages in thread From: Lindsay Todd @ 2008-08-24 13:21 UTC (permalink / raw) To: James TD Smith; +Cc: emacs-orgmode On Fri, Aug 22, 2008 at 7:00 PM, James TD Smith <ahktenzero@mohorovi.cc> wrote: > You can do this using iimage; add the following to your .emacs: Thank you! I get the "underline" running right through the image, but that is tolerable. This helps me. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-24 13:21 ` Lindsay Todd @ 2008-08-24 15:54 ` Taru Karttunen 2008-08-24 17:30 ` James TD Smith 0 siblings, 1 reply; 10+ messages in thread From: Taru Karttunen @ 2008-08-24 15:54 UTC (permalink / raw) To: Lindsay Todd; +Cc: emacs-orgmode On 24.08 09:21, Lindsay Todd wrote: > Thank you! I get the "underline" running right through the image, but > that is tolerable. This helps me. That comes from the org link. It can be removed by customizing the link face used by org-mode. - Taru Karttunen ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Displaying images inline 2008-08-24 15:54 ` Taru Karttunen @ 2008-08-24 17:30 ` James TD Smith 0 siblings, 0 replies; 10+ messages in thread From: James TD Smith @ 2008-08-24 17:30 UTC (permalink / raw) To: emacs-orgmode On 2008-08-24 18:54:37(+0300), Taru Karttunen wrote: > On 24.08 09:21, Lindsay Todd wrote: > > Thank you! I get the "underline" running right through the image, but > > that is tolerable. This helps me. > > That comes from the org link. It can be removed by customizing the > link face used by org-mode. This will get rid of the underline whilst using iimage:. (defun ahkt-toggle-iimage-in-org () (interactive) (if (face-underline-p 'org-link) (set-face-underline-p 'org-link nil) (set-face-underline-p 'org-link t)) (iimage-mode)) (define-key org-mode-map [(control c) ?i] 'ahkt-toggle-iimage-in-org) -- |-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-| ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-08-24 18:07 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-08-22 21:52 Displaying images inline Lindsay Todd 2008-08-22 23:00 ` James TD Smith 2008-08-23 2:46 ` Sebastian Rose 2008-08-23 23:55 ` Manish 2008-08-24 9:32 ` Chris Randle 2008-08-24 12:49 ` Manish 2008-08-24 18:07 ` Daniel Goldin 2008-08-24 13:21 ` Lindsay Todd 2008-08-24 15:54 ` Taru Karttunen 2008-08-24 17:30 ` James TD Smith
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).