From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc..
Date: Wed, 27 Mar 2013 03:52:52 +0000 (UTC) [thread overview]
Message-ID: <loom.20130327T043219-369@post.gmane.org> (raw)
In-Reply-To: CAN2HUWg6f_WH8OpG0y5=Exoi+-P0UU0m4uzm6H845BVDihC1qQ@mail.gmail.com
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.
===
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,
next prev parent reply other threads:[~2013-03-27 3:53 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 [this message]
2013-03-27 6:33 ` Carsten Dominik
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20130327T043219-369@post.gmane.org \
--to=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 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).