From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gFp3HPYeeWL6YQEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 16:02:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wGlQHPYeeWJLygAAauVa8A (envelope-from ) for ; Mon, 09 May 2022 16:02:30 +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 01E8CE45E for ; Mon, 9 May 2022 16:02:30 +0200 (CEST) Received: from localhost ([::1]:38206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no3y0-0002QK-UQ for larch@yhetil.org; Mon, 09 May 2022 10:02:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no3wh-0002OG-KX for emacs-orgmode@gnu.org; Mon, 09 May 2022 10:01:08 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no3wa-0006pA-Sb for emacs-orgmode@gnu.org; Mon, 09 May 2022 10:01:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 68DDE24010A for ; Mon, 9 May 2022 16:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652104858; bh=03lK/GJGp0JblWOs0beYUwZ6kIZvozyYq7Ct7Q/w6j0=; h=From:To:Cc:Subject:Date:From; b=nR9Uz4yQmmNsJEr//e6vK7AGQ0TSsSY1CbGyfAZNr3Y39O94TRGBbH+rG4G5ALNnG uHVLZOUwBRm4dn2LkvNmcJ5axYgdnACxVIC+GHXfNyixpSfEJhmcu9SGLkhXxGxfqm 7Kar00duogdKaJSBLMI+7HieGTHWY5N6pWaBJTr/o2K9PFziGpGCdNh3ZPELfAJVS3 K2h4kyyK4Qgk7k8M6KW0rAoshLrSH057EtvnvHZ9XQmth64FLIN/ZJ8tBR9+ZWNmbT z69dvUGZs+kiVPn+Xpy4aUS5HWFZSMFNUj4Gl+OT3RKBnUODWXKoSTOuTA6p4Fcmm5 rVcmf63Aw4wRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KxjWF4QXxz9rxK; Mon, 9 May 2022 16:00:57 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Eric S Fraga , orgmode Subject: Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment References: <87o807r7fr.fsf@posteo.net> <874k1y3mb3.fsf@localhost> Date: Mon, 09 May 2022 14:01:01 +0000 In-Reply-To: <874k1y3mb3.fsf@localhost> (Ihor Radchenko's message of "Mon, 09 May 2022 20:47:12 +0800") Message-ID: <878rrakdpe.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652104950; 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=NNm1RDE8iLmSXd2XC6d2JWTDdsJ7hrJADWxcbqaK3I0=; b=oJoRnrNRccZiGEiyewvPy+ST4whXc3f8BIrWFCQN7FxyPTTicQeS4JHgequ8dXLU+f71Am ePksY0wL91K+O/Sr5P/yz9YNDTiO6JUELWGZAbOKqEeC/mWYP5lXi3Ul4ke98nG2X1qB96 pA5QcaDe5pAjesxkswYj4mwbvGQ6++dKuE0AXqa2F8yZlDQbI5AvS+PJFl+YdIgzLV6sY0 oEjQNhX1OxeyCCr+G8HNH8LsHucBfdGOiE6HbC+pVg50dmWAmTqXJh5aV7SpuFp28X9ifL R5JEgx4kCGUhmnt56KcGn5QdNuQ0iQWoUbGzzF1gc+OmVe1x97x887tUyNfvrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652104950; a=rsa-sha256; cv=none; b=p/drEXAeSPZ9xaQUcN/9POZZIruuK/T9JV7ZLKWV6QLAVHitIbgwjgw8JKvo9zMrvBMeJI 50b2fFZAPwdfRB2mYJbMHO5YHLCp3D2kXdmnSWX3DxtJNMRP88QxqnVwwGPHS2xgFcaP3H 0+yhZP1HJrK/Zefu5PEjpt7ZEa5+OxGMNAbShWMpPEzQq1hxaukD2rVSMHp16o84rg+N5a +1im0l3U0qyvv6r0XQTDSgsSMkrUsBDVmllK+knn7W4YUL6zCOzSdeB6tan5v98D13ffax DXl+Q91kjyplNU6fnyEd9ESDJAwL/9XDOR+gdgc76M2qoC8LKVaQ0TvxLV+93w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nR9Uz4yQ; 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" X-Migadu-Spam-Score: -4.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nR9Uz4yQ; 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" X-Migadu-Queue-Id: 01E8CE45E X-Spam-Score: -4.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: zmoI9/aDDwar Ihor Radchenko writes: > I'd be happy to see a built-in solution for this. > I feel that the ability to insert arbitrary LaTeX code near the > begin/end of environment would be generally a useful feature to have in > ox-latex. It could be done via #+attr_latex: :pre/:post > > Moreover, it would be useful to be able to wrap the whole chunk into > custom environment: > #+attr_latex: :wrap [options]environmant > > WDYT? I think they are both great ideas, especially the second one. Although ---as Eric says--- we can always use special blocks, a :wrap attribute would drastically lighten the readability of the document, and could be very useful in those complex constructions where we need to enclose a table or a figure in another environment (for example, with the threeparttable package and others like it). Best regards, Juan Manuel