From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kCWwHMGLGWUmIwAAauVa8A:P1 (envelope-from ) for ; Sun, 01 Oct 2023 17:09:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kCWwHMGLGWUmIwAAauVa8A (envelope-from ) for ; Sun, 01 Oct 2023 17:09:53 +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 D7F205102D for ; Sun, 1 Oct 2023 17:09:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aKawOm0w; 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=1696172993; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LjTY0Nfen/U6Q1ggDCD5TmClmAgoTokNs47p2AeSH9s=; b=E41ePfxp8l/hAwrLHF8+2C/QpbuhOjF+ZsLwEXxbvNlTsEFNi59HC8XzIJ0JJCM+/VuhT0 ViQuK4K1/3pFu9gWzOiXm722xNxQPLyxLVm3J1gYPcm24D8XrwRZBuTTxupj69rcnYncsU LwBdEqDxIaSZ3pcM2kmSt+MOAtTOpulz2oujKeQyHJkGmBpcOzNSO842JUK8RLypvRV6ut yf+oRpZzYYeAF7vC2P90O6X2p5Zch/4TKo4WoVaP0gI5dPPycD68NgDKjw5+yLXk0X8rwI nqBK0Lfnpg9XRzs/TRQFEuclxavnATNEMi9dgl4TIF7hTuuXcKum94vg6Fkz/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696172993; a=rsa-sha256; cv=none; b=Fqci4nsCkWP24Y1pOlqSc3msovRDkg+9mCqxu8LofdwI68x1K6BOSlHgaETLOFdD0QFIUi RKPi7dR/2HvAbXXHgha4W55mBnrdnzA/z7NmnuH9PsorwK7yUxNgqXaLOV0xHc/g28IDuH UKYo9hZxihY1GxxMSlHm2y0s2p9RAjpkat1yXZ/rSZDDpsr+4uaSv8AdKbBP5beC8YTbxB rANZDqnpNdSssaAuftrT7/LcCVlLz+ev7L8TrxmGdApTTZ6NvGH0rRw2DFkjIBilcNoYmW rplZes4YYcHRA431u+vybrP7/cG+ATKA7+aC2tE+BOTU/W0lcL16bdWzwsNjFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aKawOm0w; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmy3y-0004Xw-Lm; Sun, 01 Oct 2023 11:08:54 -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 1qmy3w-0004Ri-D6 for emacs-orgmode@gnu.org; Sun, 01 Oct 2023 11:08:52 -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 1qmy3t-0007a4-FZ for emacs-orgmode@gnu.org; Sun, 01 Oct 2023 11:08:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E8525240101 for ; Sun, 1 Oct 2023 17:08:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696172925; bh=LjTY0Nfen/U6Q1ggDCD5TmClmAgoTokNs47p2AeSH9s=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=aKawOm0wUFuXsW3+7N912CE6CP2Ui0jMfQjOtb4IiCep5I2MutehDJI0ug3t14Eif WvyItef6A6QFp8P6nV42AJ/NVi4OSnR+dqEiL1OjP7HekHbR5oGbGcIoPYS2j3KH6V bNE/045ywivHrWoODorsZsBG2ue9sV+HnshOm0cunfm1HMsKObCrM/EpdMaUAUi+i0 yUYX33WIATLCLryTIcnhID2cvPG4T/prbN9yDDRswMC/Qs1lxxiRqDIEqDS3biwJNe qn65qk0OZhwVYevkzkmmyAXvtFJr3QnVSxNspPH+uPn186MdpbeqMBvkzD/ny83HKF ilNNK7nj+ObwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rz6t5414Gz6tvJ for ; Sun, 1 Oct 2023 17:08:45 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Are 'placement' and 'float' "obsolete terms" in inline images exported to LaTeX? Date: Sun, 01 Oct 2023 15:08:43 +0000 Message-ID: <874jjatm6c.fsf@posteo.net> 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=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.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=-1, RCVD_IN_MSPIKE_WL=-0.01, 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-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.70 X-Spam-Score: -8.70 X-Migadu-Queue-Id: D7F205102D X-TUID: 3qy5v/Ul85a9 I don't know if this nomenclature issue that I'm going to raise is excessively formalist, but here it goes. Since the header arg :float now supports any string in inline images exported to latex (that is, ':float foo' is exported as the environment \begin{foo}=E2=80=A6\end{foo}), the header arg :placement can be used for m= ore than just "placement". For example, this: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 #+ATTR_LaTeX: :float minipage :placement {\textwidth} =E2=94=82 [[file:/usr/share/texmf-dist/tex/latex/mwe/example-image-a.jpg]] =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 produces in LaTeX this: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 \begin{minipage}{\textwidth} =E2=94=82 \centering =E2=94=82 \includegraphics[width=3D.9\linewidth]{/usr/share/texmf-dist/tex/= latex/mwe/example-image-a.jpg} =E2=94=82 \end{minipage} =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 (in this case :placement is exported as the required minipage argument, which is its width). An example of more "unexpected" (but very practical) uses is this one with three subfigures and the subcaption package: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 #+caption: Main caption =E2=94=82 #+begin_figure =E2=94=82 #+CAPTION: subcaption 1 =E2=94=82 #+ATTR_LaTeX: :float subfigure :placement {\textwidth} :center ni= l :width \textwidth =E2=94=82 [[file:/usr/share/texmf-dist/tex/latex/mwe/example-image-a.jpg]] =E2=94=82 @@latex:\vspace{2ex}@@ =E2=94=82 #+CAPTION: subcaption 2 =E2=94=82 #+ATTR_LaTeX: :float subfigure :placement {.4\textwidth} :center = nil :width \textwidth =E2=94=82 [[file:/usr/share/texmf-dist/tex/latex/mwe/example-image-a.jpg]] =E2=94=82 @@latex:\hfill@@ =E2=94=82 #+CAPTION: subcaption3 =E2=94=82 #+ATTR_LaTeX: :float subfigure :placement {.4\textwidth} :center = nil :width \textwidth =E2=94=82 [[file:/usr/share/texmf-dist/tex/latex/mwe/example-image-a.jpg]] =E2=94=82 #+end_figure =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 (In all three subfigures, :placement is exported as the subfigure environment argument, which designates the width of each subfigure). I think this is a case where certain elements of Org have evolved (consciously or unconsciously) ahead of the names, and these names have become somewhat outdated. There is not only the case of :placement. Even :float seems imprecise, since can be used to create a minipage, and the minipage environment is not a float environment. Would it be worth making those names obsolete (with backward compatibility, of course) and replacing them with slightly more precise ones? I think that new names would give the user an idea of more variety of uses, like the examples I have put here. Best regards, Juan Manuel=20