From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UNwCOiZ472OBegAAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 13:50:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iCUYOiZ472PKhQEA9RJhRA (envelope-from ) for ; Fri, 17 Feb 2023 13:50:46 +0100 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 635AC15C68 for ; Fri, 17 Feb 2023 13:50:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT0Bb-0004gC-UG; Fri, 17 Feb 2023 07:49:59 -0500 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 1pT0Ba-0004fp-24 for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 07:49:58 -0500 Received: from mail-am7eur03on2119.outbound.protection.outlook.com ([40.107.105.119] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT0BX-0004Rp-Cp for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 07:49:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M/MyjsQSW0DPtOFTklzjxez67dLVj22MBFPv/oqPbFo8Xwg5FcQOTol8XSwSanevxtaj2ntsqzaS7LDnLNkEho/41wMeYQx6LFa8/znLT7opyNkLeqURMELD+f9GM7+oF2tAdU8a93eD1zPEQdbjI5VaXV2+JtL4FeOghzmSg4qzmo/h6/N5xytSlNIEBxLFgGMxsdEoFXsCN8k9gsr6l+DMBUB4uY5xacapR6YVNwq9GJNFpJlrufjgZQ3TiOZlcIEvqD7DLMR2CdLsVcUcKjZo5KrX9NOOoRZO12ukIWNGD3VuggzvNeHnU8Gr8m/ZCQgpTVwa7jJjMZb7PF0BXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sWo9ctjFUo3NjMcSra+Efo9eYw/OI9knXTreIvE7U4I=; b=FxkomjCOaVv9eGkwD5ofMyS6FhSEOW6yxoNnkZCSMTTFvzej6I1n3M+k+lUTVplQylEPks8XJWYbZHnzzgu5KjpwAkNfen+HgglQbKmMtyLQ0w6DYFtIZ4vByUVLzIjVi4Fbl2UAjj9HFrQh5cxmWgXamFfr2uUmF4g3RxyXK4n1+tXui3oAkl/AU4NivwADfOOAXwMmdLQ4NMh+pMeajw7r585tXjnTN1D2BkdN4+CQYdjgTpu3IX7FWymUlba5wK/DODQIDEtiECpisx4nnvcvUi3jfGVdVNgF3vTTLMPGlEk3DFKqM7QM9rzFeGX3AhrGxWw628f9ZP54F6TPnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sWo9ctjFUo3NjMcSra+Efo9eYw/OI9knXTreIvE7U4I=; b=JJLL6YJat3nZdW5wNGY81Kx9h1vZBji5ZmyZ/Or7q8R4vSsQsCJfHdctgiSniknBIjcDDTMK77VPemKpkdWTQ9jdxcGBRUURC0QfezSXEQa+f+fma6DT+Ibc9Q78w1vXxY1DlonrgmTv9R1J3Me13gmP6c0E9f2TPSoTE4wU22I= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by PR3PR01MB6554.eurprd01.prod.exchangelabs.com (2603:10a6:102:62::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13; Fri, 17 Feb 2023 12:49:51 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::3437:90f5:87a7:bb47]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::3437:90f5:87a7:bb47%2]) with mapi id 15.20.6111.012; Fri, 17 Feb 2023 12:49:51 +0000 From: "Fraga, Eric" To: reza CC: "emacs-orgmode@gnu.org" Subject: Re: Use custom preamble from tex file for latex export Thread-Topic: Use custom preamble from tex file for latex export Thread-Index: AQHZQq2KfUpv8xEBQuWhIFcIDT3ChQ== Date: Fri, 17 Feb 2023 12:49:50 +0000 Message-ID: <878rgwmp75.fsf@ucl.ac.uk> References: <1535a463-91fd-d085-06ee-ebd816c57ec8@housseini.me> <010201865e95ac16-b85af27c-f5db-4572-9747-b822f5217571-000000@eu-west-1.amazonses.com> <87h6vkmvnq.fsf@ucl.ac.uk> <010201865f61a60d-e0f854b4-0dfd-4f91-99bb-b43ceede27e9-000000@eu-west-1.amazonses.com> In-Reply-To: <010201865f61a60d-e0f854b4-0dfd-4f91-99bb-b43ceede27e9-000000@eu-west-1.amazonses.com> (reza@housseini.me's message of "Fri, 17 Feb 2023 12:38:00 +0000") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: gnus (Emacs 30.0.50) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10249:EE_|PR3PR01MB6554:EE_ x-ms-office365-filtering-correlation-id: 2518dfae-8c71-4127-367f-08db10e5759a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6pysd7k/7dAUlR0zS2j9xLO1TDYxjTc6LFI1hXpxo15SOpT6K3UHa8SUMCAtBC0FmevbhYqemMt3DF8XDWy8roE97glpJlvhbWUJp9eNly01huTWPyloP0vWOp/mcRmis2nYgWWwWpoM3uW4qBcCPdjRWDzxX7gvoTgoW/ANCzlMukTAqbgQp2Gj2PV6bd/ckxF6z72Hs4buyMoMXH/KwttkBsXNFhkuWiakexWoVL9Sva9NcqnLt02i8DW3SM6cChy2OA5GxgisP57iEc9RHW31hSfpKjseflRIyOkNiFXdNDDpjRSufST8IOYoR0xaX+0rij833lIEEEnIRlogfu2y3pW+j49J7DqC3rksU1Zl/43TWBRg4JS30ACYeoF7iw21BN49vDw7V0g9Ry8zGdU7z9U6DAh93VkFzY1NKFicXsW9E9t1/IL+ijM7MMObI0GpG/XS06gB6rYAL3O439Ztp4cLj8MXq395vAmegYrpZGFgp/7i1On2F9hk5n3i7HXPKA7OIeOduedXvGZf42eLksiqeuhJ22Eke8UM0QmBZvHh0zQmr4X1Gc4yyKlAcKllITuFztXlS70Q+83V8E5xlZx2msIQyeoStf86a61vOa+442hZ3Hr8crps3+EHUJCDPKUr4eFdAYa3ORHz2cdhBX596xJDnVK9eFzjQdm74jssRTb8S89PkeNOUDTOAhgOHA1HogZ/WZ7b/EK/xA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(366004)(376002)(346002)(451199018)(66946007)(36756003)(2906002)(66556008)(76116006)(38070700005)(5660300002)(8936002)(66446008)(316002)(66476007)(71200400001)(91956017)(786003)(8676002)(4744005)(6916009)(64756008)(4326008)(41300700001)(478600001)(86362001)(186003)(6506007)(6512007)(26005)(41320700001)(6486002)(38100700002)(122000001)(2616005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?HnivKu2Seo22N87Oj/+4jNGBX0rGAYbJEYy3BDdODGBEJgqWDGLcnLAvIh?= =?iso-8859-1?Q?sBKl8c3wx02YQqr9lRQPeq1yYmC4KJIVqeRWizpo/v3CKgeNOmIrLnpNHh?= =?iso-8859-1?Q?d8eZgzPIOAu8WCflQD51kgOz+vTYP8PEK5lAm6d5eA6vdt5VZjTxDYFmWQ?= =?iso-8859-1?Q?S+y05uCs0u3F8d6rRvQXFDYrsSfiVjGPu35eToMqmy9CnuGm14YWRa3HwO?= =?iso-8859-1?Q?vjoDNnBlm7UGRMj3ka+qnFp3Ve+q6YnDWJadpNbjQyGTXaHGL4H//efQ4h?= =?iso-8859-1?Q?BQWPaTa57+AvLwXBSIu2bcL2bPkWo1SZXbJkkjMztYn7J8AFklkyveKnC4?= =?iso-8859-1?Q?qQi6WaPDPBj+ZdjJYKn84QKWu0U5xFcjkPmZFZpEEP8X6vAPWu+/5YunUy?= =?iso-8859-1?Q?gZJAaJ/q1ni/jgEQkEfvaXsYXP3LmQjjH0+2ap3bJTeC0Axf9gjDoDzuCK?= =?iso-8859-1?Q?iaV12R4VbskuS5Ce70qzXfXej1Ekn7FSspJAnM40XaycA0/HmG04ZCI93z?= =?iso-8859-1?Q?4gO15wEA6XqZ38pw4h9jeS4bcTe3HuAK3fQolR+PsRS9+0ETE1l6ycfJIu?= =?iso-8859-1?Q?8+rxkn2ObGPbR7fItko7T/slmWd2f40iRW2z5TvgN7ZAw2MHMDbFC+8THp?= =?iso-8859-1?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leco5jTvf880inRDHPlt?= =?iso-8859-1?Q?0rG6UI2VT9+d78z6q/jWTbHmUBmMaq+bTclwZ24bojGnv4UWxeT4b1vcF1?= =?iso-8859-1?Q?GS12g6qKkpTQxvren1i/pYQ3vxN4Bq5tIc?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2518dfae-8c71-4127-367f-08db10e5759a X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2023 12:49:50.9496 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: t7kQ72e2puDtZO1xBcgOW7nL3GlBtjVm/bIW2zHeJGkJOQVxVa3cESAdIjrkEJXbYb4lDUaH9As6ohXBDAfMmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR01MB6554 Received-SPF: pass client-ip=40.107.105.119; envelope-from=e.fraga@ucl.ac.uk; helo=EUR03-AM7-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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 ARC-Seal: i=2; s=key1; d=yhetil.org; t=1676638246; a=rsa-sha256; cv=pass; b=ezC/ssx09OCvDTJQXJx4UPpBh9ITlP9LCd9p95eE5R3upswmhs2fehPI8ZRwQX9RJ8igZs lz5onZ2iC7Ap3PGAXnO3wEpsysgSB7hwUYK3WbFp1fxwnUDCFqFoJKo3OByeqG1pvpq0zF FkJCWdlYBPpnmBpktgQX5TIINAV7RfQt5xvXInAD5Cxy71SmfyqVFKsMQKHFjfRDSrC2xs MGaKC3Y8yHD/L4teTrHD0B4GIbYmxKx/0OqgS8A+8eHn2f+RQsq2Wt8As+QAx1sADawM/S HJQiMfbR+PWYBFQKfhXmGk0Ytjd8aaBCUlwmnlOBGqPlAhKh5q8zZ4Mvb8yIKg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=JJLL6YJa; dmarc=pass (policy=none) header.from=ucl.ac.uk; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676638246; 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=sWo9ctjFUo3NjMcSra+Efo9eYw/OI9knXTreIvE7U4I=; b=A5N57/kYPTl8wtcjEZbs1WrdWYjssvTLRT1tLXmw9p30YIbnBraeOMBg92nXhT3VtFlsot kwr+fujzXFGmLUnK52IomS+w90K5eDAC1+eeDyfw60R6IrxUbmsWgzBtHQ1Mb+AcG4qdC8 7lTI3TKNRgs7vora/c6Zqq5Rg/zPxKixQE8ENbw+N7YEHNUj+qdmcPg9ws7rVXbPh9doS4 CVKkCU58Un6zANRlCvdRDhXtFH9nyvW2E9DrzU/hno7FN90LiTjfmXMq91t/6euIZc9jT+ CWGjiWq4RlM2hiSwqD37QxZ4uTFR0PUbxfJCvrtrWajNpcDxyMDaY+t9WsfwYA== X-Migadu-Spam-Score: -8.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=JJLL6YJa; dmarc=pass (policy=none) header.from=ucl.ac.uk; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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: 635AC15C68 X-Migadu-Scanner: scn1.migadu.com X-Spam-Score: -8.51 X-TUID: TJ/CsbggsSyC On Friday, 17 Feb 2023 at 12:38, reza wrote: > Thanks for the idea, will test this, but I fear this will collide with > the latex class provided by org? Well, you could have just the documentclass line removed from the preamble and define an org latex class appropriately. There's always going to be some need to have part of the configuration within the org file itself but it could be minimised. The full org alternative is to customise org-latex-classes with all the LaTeX preamble you want or need. This is what I do. --=20 : Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50=