From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Export attached image files Date: Tue, 20 Aug 2013 11:51:01 +0200 Message-ID: <20130820095101.GA19436@kuru.dyndns-at-home.com> References: <20130819110355.GA2147@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBiaj-0004fs-EJ for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 05:51:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBiah-0005SH-Oc for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 05:51:09 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:55664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBiah-0005S2-Ir for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 05:51:07 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so102627eaj.13 for ; Tue, 20 Aug 2013 02:51:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Johan Ekh Cc: "emacs-orgmode@gnu.org" Hi Johan, On Tue, Aug 20, 2013 at 10:34:06AM +0200, Johan Ekh wrote: > Thanks for your answer Suvayu! > > Sorry for being unclear. What I mean is that when I write reports or papers > using org-mode and latex exporter it is natural > to take care in storing my image files in a structured way on my disk and > use links in org-mode to incorporate the images > in my latex document. These image files will live on my disk more or less > forever. > > But if I write a note or some guide for myself regarding usage of some > software, or the settings in my router, I would like > to take a series of screenshots, quickly incorporate them into an org file > together with some text without having to rename > the screenshots with suitable names and organize them on my disk etc. I'd > like org-mode to store the images somewhere > in a data directory as an attachment, but of course I'd like the > screenshots to be incorporated in the pdf-file when I export it. That is a valid use case, but I do not think that is possible. Attachments are an Org only feature, meaning it is not meant for export. That said, it should be possible to use a custom function to "get" the attachments and add it to the end of the exported document using a hook; try this one: `org-export-before-parsing-hook'. To get an idea how to get the files, take a look at org-attach-open in org-attach.el. Once you have the filenames, just insert inline links at the end of the buffer: * Attachments [[./path/to/attachment1]] [[./path/to/attachment2]] This should solve your request. Hope this helps, -- Suvayu Open source is the future. It sets us free.