emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Re: Managing Images with Org-mode?
Date: Thu, 2 Aug 2012 22:02:02 +0200	[thread overview]
Message-ID: <2012-08-02T21-51-18@devnull.Karl-Voit.at> (raw)
In-Reply-To: sh8vdy3gzp.fsf@frechet.suse.de

* Karl Eichwalder <ke@gnu.franken.de> wrote:
> Bastien <bzg@gnu.org> writes:
>
>>>     http://www.flickr.com/photos/keichwa/7649891572
>> Looks nice.
>>
>> How did you put the thumbnails in the Org mode file?
>
> Once I understood the differences between "inline images" (images
> without a description) and "linked images", it was easy:
>
>     [[file:path_to_inline_image__thumbnail.png]]

Inspired by your posting, I wrote this short yasnippet in case I
want to use something similar in future:

,----[ ~/.snippets/tls ]
| name : Insert a table with files of a folder including links
| # --
| #+BEGIN_SRC sh
| PATTERN='${1:*.jpg}'
| MYFOLDER='${2:$HOME/}'
| cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do echo '-[['\$MYPWD'/'\$file']]'; done
| #+END_SRC
`----

Obviously, this does not work this way with Windows.

There might be room for improvement - please follow up if you
optimized it :-)

One thing: the dash in front of the '[[' is mandatory. Well, it does
not need to be a dash though. Any other normal character (non-empty,
not space) works as well. I did not quite understand why and did not
pay further attention.

The script above results in an Org-mode *table*. To me this was a
minor issue.

Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
interest for you. On a per-file-basis this is: #+STARTUP inlineimages

-- 
Karl Voit

  parent reply	other threads:[~2012-08-02 20:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 11:36 Managing Images with Org-mode? Karl Eichwalder
2012-07-26 13:38 ` Karl Eichwalder
2012-08-01 12:26   ` Bastien
2012-08-01 12:59     ` Karl Eichwalder
2012-08-01 13:23       ` Bastien
2012-08-02 20:02       ` Karl Voit [this message]
2012-08-03 14:44         ` Karl Eichwalder
2012-08-03 18:49           ` Karl Voit
2012-08-04  7:01             ` Jeffrey Spencer
2012-08-04  7:03               ` Bastien
2012-08-04 19:34               ` Jude DaShiell

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=2012-08-02T21-51-18@devnull.Karl-Voit.at \
    --to=devnull@karl-voit.at \
    --cc=emacs-orgmode@gnu.org \
    --cc=news1142@Karl-Voit.at \
    /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).