From: Ihor Radchenko <yantar92@gmail.com>
To: dalanicolai <dalanicolai@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Advice for new feature 'image block` for new `sketch-mode` package
Date: Sat, 02 Oct 2021 17:48:18 +0800 [thread overview]
Message-ID: <87a6jrycyl.fsf@localhost> (raw)
In-Reply-To: <CACJP=3=yVFrL02gqwtkdXMN5zd=oVaMXr8mXc9x3vjK8T+_Uzg@mail.gmail.com>
dalanicolai <dalanicolai@gmail.com> writes:
> As svg is just xml, for small sketches I would prefer to insert directly
> the xml
> into the org-buffer within an image block, in which I can quickly toggle
> showing
> the image using `C-c C-c` (or `org-toggle-inline-images`). Also, exporting
> such
> xml should work perfectly fine when exporting to e.g. html.
> I guess a normal source block is not suitable, because I would like to
> create
> the image overlay directly within the block. I am happy to (help)
> implement(ing)
> such a feature, but I thought it would be wise to first discuss and
> 'enquire'
> for suggestions here.
You can try to define a special block and add appropriate
org-ctrl-c-ctrl-c-hook to display the overlay.
For defining special blocks, you can try
https://github.com/alhassy/org-special-block-extras/
Hope it helps.
Best,
Ihor
prev parent reply other threads:[~2021-10-02 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-20 18:19 Advice for new feature 'image block` for new `sketch-mode` package dalanicolai
2021-09-20 18:24 ` dalanicolai
2021-10-02 9:48 ` Ihor Radchenko [this message]
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=87a6jrycyl.fsf@localhost \
--to=yantar92@gmail.com \
--cc=dalanicolai@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).