From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included Date: Mon, 04 Dec 2017 11:02:19 +0100 Message-ID: <87d13u7qvo.fsf@mbork.pl> References: <87tvx99t3y.fsf@gmail.com> <87indo7s7o.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512381827 22401 195.159.176.226 (4 Dec 2017 10:03:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 10:03:47 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 27.0.50 Cc: Dan Hitt To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 04 11:03:38 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLnb3-0005C2-8q for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 11:03:33 +0100 Original-Received: from localhost ([::1]:41966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLnbA-0002ap-9y for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 05:03:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLnaZ-0002ZO-P0 for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 05:03:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLnaU-0000jc-No for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 05:03:03 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:44343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLnaU-0000jJ-H5 for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 05:02:58 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id BFD21E6267; Mon, 4 Dec 2017 11:02:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Akf5mDqgEkuZ; Mon, 4 Dec 2017 11:02:48 +0100 (CET) Original-Received: from localhost (unknown [62.3.162.22]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 92974E6051; Mon, 4 Dec 2017 11:02:48 +0100 (CET) In-reply-to: <87indo7s7o.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115188 Archived-At: On 2017-12-02, at 22:08, Marcin Borkowski wrote: > On 2017-12-02, at 21:31, Dan Hitt wrote: > >> The one aspect of org mode (or html) that is a sort of problem is that >> the images it shows cannot exist in the file itself, but rather float >> in the file system (or presumably served remotely over http). >> >> The problem here is breakage. The image can get renamed or deleted, >> and then the file.org is broken. >> >> That's why i would like something where the image is copied directly >> into the file. > > I'm pretty sure you could embed the image in some kind of a source > block, so that after executing it, the image file would appear in the > current directory. I could try to make a proof of concept tomorrow if > you're interested. OK, so here's my (quite simplistic, but apparently working well enough) solution: http://mbork.pl/2017-12-04_Embedding_files_in_Org-mode Hth, -- Marcin Borkowski