From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GHgJAtHNYGPPMQAAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 08:42:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SFvOAdHNYGPoYQEA9RJhRA (envelope-from ) for ; Tue, 01 Nov 2022 08:42:09 +0100 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 DA54D86F1 for ; Tue, 1 Nov 2022 08:42:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opltx-0006T5-Q6; Tue, 01 Nov 2022 03:41:37 -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 1opltw-0006Si-DR for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 03:41:36 -0400 Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opltu-000575-NL for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 03:41:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1667288489; bh=gwSD7u3sUtBMJQP3BrW/b4twjSDoHtRrK+20m+pvylQ=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=Pm8qs+h3vmonaP3EtLcUx7MNngvwPInxGBdT4x5edrFRBf/md5xw7k9xycnmVz1o9 nPyHufVX9JHVH+V5AXvISbvCY0hjQBpVIkEQ+nrcFfSBmCsIXyiZD/n3tZZ5GC/irH N56QRBhCu6BtL8Rzb56EJ8yE1NtVZgfotLRlXZMXxu0101zMtTb/TqjUV3jr2pDMAy hKSoA0vF6+7z8zQVFm4XAee0V5KHCdN9rLOl/MpjwRITzTDBwReNo5aqk+0Mk9Fihi IAtfU4lYsdmYiBO3iloA1JoEqH6nnWsfRQQvfZZX6aajk077QqAQYFqGY53zNOMvBh xB+f4hUCL7IwA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stella.c0t0d0s0.de ([46.114.109.92]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnakR-1pHR4W1h8H-00jXVB for ; Tue, 01 Nov 2022 08:41:29 +0100 Received: from stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 9EDEE180642 for ; Tue, 1 Nov 2022 08:41:28 +0100 (CET) From: Michael Welle To: emacs-orgmode@gnu.org Subject: Re: Exporting images to different output formats In-Reply-To: <87tu3m9ba8.fsf@localhost> (Ihor Radchenko's message of "Sun, 30 Oct 2022 04:37:51 +0000") References: <87wn8ic0ej.fsf@luisa.c0t0d0s0.de> <87tu3m9ba8.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 01 Nov 2022 08:41:28 +0100 Message-ID: <87pme76s0n.fsf@luisa.c0t0d0s0.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:tquP23E3ZjYNJlO8KDhr5yGrS/pHNPsRHEwt6MRNnKtMM86nP6y pgZ9aLY8eTqIsK3O6HfHA9CVclqBZ+n+WjFgU6t563nVgIAnQpqlffH35rRyQa/98ypB8tR naQKnZvyT/I2SLeLF1lom4+2xIoAg0o9yZ2BQUg7qxgjxSu4oI17tr7acjWUPgKNf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I= Received-SPF: pass client-ip=212.227.15.18; envelope-from=mwe012008@gmx.net; helo=mout.gmx.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667288528; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qxjAu2jZ/ZfHDOSGCawzX2gt5KJXPgmIrsEwKucvE7s=; b=Sx/TBgmA+1KgZZ/Umi+TbsWwFkXMLomA8XhTOkwman1msZD53iocdhkDQXRYYGfQUBI3/N 5RLsWdhYemjIhQYuc0BRGdJtvnTtaFXzJ3WuPV2Mbeq7I8EaOHF1PmJ4d8AJK7qcfZrHXO O2Hx5R/SN8WtXtTfnlsZRYR7qrTHPyE/zPAwAf67eZs1N3pUIq0bBYsQzjRjswKOKhcx7q EulRF/As6rNHTH61jvUhVokXS5kEWe3c9mRAW/JHNs9f49R09fdhvSQpHinXAYC6FHgdp6 uNcFua6jS4UdgIB1VUoRmpRfro9Cb8X7HEO7UQTT5c0d2R4Id7/K+TBSMFmWyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667288528; a=rsa-sha256; cv=none; b=oukW34foaV2xKWIgnLkhRDhI7tHyqKoLXpVwbm0CZUDn6ugW+6M8ILM2E3dQ5CR1TVRdxh 8lXbjBgqJIOOJqBYC5YA8d6jdM1gDSuLs+8V8yqMoZH1ZWrOpgQ0lY/KDDMTNG4aUTVIDJ NcHJbSKSbSKEYJPmR7SLWax4uwFwc1m4WanvQ5oKvbz9q00SOSiVDq4gcToQcWjU/5Scog 1NJiFiu8SffWtlNA+8gFuFz7OXw+k/d6riO0pKk9wfAx1g2ryR+RHuEaTTplkL8XBkpcH5 0y1KuiRIHt0s2sXQLbMeBFW48ZjKPu0QYOSN5zNqLoMUW4oNaAMhRcGYp2Js3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=Pm8qs+h3; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=Pm8qs+h3; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DA54D86F1 X-Spam-Score: -3.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: kZ7ZLLnCaGuv Hello, Ihor Radchenko writes: > Michael Welle writes: [...] >> {{{img(./foo, foo, barfoo)}}} >> >> That kind of works (and breaks if I want commas in the caption) > > Re: commas. See 13.5 Macro Replacement I found that shortly after posting. Works as expected. > (1) Since commas separate the arguments, commas within arguments have > to be escaped with the backslash character. So only those backslash > characters before a comma need escaping with another backslash > character. > >> , but is >> ugly as... and doesn't get better if I implement the other output formats. > > Agree. The proper way to implement this is special blocks + custom > export filter that will take care about backend selection. > > Also, see https://list.orgmode.org/orgmode/87y1yr9gbl.fsf@gmail.com/ > referring to https://github.com/alhassy/org-special-block-extras/ Ah, that looks promising. Thank you! All the best hmw