all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Charles Berry <ccberry@ucsd.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc..
Date: Wed, 27 Mar 2013 07:33:31 +0100	[thread overview]
Message-ID: <C3C25C95-BCF8-4880-8E72-4247D7A921E8@gmail.com> (raw)
In-Reply-To: <loom.20130327T043219-369@post.gmane.org>


On 27.3.2013, at 04:52, Charles Berry <ccberry@ucsd.edu> wrote:

> zeltak <zeltak <at> 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.


This looks pretty nice, gives me a lot to think about.  Thank you!

- Carsten

> 
> ===
> 
> 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,
> 
> 
> 
> 
> 
> 
> 

  reply	other threads:[~2013-03-27 17:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  0:47 Carsten's Interview relates questions, esay insert images, attachemnt locations etc zeltak
2013-03-27  3:52 ` Charles Berry
2013-03-27  6:33   ` Carsten Dominik [this message]
2013-03-29 20:39     ` Stephen
2013-03-27 13:18 ` Memnon Anon
  -- strict thread matches above, loose matches on Subject: below --
2013-04-19 17:53 zeltak
2013-04-20  3:15 ` Charles Berry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C3C25C95-BCF8-4880-8E72-4247D7A921E8@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.