From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CE0TOMAsHWXEPQEAG6o9tA:P1 (envelope-from ) for ; Wed, 04 Oct 2023 11:13:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CE0TOMAsHWXEPQEAG6o9tA (envelope-from ) for ; Wed, 04 Oct 2023 11:13:37 +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 C4F345A9E1 for ; Wed, 4 Oct 2023 11:13:36 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MTu0XKAm; 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=1696410816; 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=npwqvo3afJe84oKht3IoM08PJBqPldPCD4/xkgnttXo=; b=dNXzRSymhEbMndczFpmpfaqlMdN0aWw6kDNYTZGz/8DIF3nNRB467HhNRVCoI6xxbuazh3 IVfhS34MG3UrmSXmovn6EMninHAHquUGGESlBXllFC1pkntVn9mtwUGtQ8yJ3/yurysrUy UFSOc17cLZX0tQ3kr+Sywbm0UcTBo24hPm1ciT3WgTmy9rnp+msffbJmY+yacS+NWj9aEp KIZmdoqEkFTOEncnVNYJJczCF3jVZMidSUOU1HTFX3PWltFP8vIDH25UUoj2gXOG5WvV24 VnYOvMycauogijQ1SpGXcpqmhOmlptqAIUm0ok45aC4rfkPtIML0OzTTEFxQCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MTu0XKAm; 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-Seal: i=1; s=key1; d=yhetil.org; t=1696410816; a=rsa-sha256; cv=none; b=eZGtocuL2/fvD/PxqFVaI5Urkzeffny7AU5cdDJBB0SOdUEUBVYMry6jVAfA5wp3ltgdRJ skaBQqZYDTDO/EsUHvQsr3gfWK08Covtfvww10Bs17XKC8IJVoS8k2dGh+KAleaFXfcx+y qt/khD33uBlFjAYNIdbMGJXrhaXMx+AF8ov7xh8+zJQ0at0+V7G51ZRY9cXzc9ymAfUDS7 Xbnn48HzTm13E4FgJHeFcFTeEWOiAq3bPF5BIp8S/Ll4LJq6K3+wL9odKhPbOtj7NKDUvQ R9OznGzXq8yvOK+PdDzQTlMSFFAt5yydftwldZ8wXyMBv9wIkvb6iU6vjxkPPw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnxuG-0007Qu-1b; Wed, 04 Oct 2023 05:11: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 1qnxu1-0007NQ-JS for emacs-orgmode@gnu.org; Wed, 04 Oct 2023 05:10:50 -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 1qnxty-0008AA-AF for emacs-orgmode@gnu.org; Wed, 04 Oct 2023 05:10:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 08FA8240101 for ; Wed, 4 Oct 2023 11:10:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696410639; bh=npwqvo3afJe84oKht3IoM08PJBqPldPCD4/xkgnttXo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=MTu0XKAmqZhalEfIJQqaeIRlm0/xOyvDxvMch1bJ6mAFvH5BrFzZsOQnBes2EQUw8 +xvzgxqWh5wBSvRQRnvcaQ1766IFx3L0z5oNYboCOzVgbXTeOFDHEK11W8y691hgyn aqVLSfBXsZVNpnA7DZEryWhunkAXK56xUGYx1Jf9a67qvKuYs2JatPRDwhVvmEG6yK VkcKUg8u0H8y3KCab0kl5YkIOLxy+4p8+d5g1tdOjR0r5q/eEB8ZgEU3uzc9cr5HEK uUbHYfLX5e1N4fWuD9O+Fi6RoVMQ6nlmdLW1DRGTlqPuogPJbh6dBdUkQkJvBkGGZw dczJF8DwtmnFQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S0pnV36H4z6tsf; Wed, 4 Oct 2023 11:10:38 +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 exported to LaTeX? In-Reply-To: <87leclnkf7.fsf@posteo.net> References: <874jjatm6c.fsf@posteo.net> <87il7pw4oc.fsf@localhost> <87leclnkf7.fsf@posteo.net> Date: Wed, 04 Oct 2023 09:12:15 +0000 Message-ID: <878r8ioiog.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.34 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: C4F345A9E1 X-Spam-Score: -4.34 X-TUID: m3bUZ7ubkC8E Juan Manuel Mac=C3=ADas writes: >> I am not sure about obsolete - I see not reason to obsolete the intended >> use case. Your example is rather an abuse. > > Why abuse? First, it works like a charm. Second, if :float can support > any string as an environment name, why not minipage or subfigure? As for > :placement, the term would seem more precise to me if it were really > "placement" (as :align in tables is actually "align"), not LaTeX code > passed directly after the \begin{...}. That a user can put things like > this (I do it often, and I think I'm not the only one): > > :placement [htbp]\SomeExtraLaTeXCode... > > it is a consequence of the above. It is not an "orthodox" use (I mean, > it's not described in the manual), but it works without problems. Again, > I don't want to seem too picky about the names, but a user who doesn't > understand the source code might think that :placement only supports > things like [htbp]. My idea here is: instead of implementing new > features, recycle and take advantage of those that arise unexpectedly > :-). Although :placement was created thinking about putting code related > to placement figures, as it is implemented I would have called it > :latex-code or something similar. :float is only used for (1) tables; (2) src-blocks; (3) inline images that are a sole element in their paragraph. But not for other Org syntax elements - you cannot, for example, wrap a paragraph or heading into custom environment with :float. Further, we also provide :environment and :options attributes that do the same thing, but without special treatment of standard t/multicolumn/wrap/sideways/nil values in :float. >> What we might do it to introduce something like a new :wrap attribute: >> >> #+attr_latex: :wrap subfigure,{\textwidht} So, it might be even better idea to extend :environment/:options attributes to more elements - their names make more sense and the values do not have a pre-defined special meanings. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at