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 aEqpMJI2B2VbOAAAauVa8A:P1 (envelope-from ) for ; Sun, 17 Sep 2023 19:25:38 +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 aEqpMJI2B2VbOAAAauVa8A (envelope-from ) for ; Sun, 17 Sep 2023 19:25:38 +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 94B2167796 for ; Sun, 17 Sep 2023 19:25:37 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm1 header.b=juPTZU9A; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="B2/YFy3q"; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694971538; 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=IS2XmTzf7FxNAn2nb1xLVaj1gPoZlPiSZdCCgJXyY4k=; b=hbMzBmncYZzwqhJvFqpSP3RYIf/ZQph7gfdR73XRfP8L+HKSzAUdTTQItlw2LRQmWx5aBA J5oTjqOQqq5v1fVnd1YiLxcsQ2zMnqAijUNXtFck76T0dPiP0oh4QPf6ldtgEPzsjdrgut c8L8ag8NyPeoDrH1l3F1O/II7RBJpcjLLuVHhMjm1FZIiBQt75jFxeh+LEd1bYwK3vvstY m9/pOupszJtC2YrmKpC2ILpiOqMtjPqTQkOlVc4hm/PkCGcVwRoEomGtr1n30IQOxM54Fl XYi+YxucpII69Zbu2ylDeLwQAkmRuRuG4Da15LtVxYQ+Pw8K75+ZqzmVee3/QA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694971538; a=rsa-sha256; cv=none; b=scPQYfGkyHyFftPR/AWj/laSVLjVyFlGAs5fyNy22wBi09jbnPCeuq2jjBxmraTcHr9BG4 ZaQfFOkEijkijxThBAHzGJcOGNK3q9kPiTrDoMDXne9Kspfq5mnPMszSQJaRH4C7bTOcYw bxmchnFbq1sb1airOTpSedyQwcg910XlD5nNz4Jq41QF8L38QByfjNiFUs2b8nhy1BOu62 au0haME0IKo7fWn8BhNbLFkj0wC2vMxoigDasQPKPp2bQwGpTEOdDt9wj5EM2zr6BsWeYy ohtT6io1sQo5EgEXRNKpX8VMEBOcKsYi1dWM7O6oaCJPhNLQAfQcirD1L6qdtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm1 header.b=juPTZU9A; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="B2/YFy3q"; dmarc=none; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhvVi-0003ch-6F; Sun, 17 Sep 2023 13:24:42 -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 1qhvVg-0003cY-3D for emacs-orgmode@gnu.org; Sun, 17 Sep 2023 13:24:40 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhvVd-0006j6-RM for emacs-orgmode@gnu.org; Sun, 17 Sep 2023 13:24:39 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 026A25C0114; Sun, 17 Sep 2023 13:24:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 17 Sep 2023 13:24:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecosaur.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1694971474; x=1695057874; bh=IS 2XmTzf7FxNAn2nb1xLVaj1gPoZlPiSZdCCgJXyY4k=; b=juPTZU9A6lIVUltDre UZpwmVIyjxAtRW6FinD4HjgFyvDDJDGo0anirTMWQDBbyJDXESijyHOXOOamUMQO PDRXD7ftn62SpgtqlpI0rFIOGLgtRMzhLZT/CraaE2+0bWnDFsc7ZhglnfL6Q3kh reu4YGZgVkES18cpK9JD8Dnc7smrFqRo1/zCJHRNDaK8TOFSP+Mn272/na/cly8B I3Wwd91FkwaeQ3NZ156b+LuZE23A/ZejFOOROEuU2cEDD48qG0d57OmdDI/HCjuL bab8VoyQUfovI2JcHoRnu5bZ7e/N9CrzUcwOPD+4/FVapGoTA8koXa7HzUvsQ6z1 W5Gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1694971474; x=1695057874; bh=IS2XmTzf7FxNA n2nb1xLVaj1gPoZlPiSZdCCgJXyY4k=; b=B2/YFy3q17zvEbPY2TpuaPxghyzi8 g8xQWf0Aiw2FMD9/z2EXQYbgqSUYFSGRRUPkYErgi8JgKoItUTHJnc/3DbwObwb8 tiJjdGXWjI9ImUrgAmSug4it8hxdZDL6d+ze2IQp0ThuLN77EGz2y23l+lhzZZIV WBbstH45VhsK/JU92SidAIQKRfCNdLpbHB48dn0mJfzrMEsnvGshFquqKMlJeZJh UDyYNWkkqxN25DJeElIzkkcKvVXL0gkCL5Rk+pxYPPtvqp+JccnGkEcYdLUg8UTQ 3beeVkHTF9q2h1jw3i8EN8BbdFVigythZJVv6YFK5au3VEa9F4UtVhtDQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejiedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffohhffggjkfggtgesmhdtreertderjeenucfhrhhomhepvfhi mhhothhhhicuoehorhhgmhhouggvsehtvggtrdhtvggtohhsrghurhdrnhgvtheqnecugg ftrfgrthhtvghrnhepuefghfeuueejffetlefgtedthfeileelgfekfffgvdeiueevvdfg lefhtdejgfeinecuffhomhgrihhnpehorhhgmhhouggvrdhorhhgpdhlihgsvghrrghprg ihrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepohhrghhmohguvgesthgvtgdrthgvtghoshgruhhrrdhnvght X-ME-Proxy: Feedback-ID: iecf94634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 17 Sep 2023 13:24:33 -0400 (EDT) From: Timothy To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org Subject: Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword Date: Mon, 18 Sep 2023 01:23:38 +0800 Organization: Linux Private Site References: <874jjuj8vu.fsf@posteo.net> User-agent: mu4e 1.10.7; emacs 29.1 In-reply-to: <874jjuj8vu.fsf@posteo.net> Message-ID: <87ttrslnlg.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=66.111.4.28; envelope-from=orgmode@tec.tecosaur.net; helo=out4-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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: 3.14 X-Spam-Score: 3.14 X-Migadu-Queue-Id: 94B2167796 X-Migadu-Scanner: mx0.migadu.com X-TUID: duNjLJc+2cvs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Juan, I=E2=80=99d rather not have this merged at this stage, as I think it may be= redundant once my conditional/generated export work makes its way into Org (next few months?). Juan Manuel Mac=C3=ADas writes: > Rationale for this patch: in certain cases, in a LaTeX document, it is > necessary to add code before the class declaration (\documentclass=E2=80= =A6). > For example, commands like \PassOptionsToPackage, \DocumentMetadata{ }, > etc.; or certain packages that should be loaded first using > \RequirePackage{}; and other miscellaneous cases[1]. I think that by > defining a new keyword `latex_pre_header=E2=80=99, which behaves the same= as > latex_header but concatenated before the class, these situations can be > resolved from Org. > > [1] A longer example to export to a pdf that has pdf-x compliance, with > the pdfx package: > > \providecommand{\pdfxopts}{x-1a} > \begin{filecontents*}{\jobname.xmpdata} > \Title{Some Title} > \Author{Author} > \Language{es-ES} > \Keywords{keywords} > \Publisher{publisher} > \end{filecontents*} > \documentclass{=E2=80=A6 All the best, Timothy --=20 Timothy (=E2=80=98tecosaur=E2=80=99/=E2=80=98TEC=E2=80=99), Org mode contri= butor. Learn more about Org mode at . Support Org development at , or support my work at . --=-=-=--