From: Ihor Radchenko <yantar92@posteo.net>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: When src block result is an image, how to define caption, html and latex attributes ?
Date: Tue, 09 Apr 2024 17:13:01 +0000 [thread overview]
Message-ID: <87pluypihu.fsf@localhost> (raw)
In-Reply-To: <877ch6tqyc.fsf@k-7.ch>
Sébastien Gendre <seb@k-7.ch> writes:
> Example, before regenerate the source block result:
>
>
>
> #+CAPTION: Test image
> #+HTML_ATTR: :width 30px
> #+RESULTS:
> [[file:images/simple-test.png]]
You have a typo in one of the affiliated keywords.
Should be
#+ATTR_HTML: :width 30px
#+HTML_ATTR: is a very different construct - a full keyword rather than
affiliated keyword. So Org mode sees your
#+CAPTION: Test image
#+HTML_ATTR: :width 30px
and then
#+RESULTS:
[[file:images/simple-test.png]]
as two separate paragraph-like elements, while babel is only looking at
the first following elements for an existing result when the block is
not named.
P.S.
We should really indicate the difference between normal and affiliated
keywords better.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2024-04-09 17:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-09 14:11 When src block result is an image, how to define caption, html and latex attributes ? Sébastien Gendre
2024-04-09 14:29 ` Ihor Radchenko
2024-04-09 16:50 ` Sébastien Gendre
2024-04-09 17:13 ` Ihor Radchenko [this message]
2024-04-09 18:20 ` Sébastien Gendre
2024-04-09 18:37 ` Ihor Radchenko
2024-04-09 15:59 ` Fraga, Eric
2024-04-09 16:58 ` Sébastien Gendre
2024-04-10 7:06 ` Fraga, Eric
2024-04-10 14:55 ` Sébastien Gendre
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pluypihu.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=seb@k-7.ch \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.