From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 ACFsNqxTIGVstAAAauVa8A:P1 (envelope-from ) for ; Fri, 06 Oct 2023 20:36:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ACFsNqxTIGVstAAAauVa8A (envelope-from ) for ; Fri, 06 Oct 2023 20:36:29 +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 42017410A0 for ; Fri, 6 Oct 2023 20:36:28 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iiBPHho8; 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=1696617388; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/8RLaXFnPUyGbYTzMWRMYfhkFT6HPyBwVhxxUXOCEjg=; b=J5ZG0OCFmkZYYxbnM0iuXvyuQmXNCb1nymAWQmgAvDcPEKZszG2J9YHetFOum6AuGjJc5y 5o7I/G+pOdVa+r5xaYyxyIK+RiucpZlratCNUL4/FZ1FxmP6Q7gPJmNX1cXMnjp6e0t9U7 mXtKXCntUdwrXLhK/87Waj8CBXXNn+a4fE6zuC7RUQw3UMZUoN+aoh1zlkefWD+cAVNRIy U9LFXmX3F1ZacXzbwN6G956L0sowQXZ+Mk/OTNm+uvgGCJ5La7E1VOcbL6YfkXRErH+LMm 8FQ8XdgAvdctZb/GPzW9vLpsAo7Csk921/P3PQyLYDVG5TyJpkk//1Zp/8NrMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iiBPHho8; 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=1696617388; a=rsa-sha256; cv=none; b=kih1Y5T75Cejk4UaKXrdKzcaAe1q26Zlp5uL04gWcSjM1WWmuGfyB13e0/LKM+TpZrQi6a cyx6VBvDZA4PMoOeoNr+JsMd6zN0Bp3OkYJkBocc19vgn97TKfYJFfYRNeoBKDY5W1ngY5 2cGPkyEC/mbALztf42WYmv18qeSqo4K4o/Jf8bch+jjAMytsIDEgbGTtLeWPNhC57z98Ps g/V+K8do4BqWgdJsrr+cd1+twTFPItBtRzYSxq2yvYTUFiJfLRyT++4Y6GSQplPFDGx4Z4 zf2ELvK6aV8m+Eh68Tp9pWu0xVQLJEh8lBXfiITco83TcSnv45gMiK5XEjKpqg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qopfr-0004QQ-8i; Fri, 06 Oct 2023 14:35:43 -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 1qopfg-0004Ia-WA for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 14:35:35 -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 1qopfW-0005uS-0P for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 14:35:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C0121240028 for ; Fri, 6 Oct 2023 20:35:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696617319; bh=f4Hfm4dWmD4BX4FgTFBUcpax5xW6aZAeHdEtY86AYWA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=iiBPHho88ZvTciShw1UsS70Dyv7Ezj5d4NZdJYBj9oSzGdbHjNwTOmXrN4POijG/A Jn1lm7vPuXYcyDnbMzc/9xF1TnBpQm7tE/uqJvTjS8FP4QwvoAkIXkGymJ7zy1ypa3 18TkzBaN5m+RhVsZAeYKUBGcE+VVu7tTurNQQqWP4tWlgXMtJ/hAIlEprKnhwmGkuR x6Wt2ZAaWjqUhg7/oqjeG2WUiBXmSM6IBlNpNaamK7flVckzYlg6hgddj/HuGAx99+ uexI7sRsFKFi81bBI0np2ufGx/myDpmTkX5bT4qgLkHqpFaYCYjlifSOT/w5An+Qir SB5eLl5GdXQ/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S2HD71Q0Nz6tw9; Fri, 6 Oct 2023 20:35:19 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: Are 'placement' and 'float' "obsolete terms" in inline images exported to LaTeX? In-Reply-To: <87zg0vg1do.fsf@localhost> (Ihor Radchenko's message of "Fri, 06 Oct 2023 16:29:55 +0000") References: <874jjatm6c.fsf@posteo.net> <87il7pw4oc.fsf@localhost> <87leclnkf7.fsf@posteo.net> <878r8ioiog.fsf@localhost> <87ttr6qwwr.fsf@posteo.net> <87zg0vg1do.fsf@localhost> Date: Fri, 06 Oct 2023 18:35:17 +0000 Message-ID: <87v8bj4n16.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@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_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: mx2.migadu.com X-Migadu-Queue-Id: 42017410A0 X-Spam-Score: -8.27 X-Migadu-Spam-Score: -8.27 X-TUID: /u2/Jg4du8F5 Ihor Radchenko writes: >> In tables there is more consistency because :float is a float >> environment (table or any arbitrary value) and :environment is a table >> environment (tabular or any arbitrary value). Here :placement :options >> and :align act as what is expected of them: >> >> #+ATTR_LaTeX: :environment foo :float var :placement [!h] :options [blah] :align cccc >> |a|a|a|a| >> >> ===> >> >> \begin{var}[!h] >> \centering >> \begin{foo}[blah]{cccc} >> a & a & a & a\\[0pt] >> \end{foo} >> \end{var} >> \end{document} > > This is not documented and is possibly a bug. I would say that it is the expected behavior: :float is for a float environment and :environment is for the environment that builds the table (by default tabular). According to the manual: #+begin_quote The table environments by default are not floats in LaTeX. To make them floating objects use =:float= with one of the following options: =t= (for a default =table= environment), =sideways= (for a =sidewaystable= environment), =multicolumn= [...] and =nil=. In addition to these three values, =:float= can pass through any arbitrary value, for example a user-defined float type with the =float= LaTeX package #+end_quote and (for :environment): #+begin_quote Set the default LaTeX table environment for the LaTeX export backend to use when exporting Org tables. Common LaTeX table environments are provided by these packages: tabularx, longtable, array, tabu, and bmatrix. For packages, such as tabularx and tabu, or any newer replacements #+end_quote The difference is that with images, except in cases of somewhat more complex constructions where there are subfigures, there is only one environment, "figure" by default or any other arbitrary one. There was a commit a while ago, I don't remember when, that allowed :float to support any arbitrary string as the float environment name, in images and tables. In images ':float t' is figure (by default) and in tables it is table (also by default). Update: ah, I already have the commit located, because I also remember that I myself sent a patch to update the documentation and correct a regression that that commit introduced (:float t produced an environment "t" (\begin{t}...\end{t}): https://list.orgmode.org/878ruhrvfq.fsf@posteo.net/