emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Johan Ekh <ekh.johan@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Export attached image files
Date: Tue, 20 Aug 2013 11:51:01 +0200	[thread overview]
Message-ID: <20130820095101.GA19436@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <CAH13ZgiQurtcVZY-+rs7v15gh0_487aCO4DBtD=LZ87ukxQicw@mail.gmail.com>

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.

  reply	other threads:[~2013-08-20  9:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-19 10:05 Export attached image files Johan Ekh
2013-08-19 11:03 ` Suvayu Ali
2013-08-20  8:34   ` Johan Ekh
2013-08-20  9:51     ` Suvayu Ali [this message]
2013-08-20 12:42     ` Dieter Wilhelm
2013-08-20 15:41     ` Charles Berry
2013-08-20 18:37       ` Rick Frankel

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=20130820095101.GA19436@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=ekh.johan@gmail.com \
    --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).