From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Managing Images with Org-mode? Date: Thu, 2 Aug 2012 22:02:02 +0200 Message-ID: <2012-08-02T21-51-18@devnull.Karl-Voit.at> References: <87fw86re63.fsf@gnu.org> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx1b9-0006tw-Ll for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 16:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx1b7-0001yp-WD for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 16:02:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:56232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx1b7-0001yk-Oz for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 16:02:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sx1b6-0004dP-TL for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 22:02:16 +0200 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Aug 2012 22:02:16 +0200 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Aug 2012 22:02:16 +0200 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: emacs-orgmode@gnu.org * Karl Eichwalder wrote: > Bastien 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