From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 SLNfGDixGWUzXgAA9RJhRA:P1 (envelope-from ) for ; Sun, 01 Oct 2023 19:49:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SLNfGDixGWUzXgAA9RJhRA (envelope-from ) for ; Sun, 01 Oct 2023 19:49:44 +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 455D157974 for ; Sun, 1 Oct 2023 19:49:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PIMoiHWN; 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=1696182584; 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=LmOTJpKAlXtIxlvhTjWWOgYif9xH1A8uJwl+S9XP6ng=; b=Odl2N2Sh/91YvavVigIo9MVrpCbviFgrfshOPYPk61IHBXKQhbiOUH/ZnSRUuR2Cv0Pc9/ OIZJGWDKpnk2xxH+ynWdOPmLLImtFBDJc2L8WKdl5jswdGj4OpVhEjoJMVswkqS4uF+Jib qDC+mnyfu+bDENfTFXHY6E8uNyZwIfg9RaBmle8tJDATyPHrs0mLgcbrE346zfmTPJ+k7w ATJfJlDRm1L/C2f5UbS1ILQpeX+BGzoqY63Ka32SLCY+/J42Id+5YLOH3ILev/4kinNhTP n0sU5cz1WhtKOl04aHwEjwKCSyM8YLWzXKhFwHOzwWpO2HiJ/8dmcXZwM0fXYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PIMoiHWN; 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=1696182584; a=rsa-sha256; cv=none; b=fH8yWm1UA9EvdGbohF7ffLU2BdoOrHOMfyxCwDDjN+/iSBW/gqCmHBMGiQapomxb/BcEnq TZ+QQ3H93ZAi6xQpXaFPMRv4OPfkWBxhBzvB+ASjF5yTL+OOsdSRr7hOT4lG2qc17nGw3V hNFYUYnj/24SiY4ZeI1/NmY7bvDGOqQ/858vjUm/oUCMmTQbP5zPgkhnTwW/zFFuqMBV9b M8+bKYz8j6l97Vm+/aDNZ4+t14ssR/H55PxcOWOSO89tpKq8BoJNBEcV/bFGXFYH+20wsL KrMFk6OE6rVyM7+V3iVZPEW78TC3KIib1SQR5XkwArIjoj8ul3N0lq+zwlo+lw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qn0Yf-0001PV-ND; Sun, 01 Oct 2023 13:48:45 -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 1qn0Yd-0001PM-DO for emacs-orgmode@gnu.org; Sun, 01 Oct 2023 13:48:43 -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 1qn0Yb-0005mD-F4 for emacs-orgmode@gnu.org; Sun, 01 Oct 2023 13:48:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2428F240027 for ; Sun, 1 Oct 2023 19:48:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696182519; bh=LmOTJpKAlXtIxlvhTjWWOgYif9xH1A8uJwl+S9XP6ng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PIMoiHWNYlRo5ilou8iTEw2InFBJrjyfMEtLXNB1NzUyu6k0g0SxeKRvaRaMWN8NP L+zVou16gf+MIRnRtgYKE9gPrPlzPnIwFhzGsYbsH1C8Wckli9tpiqXtjFsQDt3TWE +ZubdUpFP+Hj8nmxHXqj6SJ0x9m7FIssXSmTwHgsU3IaiOqMXcqCD2f3UQTA8/b2Pr a1281sBsMe2VvXylSxtFap77qCy3UCjt+l505LXwDEPs4C4PcAvxnMDHGoLyu5KsY9 VvTufYmBlncmi2Urndp2yJkBz+EzvQLFDF+XcsXbzL1hfleyN7xnBGJRX+AUagMEIr vs+/gvNUWDyow== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RzBQZ3zSDz9rxG; Sun, 1 Oct 2023 19:48:38 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: AW Cc: emacs-orgmode@gnu.org Subject: Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword In-Reply-To: (Max Nikulin's message of "Sun, 1 Oct 2023 23:02:38 +0700") References: <874jjuj8vu.fsf@posteo.net> <87lecsvjdd.fsf@posteo.net> <2240064.iZASKD2KPV@linux.fritz.box> Date: Sun, 01 Oct 2023 17:48:36 +0000 Message-ID: <87bkditerv.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.65; envelope-from=maciaschain@posteo.net; helo=mout01.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-Spam-Score: -6.91 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 455D157974 X-Spam-Score: -6.91 X-TUID: rdnSpPuQISx3 Max Nikulin writes: > On 28/09/2023 22:36, AW wrote: >>=20 >> The idea to have a LATEX_PRE_HEADER to insert `\DocumentMetadata{}` is e= xactly >> what you need right now, if you export from orgmode to current LaTeX. Wi= th >> `\DocumentMetadata{}` you can add most of the necessary xmp data -- and I >> write most, because I'm using it on a daily basis, but haven't checked if >> really everything is included yet. > > The question is if Juan Manuel can use \DocumentMetadata instead of the=20 > pdfx package in his workflow. I'm afraid that with the pdfx example that I put in the first post I have caused a little confusion. pdfx is not part of my workflow. I only used it once a long time ago. I've cited the code from that package here as another example of arbitrary code that can be placed before \documentclass. As I said, there are many more examples and possible cases: \DocumentMetadata and \PassOptionsToPackage are two typical cases. But, as I have already mentioned, /almost/ any LaTeX code can be accommodated before class declaration. Even simple comments. Why not think about a hypothetical case in which a user needs to create from Org a *.tex file that contains comments before \documentclass? With a LaTeX_pre_header keyword that would be possible. --=20 Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com