From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sAKpCI1zFWaHcAAA62LTzQ:P1 (envelope-from ) for ; Tue, 09 Apr 2024 18:57:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sAKpCI1zFWaHcAAA62LTzQ (envelope-from ) for ; Tue, 09 Apr 2024 18:57:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712681868; a=rsa-sha256; cv=none; b=lXxakgieCKp0dpGXNcOeUimoeHFNpMt9kvBjNGTDk8A026yQqLl+4G5Yfkrc5zV4feBPnW c1jM2X/59xTDhoQ00deTR0tHLjmckci2LQ6GHQB/C3VflFFxPqQcaQaz0CzBZf/tRdm628 yFCfE5jzNF0/E4nOFr7nEoqKHs6VY0MNJWcxJL5ZLqxvmkxHtaFVoYf2pA0eu0FIoS3gQB DglidCvdzj85XWve8Ae2QEANVH3L/F+Pmq4eh8fI8629x5kX47wCApcAZL5Y5H9EyMy7xH wMoFcyoS4Taez2iLySVjvZmdNuz9XLewuaW/0fNVPmhGs520gWsG53qIpUh9xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712681868; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lUtHOtjw1RnwS4emOw8DIJOILC+3StQiWMDxHtrtZEk=; b=gaE2THyk21wrAd4enYnYSY+egLu44ZiXt0Ci6kL0SyIgKqn/3Bz2mz7D7TARK0GQFgigQS OqP2rYvYJhH4s1yC317QiksZQ83k0YyVVDifm4X2o2G1YjhUQrVVEP/Aojpkq23ilLBuEL 0Odi1Qi/xuf6q7yzuMJLoHumDNU+E+mQ2N7PQsuQM/fDDo2jpOycwKj9ditDnYy0xF4P2i v6OftMa3cI+aBKCxGYrEloXIGhpTzjhDiM1JQHyfqMlqiOEqShOSV6Xf6ceJJkjHdLPZhE KJO6QM+gz4E58yeMNrTAC2HVr96j+KH1hkBz0NO658eifmZySUAwoOJ//YE5OQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D958A7BB28 for ; Tue, 9 Apr 2024 18:57:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruEmP-0006iL-Ch; Tue, 09 Apr 2024 12:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruEmI-0006hM-IQ for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 12:57:00 -0400 Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96] helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruEmG-0002OA-Kt for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 12:56:58 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 3BDB9E41EC; Tue, 9 Apr 2024 18:56:44 +0200 (CEST) References: <87edbetyd3.fsf@k-7.ch> <87jzl638z1.fsf@localhost> User-agent: mu4e 1.10.5; emacs 29.3 From: =?utf-8?Q?S=C3=A9bastien?= Gendre To: Ihor Radchenko Cc: orgmode Subject: Re: When src block result is an image, how to define caption, html and latex =?utf-8?Q?attributes=C2=A0=3F?= Date: Tue, 09 Apr 2024 18:50:42 +0200 In-reply-to: <87jzl638z1.fsf@localhost> Message-ID: <877ch6tqyc.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -2.37 X-Migadu-Queue-Id: D958A7BB28 X-Migadu-Spam-Score: -2.37 X-Migadu-Scanner: mx10.migadu.com X-TUID: EVxZ7l0SKC48 If I place the #+CAPTION: and #+HTML_ATTR before the #+RESULTS:, then generate again the result of the source block, I got a new #+RESULTS: on top of the previous and its caption and html attributes. Example, before regenerate the source block result: #+CAPTION: Test image #+HTML_ATTR: :width 30px #+RESULTS: [[file:images/simple-test.png]] And after regenerate the source block result: #+RESULTS: [[file:images/simple-test.png]] #+CAPTION: Test image #+HTML_ATTR: :width 30px #+RESULTS: [[file:images/simple-test.png]] My version of Org-mode is 9.6.15 Ihor Radchenko writes: > S=C3=A9bastien Gendre writes: > >> When a source block create a result who is an image, how can I define >> the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR of this image=C2=A0? >> >> 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. > > I am unable to reproduce. The updated result does not displace the > affiliated keywords on my side, using the latest main and the latest > stable Org mode version.