From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yE1tNj8ReWJAWwEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 15:04:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wBKENT8ReWLiWAAAG6o9tA (envelope-from ) for ; Mon, 09 May 2022 15:03:59 +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 780A53C07 for ; Mon, 9 May 2022 15:03:59 +0200 (CEST) Received: from localhost ([::1]:52748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no33O-00078Y-G2 for larch@yhetil.org; Mon, 09 May 2022 09:03:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no2mU-0006Co-Mf for emacs-orgmode@gnu.org; Mon, 09 May 2022 08:46:30 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:43560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1no2mT-0001IS-BA for emacs-orgmode@gnu.org; Mon, 09 May 2022 08:46:30 -0400 Received: by mail-qt1-x833.google.com with SMTP id hh4so10833003qtb.10 for ; Mon, 09 May 2022 05:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=XpErqLC989+OTnWkgemxGSoFPFaNhQ17UfH0SfjfGrY=; b=pN3NMxyFBkmaYDRPtGHf0wSR2pHXSSwuTg+Sku7fMazVzSEkUACCTKzTAMfxZ0U/g3 xejHKXjd0IYSxmKKZOTy59L63px0PLbpvRd30ieenJwYI6ltP3VgOO68fJmPfUzI1rBp ba7yU3pNwYGzIPk32Mc3QPoNTRrMALzh35WNVvi3F9V/EgikB3gG/e4QJ+R0WfR7/Uwn vNSBV2/kYNvhAXQhP050k9WMBbb76QFHxqS3HrEGtQ8/EFpYNDsC5icDNDu0GZz6TWlO hZnOfXj9fom/23GtH63icQm0ML7eOgfuEWbHDaiL9mnKdpxWWB/ZIEFfkj+X31G3nsRF ByIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=XpErqLC989+OTnWkgemxGSoFPFaNhQ17UfH0SfjfGrY=; b=TT3w0J1SN8Af/o3DwviNjHleghaTQWVrdfW4htOqWIjoZYNwXY4LH6ifuvb+qnz+bP MqzI+gzB1VqtTVhYwbcT/z0vPdcCOHJR1TLtQT5ET0EqOos4znRsrjd7942BD17Pe8z7 J97khi2EOH1iU1T//4Ug311rvkPPTGlifxhLB+Gxjvj1MgZBUFxjEzoUL1KY2hl7Hzb4 lfAu+Fl6wwAUiP/CJuLADZYOHOaUKl/yUq1IFq9ZIm4esMf+5h98T5D7bmEIsizWSq8a vsQqLGG9y39DR+hKecc96dSK+iGQw/cziApg4g2gZEnJY3N598BCRCO5WjzKZ1sz9d4U 0p9g== X-Gm-Message-State: AOAM533EWRWRHSOPj3k3XRWqz9CXO15r8kNKxQavASdEyjVpxkbuj+jL p4nfPNBPfrD/0RHzLoCIG3c= X-Google-Smtp-Source: ABdhPJy0JvNBZL070f3Y3VmaGld1931Cgp8cThY2dHQ6qVrPNWJEAGJCSnTgqfU64g2bVSc4ojcKmQ== X-Received: by 2002:ac8:7e94:0:b0:2f3:ce2b:c320 with SMTP id w20-20020ac87e94000000b002f3ce2bc320mr10148819qtj.670.1652100388428; Mon, 09 May 2022 05:46:28 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id p5-20020ac84085000000b002f39b99f67esm7869035qtl.24.2022.05.09.05.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 05:46:27 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , Timothy Cc: orgmode Subject: Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment In-Reply-To: <87o807r7fr.fsf@posteo.net> References: <87o807r7fr.fsf@posteo.net> Date: Mon, 09 May 2022 20:47:12 +0800 Message-ID: <874k1y3mb3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=yantar92@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1652101439; 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=XpErqLC989+OTnWkgemxGSoFPFaNhQ17UfH0SfjfGrY=; b=pu77g0AwV5Upayk1tcFV3ILxJr3NmwCVd+2IozjaMPRPUBkPQZFoq7SLKG2HthFyJiDzuc Z/HH4NG+vn4lK2UhDrLL/uT3qlL3B7XDAV1swPvXZ9I7MR+B7CoFlq6T9HuuT/f3ju5cdd woqOQ8lYQlLnhChTfkCkDVP4w2DLX+gZy6V23E3KKygr3gIFg1g5BT2mvQrNpS2v5dUjsx lZrAgwpGY+ECLSgWmhnXpp6D6FD9dvv2SovcrfipFEe8qgsw8l28uDq4ZPv52KNfFXJHcl aPTTC+7NIkAOSwhzAf9dE18IC4ODrwg9cs+S1R4dPu3nrDClvSBqSlTHFKGT0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652101439; a=rsa-sha256; cv=none; b=JpNd36Ua7hUZM/AvCrkkj36uayXsAeNuRDHHq3NbM4pMDzRwnV7aGiTGj6asoPFYuML99E rLI9Y+1ZmBVQZbHdxfSKFuGvHjWBiM11DsD+8LEBFfo8yytiipyL2njkwuzMs7XupNtP+e lRmPS3ixrFEyaoic6TqSIyHTR1dUs3723AuMgg5iqbNf65R0IsNSD0ZzCADg8x5EY8OCIH Jz9NMGMbwZAyliwTaXZHS7oGfNqSVSYda3pDDr2c9NB+W2pMdXzQCi8b3caUMLhd0QlmQd v2LyTJJr/1uE7bG1lQnUqB8/8TZ7cUsJWwEFThuoGMGIIuxbNpBOM4sDCeImPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pN3NMxyF; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pN3NMxyF; dmarc=pass (policy=none) header.from=gmail.com; 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: 780A53C07 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: f/zMagQR2rlt Juan Manuel Mac=C3=ADas writes: > If we want to introduce arbitrary LaTeX code at the very beginning of a > float environment, apart from the usual tricks of putting the code in > :caption or :placement, this solution I describe here is more from the > LaTeX side. I thik its advantages are more control and consistency from > the point of view of LaTeX, and the possibility of introducing code of a > certain complexity. 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? Best, Ihor