From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc.. Date: Wed, 27 Mar 2013 07:33:31 +0100 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKuA4-0005LL-MM for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 13:29:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKuA1-000154-PC for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 13:29:20 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:60387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKuA1-00014w-GG for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 13:29:17 -0400 Received: by mail-ee0-f41.google.com with SMTP id c1so2128929eek.0 for ; Wed, 27 Mar 2013 10:29:16 -0700 (PDT) In-Reply-To: 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: Charles Berry Cc: emacs-orgmode@gnu.org On 27.3.2013, at 04:52, Charles Berry wrote: > zeltak gmail.com> writes: >=20 > [snip] >> one thing that i really found needing in my (very) short time using = orgmode is >> an easy way to insert images into orgmode=20 > [snip] >=20 >> Also relates, how do you guys recommend currently to store the=20 >> images/attachment used in org files as link? pile them all in one big = folder,=20 >> separate folder per org file, other method? any ideas would be = greatly >> appreciated :) >=20 >=20 > Here is what I have done when needing to cut-and-paste a lot of = images: >=20 > ,---- > | #+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=20 > | "/usr/sbin/screencapture -s " = fname)) > | (insert "\n[[file:" fname "]]") > | (org-display-inline-images))) =20 > | ;; > | (global-set-key (kbd "C-c p") 'paste-clipboard-to-file) > | =20 > | #+END_SRC > `---- >=20 > After running that block, I move to my *.org buffer, make sure there = is an=20 > 'images' directory in M-x pwd RET, make sure I have an image somewhere = on my=20 > desktop, then move my cursor to where I want a link to an image. C-c p = launches=20 > 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. >=20 > It really helps in reviewing an article with lots of equations to just = clip > them out as I read and add a few notes. This looks pretty nice, gives me a lot to think about. Thank you! - Carsten >=20 > =3D=3D=3D >=20 > You might try >=20 > C-h i org RET C-s image C-s C-s ... >=20 > to look thru the manual and see what it says about images. >=20 > And/Or google 'worg image orgmode' >=20 >=20 > HTH, >=20 >=20 >=20 >=20 >=20 >=20 >=20