emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Carsten's Interview relates questions, esay insert images, attac


From: Carsten Dominik
Subject: Re: [O] Carsten's Interview relates questions, esay insert images, attachemnt locations etc..
Date: Wed, 27 Mar 2013 07:33:31 +0100

On 27.3.2013, at 04:52, Charles Berry <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]