From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GNtrI1R3FWZO4gAA62LTzQ:P1 (envelope-from ) for ; Tue, 09 Apr 2024 19:13:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GNtrI1R3FWZO4gAA62LTzQ (envelope-from ) for ; Tue, 09 Apr 2024 19:13:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hlwY6ioS; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712682836; 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:dkim-signature; bh=fJAhXQsBo50/72PMY4OLdTQnBPf7tKDFj88+lr6B35I=; b=sEGYN/kaZgbycb2nsdXZtUJj5NRjbLyJf2LnKO2t0i9HFb5yUdghc5iueQ0HbtHeIgV3U6 qUC8U793sfz5sSMDJwud3Wja6UpVgw9doSDsqtErrjjCCvX1oQwNkad2mwtqIYQi54R0G3 6IgWjGfHTt3oFFLBLfsqZV6SdVL3zjIsTSynB2lz2i5Lkx7UFLZYurgOzBGEWD1HPZyHZ9 VtH0wge9ojDPyBA+spExdvPA35mxJrEY/vf9HBuga6M2UzGWaoEHT9ne9d22ti1fcDC/DL /k8AphFeBNlHd/r+Dt+0CVziKed4cgHIG+U6mIXhGPR3v94l04X7i9xlSgGoOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712682836; a=rsa-sha256; cv=none; b=BPBGYDOy/Ozz0TaButn1rBy4PPM062v1n1zOSmzUL1Vu5kk+0sllvS3LkVOxCMB6el7HvD H81dYB/nPiQ2YSY9W9KoQv6mcLDpNueS/x5IyCCi9mEA3PtLMuzrbXsL9Go23/DRC+wxFi hD8m4f/bWMNDkfzmgdDaJswxaMQtKI+kVkvyXRfFjoXknIEKRKkYa3qRwJCPL6x8X3Bw17 GErx1wJy+1rGVv2DRQGqIV5KTIq2JyuihVuauzcd0hoLEshiBrkKhWqtNk2kNvKmpdCM4m Hmc38Z8PUDUey+Xk9oYNfALfKCa4hy7bNaBtQYQv+tA7XHop8bENcKB1ZQ/EUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hlwY6ioS; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 3E0D635017 for ; Tue, 9 Apr 2024 19:13:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruF1c-0002ug-9Q; Tue, 09 Apr 2024 13:12:48 -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 1ruF1a-0002uU-SI for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 13:12:46 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruF1Y-0005Bm-P3 for emacs-orgmode@gnu.org; Tue, 09 Apr 2024 13:12:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id ECD6A240027 for ; Tue, 9 Apr 2024 19:12:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712682762; bh=fJAhXQsBo50/72PMY4OLdTQnBPf7tKDFj88+lr6B35I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=hlwY6ioS4CAvRkumQeOKqvcqViIjM/BvN6PU5dywGMbPu2Faib6UQ0tMssI4ulz+V M2EFfNl15CoSwTi8te6QN+YLEAGdYSYRSJH3eTl+kBAnrFqg0TJ9JK7hBY85hiLbsr duHPsPNO1tsEpHisKUWq/IYYcPZPzuvtH+vMgEBit1JMx94br9Ljj3czwL2j8K9RXT Ggy4RfWMpN/gC9bXyOB67mbHYckC3tH6dxMovEc3kxWLN97a3d0Y/pOoWDZZNStbej 490o+BBVT4fsDobIsWGl62keTE27HtDxkH5gYEOtKND9MV3kH+L8OoljSSW0jn32cm KEiim0jyDQkPw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VDXZx2LRJz6tvs; Tue, 9 Apr 2024 19:12:41 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre 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?= In-Reply-To: <877ch6tqyc.fsf@k-7.ch> References: <87edbetyd3.fsf@k-7.ch> <87jzl638z1.fsf@localhost> <877ch6tqyc.fsf@k-7.ch> Date: Tue, 09 Apr 2024 17:13:01 +0000 Message-ID: <87pluypihu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-Migadu-Spam-Score: -5.58 X-Spam-Score: -5.58 X-Migadu-Queue-Id: 3E0D635017 X-Migadu-Scanner: mx12.migadu.com X-TUID: 6nOelemAbIme S=C3=A9bastien Gendre 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=20 #+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. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at