emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Gendre" <seb@k-7.ch>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
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 18:58:21 +0200	[thread overview]
Message-ID: <87zfu2sc3u.fsf@k-7.ch> (raw)
In-Reply-To: <87edbeeddk.fsf@ucl.ac.uk>

If I name the source block, it work.

Is it because:

* When a source block is named, it's result is also named

* When a result is named, Org-mode can locate it and replace its value

* But when a result is not named, Org-mode insert a #+RESULTS: just
  after the block and create a new one if it cannot found the previous
  one right after the block

?


"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:

> On Tuesday,  9 Apr 2024 at 16:11, Sébastien Gendre wrote:
>> If I add them manually after the result generation, and generate again
>> the result, the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR are moved after
>> the result.
>
> Does this happen if your src block is NAMEd?



  reply	other threads:[~2024-04-09 17:03 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
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 [this message]
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

  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=87zfu2sc3u.fsf@k-7.ch \
    --to=seb@k-7.ch \
    --cc=e.fraga@ucl.ac.uk \
    --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).