From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4NVqAlM8NmUK/AAAauVa8A:P1 (envelope-from ) for ; Mon, 23 Oct 2023 11:26:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4NVqAlM8NmUK/AAAauVa8A (envelope-from ) for ; Mon, 23 Oct 2023 11:26:43 +0200 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 87C615BD1A for ; Mon, 23 Oct 2023 11:26:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ViJbqWqR; dmarc=pass (policy=none) header.from=posteo.net; 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=1698053203; a=rsa-sha256; cv=none; b=U9HZpL5xc7rU9yvKkib1iIgFCv15K9zqtYeZ+yWI5ddwv0dgOrZHUQyoeIsdPa9pFOnbv3 F3quI1n6cVKeKMe3zSADdbdz22OSNXm4OhJzV36KexIaDdpRuERdfqh4jQD2mTqMGvNHOn SsbnHl4xCAJ59gWioylgoeBJzPFskHfg2umw/IJ6CKntpelYfVb6fdgLZPzjYqwg8MqOV5 Yv64o7rjG35NwRLXKgLZT96hf0vdUTrCkrXUfCSO7e1splQ0S2V8Nwlb/EOvDxa50RlUU0 5+SM3bUEdHGwCaq85koivX0zJJxjdD3SxJJBke7LOBh8YS74+jiq7ZGAV53mUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ViJbqWqR; dmarc=pass (policy=none) header.from=posteo.net; 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=1698053203; 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=SYC8lI07NV+5iun+t7Bg+UmZHFEcNDw0F/WEkYijITI=; b=ds1xXjoxhUWVs5y/22NU0rpDKBxAhYLWENCDXD8Y4MC8m9T3R2DGE5bLmmxfwYtf5/rO6e WnT6wkKeU9396AZKyx3btyxAfvhuMwVE1nX15t5uKvvZJfh4mZnVKCvWSOK/dolgDzmMch slMXtVpSrZiN2l4frIpJ7/nN5SKdZ2co1RDLORi2jiGPLGeMVoEEh6sNnVvl0bhgKG4/Bi Wun7OZCnLwDEnjlUwitUw1JUqlmrCqtbuIGkYK/nlbxghdgAdEWsSPABlH2+ck3DNsz8ti ov3Ib84TojwMjpoKkrvMMPjv5uFKuGn/+4kyUOe967hCrFuhwpZBNCEqyecsaw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qurCC-0008U3-Nr; Mon, 23 Oct 2023 05:26:00 -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 1qurCA-0008Tr-Uv for emacs-orgmode@gnu.org; Mon, 23 Oct 2023 05:25:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qurC8-0003YV-ES for emacs-orgmode@gnu.org; Mon, 23 Oct 2023 05:25:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4C079240104 for ; Mon, 23 Oct 2023 11:25:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698053154; bh=SYC8lI07NV+5iun+t7Bg+UmZHFEcNDw0F/WEkYijITI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ViJbqWqRa62cH3CAKEFsfu/8JUlrws1t0Si2ieHaSv5OZOvu5QiLtVN8IthoNZx/9 NTL/JLgnoYiRL5AOZphOhOvRgX+YIXYskf1M80HVZ2AZlRDVx1svFRH7vocwYQnJyY i+Pa1g++zkPo1zTPiT1E8yiO+ckvwI/xR/NueLSXjVr1ZPldU6T2NgDmcipMtHjn4I YVIsTbucV02cXFDkfAVDS9e4SkqaZGxV+TeJXD18bONlkQjhGbSyD9oN3/tXtcFu3T EiAlici3Vok7walE0DOb7J1cCmr1LznrpwVdmjo5+3Zo+EfF+26BSquw8WRdsdBjwg u/GfnCSzkSt6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SDVDK5Cyhz9rxM; Mon, 23 Oct 2023 11:25:53 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: Are 'placement' and 'float' "obsolete terms" in inline images export In-Reply-To: <877cneicop.fsf@posteo.net> References: <877cneicop.fsf@posteo.net> Date: Mon, 23 Oct 2023 09:27:36 +0000 Message-ID: <87zg098z93.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.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H5=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.33 X-Spam-Score: -6.33 X-Migadu-Queue-Id: 87C615BD1A X-TUID: NOSIOOTUVYgj Juan Manuel Mac=C3=ADas writes: >> So, the difference between :environment and :float is that :float also >> encapsulates \caption in addition to the actual environment (like >> tabularx or includegraphics) used for transcoded exported element. > >> I can see how :float+:placement can be imprecise and that the existing >> :environment indeed serves a different purpose. (It might be worth >> clarifying this distinction in the manual - it seems arbitrary from >> the first glance). > >> But what would be the better name then? > > I think the problem is limited to images, where there is no "double" > environment as in the case of tables (float environment that encloses an > environment to generate the table, and :placement points to the correct > environment). IMHO, an equivalent of :environment for images is \includegraphics or \includesvg. > ... In the case of images, I am afraid that the new features > have advanced the meaning of the old ones. Previously, :float only > supported t/nil ("figure" by default, in case of t) along with a few > explicit "float" environments, such as sidewaysfigure or wrapfigure. > Since :float now can accept any string as an environment name, Pandora's > box has been opened and the meaning of the old :float has been left > behind: for example, we can put :float minipage, and minipage is not a > float environment. Something similar has happened to :placement. > > My suggestion is to add a :environment attribute next to another > :environment-options attr (or something like that, to introduce any > arbitrary LaTeX code). A LaTeX image can be enclosed in many environment > types, float or non-float. As I said above, I feel that :environment term will be overloaded then. What about :wrap? > ... However, :float can still be useful for > certain combinations. For example, a minipage environment cannot include > a caption (it produces an error of the type "LaTeX Error: \caption > outside float"). Do we know in advance which environments support \caption and which not? I feel that we may handle this programmatically without creating an array of almost-identical attributes. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at