From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc.. Date: Wed, 27 Mar 2013 03:52:52 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKhQL-0001ht-4e for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 23:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKhQJ-0002vm-VW for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 23:53:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:54174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKhQJ-0002vW-OP for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 23:53:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKhQe-0005Gs-Lf for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 04:53:36 +0100 Received: from 137.110.34.176 ([137.110.34.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Mar 2013 04:53:36 +0100 Received: from ccberry by 137.110.34.176 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Mar 2013 04:53:36 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org zeltak gmail.com> writes: [snip] > one thing that i really found needing in my (very) short time using orgmode is > an easy way to insert images into orgmode [snip] > Also relates, how do you guys recommend currently to store the > images/attachment used in org files as link? pile them all in one big folder, > separate folder per org file, other method? any ideas would be greatly > appreciated :) Here is what I have done when needing to cut-and-paste a lot of images: ,---- | #+BEGIN_SRC emacs-lisp | (defun paste-clipboard-to-file (&optional filename temp-dir) | "Take a screenshot using the crosshairs and saveit to FILENAME, | if it is given or to a temp file in the TEMP-DIR | directory. Then add an orgmode style link at point." | (interactive) | (let* ((temporary-file-directory (or temp-dir "images")) | (fname (or filename (make-temp-file "img" nil ".jpg")))) | (call-process-shell-command (concat | "/usr/sbin/screencapture -s " fname)) | (insert "\n[[file:" fname "]]") | (org-display-inline-images))) | ;; | (global-set-key (kbd "C-c p") 'paste-clipboard-to-file) | | #+END_SRC `---- After running that block, I move to my *.org buffer, make sure there is an 'images' directory in M-x pwd RET, make sure I have an image somewhere on my desktop, then move my cursor to where I want a link to an image. C-c p launches the screenshot utility on my Mac ("/usr/sbin/screencapture -s " --- other OS'es will have something similar) and I make a selection. It displays in my org buffer, but I can toggle that off with M-x org-toggle-inline-images. It really helps in reviewing an article with lots of equations to just clip them out as I read and add a few notes. === You might try C-h i org RET C-s image C-s C-s ... to look thru the manual and see what it says about images. And/Or google 'worg image orgmode' HTH,