From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mDYiMpGZ9GOpQgAAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 11:14:41 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iNJAMpGZ9GP2tgAAauVa8A (envelope-from ) for ; Tue, 21 Feb 2023 11:14:41 +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 aspmx2.migadu.com (Postfix) with ESMTPS id DCBCB2E520 for ; Tue, 21 Feb 2023 11:14:40 +0100 (CET) Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=LVAT74LN; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (aspmx2.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=ucl.ac.uk ARC-Seal: i=2; s=key1; d=yhetil.org; t=1676974481; a=rsa-sha256; cv=pass; b=NW9UVa0aexmLGY/DAY6u9vwSnXazOASDs1aPxwIcjOFpXMVbd+dw0aO++hJf6r1Y72YTHh oswmGY0St22F1kz/a/j24sAUyomUak92DTFwq4TJhA3PRP1daOdsd+d6BXQeZdouDYOiGN E43p6W3MDzseMtwefTUyeyBQmnBy3O4NGQETDU9FFw1suwfuhmBfWXryOtt7IbMknF1q+S 31vtgy8qgq72E0/yx//ujjg+iZWojOxSsZ0c5JJCrwCF7Tbr+KDt6jk32GE5MFU6LfVMc1 A/ITtfS3EZiEfy18/omzdrXoucEPAl7BsUzw9ji80QF/hCeyIX8UK5zpnlGsyQ== ARC-Authentication-Results: i=2; aspmx2.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=LVAT74LN; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (aspmx2.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=ucl.ac.uk ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676974481; 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=seWPjwYAqZ06zZSuX2/tXjO60z5NBmUSBfocSTcpSXQ=; b=PxopcpisDyouo27oCTnd9ZHYO+rS5PxtrKJd/2otRe39uYL1pN+26cyPlx7indiIpkAz7j eNwlM8Vgnd3XTst5LdalLX1ALm2ozlvF2mrebjnDuRDY6S8sP3Q2ZwbKtAYRfIKZnj3HcQ gwqe2TzF+SSoTTDuYn84oV6rwu7XRQK0XSSMqghwzmb8pAv+FAfrlTQjxaXQaSOe6qgEwS qAtSWjxqAe9J9FmD+NK7xL55PhIV3FGlW3focgnCxhlUTptbKSejg5PZ0pefI8jtqIC81m jZy0UnclqTVgTH5XKogw9mbp2Nu3hS4TpIW6XgI/mCtfVz6lFvuUE5k1Gz0/ng== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUPeW-0002dX-Jf; Tue, 21 Feb 2023 05:13:40 -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 1pUPeV-0002dM-0X for emacs-orgmode@gnu.org; Tue, 21 Feb 2023 05:13:39 -0500 Received: from mail-db8eur05on2072f.outbound.protection.outlook.com ([2a01:111:f400:7e1a::72f] helo=EUR05-DB8-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 1pUPeR-0002SD-Lv for emacs-orgmode@gnu.org; Tue, 21 Feb 2023 05:13:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IDABICz4/SION3j3HuNB7kxraU+rhBCiDVqwFcoMNpEcAUM3WeEJU5MQyWEPNGk3AnytlR71FEq64oGUbfKR1HwDOWPVNmXS2lKWWJD5yJB8B6h56oi6LUjVtetCe9Dg6gw75ACYGlpWoI9o8PGSKdEPq4VcDMxlaxF5NDEi1TUMiB7+BChBhLvE5yVujTROEtWZcQr8LnUAga7G5cGcjsOKe1Ib+mdDVcvRNdjZCfY/f+FDoJ1kyk+e5Tj8UqChemfkkgSE+exKPAJqnhkJ57ENceMdo59htjx8kO8g8qf5DJeyLxqZvXoVTH4BXr5DC4zR7RbhQIBGJbv0pZqSlA== 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=seWPjwYAqZ06zZSuX2/tXjO60z5NBmUSBfocSTcpSXQ=; b=cLyhEKNquEA1EuKgOVWCLlpAskIX2x1ZNeDJBDr1N5OTgQzS40qAwEv1pgWD3BpHnPDhquhhRkm+cZf2ksxLLo3AnITxLIClqFt5YrdER26VGL5weVexG3zEm9P0S+WEd7EUDeZNZ9CtCIcJ4u4tS5DSywB8CVVwJlsS+msDz7FET8deYORk/jRDk+kNFNF2Q5moWnzPpUJWc0l1Dk6oR9vKp/aKVQBdhz2rbtieJXw3slMd6UqJ7cc/0kZ+8SzjaueCyVrUZyUfUlb3GNSZ+N8FOu/wDZpOSE57ghyGD1+04zC+BLonoePK8d3VZpMPIqD5tP4JzZ0jcVOkaBd/dg== 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=seWPjwYAqZ06zZSuX2/tXjO60z5NBmUSBfocSTcpSXQ=; b=LVAT74LNgroLIIN70Ny/AV879PFVDb1UfjE/P0potSsNGAsU4/P1KKMY3kJ8ApYa7nWbsgY6aQ61VH/wACcVXmBGFQgSn+FfcetuTC6XYD5ZUwqUacF83pb+/I3ZcAN5YUFHZTCbe9u8311aL2bZCkzwRUoUtGhUS3tSht8OYyY= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by VI1PR01MB6847.eurprd01.prod.exchangelabs.com (2603:10a6:800:195::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 10:08:25 +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.018; Tue, 21 Feb 2023 10:08:25 +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: Tue, 21 Feb 2023 10:08:24 +0000 Message-ID: <87y1or74it.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> <878rgwmp75.fsf@ucl.ac.uk> <010201865f7d3916-b563687f-f9de-4ecb-9703-6fccacb1a261-000000@eu-west-1.amazonses.com> <87zg9cl9ge.fsf@ucl.ac.uk> <2660604c-3d61-890b-1088-6b56d773f674@housseini.me> <0102018673220efd-ffb3b4e5-748c-4023-8f85-7e178fc0363e-000000@eu-west-1.amazonses.com> In-Reply-To: <0102018673220efd-ffb3b4e5-748c-4023-8f85-7e178fc0363e-000000@eu-west-1.amazonses.com> (reza@housseini.me's message of "Tue, 21 Feb 2023 08:40:57 +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_|VI1PR01MB6847:EE_ x-ms-office365-filtering-correlation-id: 5462f89e-151e-4353-505b-08db13f39273 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MeWvZ4q91Y8vIfn9gKuJdeydwtoyz2pT7G7WdO8X9Ikb/jl526UC5O4/+HawavKkFK/1Dn/OQoqyYCkkoJDU0NGmD3PzZFItiuN+fYVfQYQDv2aok13GzV5G/GGAcZzOpOdY4XrobEZlCiH81U6RxBsAsyNbGt5sFL27q7zC2Id/tm/H3HsUKYX8zRrZTX+98xfOTOl1PZpIOsjC8+s2kUUb5CPGhJ5WWyWlLxd5T5I8L6fECVkA32LO+JwxbCGqqYcZq00xyLKNdSQJ3B//AzyEN3pBg+uRSuUJ+yaYgwdV/rhNgPMbNTsLtc9VfVvruoPZGko5Z9wutLmTgJW2urEhliUYNo6mZUdTKH+q+3IhTB9EoxlEPY9vu9x/gyZ2G3k+wiDF8TCyz8SNAB4gAaDexQTpEfYqgwOk5OpO4gRizCcq6p7tNyqkYJ6dtC6RnANt9RJIgTRrv4BTp032LM5xeqFvkJNLvY/n1tMndHXqkLyYf4DBVpQ9MrKwsWQMW2WiqSj976Ft9XKfU8h5Od+RBtcStJiu4b1h5Aw+cgkqJNvBjtYGSZLho53S1xv6V60tJhj57sMkEqkLd7KwnO2TEOkTPZJtPluqSqY06BoVap8XOGHBY0EEal9iSLqa8cJEQ2YJ3F2fIpX0vZrdsYzyFVSQDwu45lzDKOl8vCKw0rtvovvTDKKYov0aMfcYGjzrC12ktOIlFxb4YfAI6A== 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)(136003)(376002)(346002)(366004)(39860400002)(396003)(451199018)(478600001)(86362001)(2616005)(71200400001)(6916009)(55236004)(316002)(786003)(38070700005)(186003)(6512007)(6506007)(6486002)(26005)(91956017)(41320700001)(4744005)(38100700002)(2906002)(36756003)(5660300002)(41300700001)(8676002)(64756008)(66556008)(66946007)(66446008)(66476007)(4326008)(83380400001)(76116006)(8936002)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Ut28SwsQcPL2GOotRTrsGVUJ1nD7RVk7vwG53fyyYj+r22ek1jtzVpCOBj?= =?iso-8859-1?Q?AZcoIoMzvdB4pEPn9X78T5bS+PTLRbN3aFqyZdiW1EHbHpNrc2h1jbn4LI?= =?iso-8859-1?Q?VcBMgDWw/620M7WxW2CKIb+LmKgG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= =?iso-8859-1?Q?tuJR6vFYGcU2SfN7tz3PGT9O1ysx8/C1K+F5AQSXElTlLeDdeU2so7ILtT?= =?iso-8859-1?Q?opY+NnHJ/3hWTcZPUb3E0pGw9sSyLUYU1iXSTpTonTe1oh62QDLgz2EtSD?= =?iso-8859-1?Q?q0HhMExebFlYASj9n9jYkoHtrlLILdUU9w6Dlt4u7vH7c9L9kZgyGdVybI?= =?iso-8859-1?Q?WZSYvkEJNbgub+o8lZGY1wjYbJFyCixonHfSW30jImI57DjjwV/+zBP5Tt?= =?iso-8859-1?Q?sNwdU8b2JpyYtIBw4hdLYSFzXo5hX+MWcNH6BqwQKyAyqFnAT4lMj9Md89?= =?iso-8859-1?Q?q4CWeoMdqG62I6P0wraY2PAAJUCDBWNGYVEysLd4m0T/c9tSvOH+D3sfm0?= =?iso-8859-1?Q?/0aC11SdpR9Hs0aKsERmjnLdrj5KpKl2ptvFrzx5DHhf57EtplRp8FDEdp?= =?iso-8859-1?Q?zvW+Ee2+pSTfxji+OYgIfCojuDQSnZL7IOGVwPYVQq6CpRBTIO9ZO+Eje4?= =?iso-8859-1?Q?t9BF2ccIIFo3pMdohe2nrs13mpmT0lWOFQ5xKvVMS8dgSq/qqgN18uOEad?= =?iso-8859-1?Q?fAw0ZjIYPWQ9ldXIM+Cg2FBZopE5egJu3D/sIiPNv0i28ulUkfdt/WV/Kq?= =?iso-8859-1?Q?TruDhXlVDxDxMGcX1p35bPXJCviWwAzA7e?= 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: 5462f89e-151e-4353-505b-08db13f39273 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2023 10:08:24.5714 (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: /M7+8EotQHz7dGaFC6iIk01RCckI5iGFyxkoUvYKIIATSBfhRx4QXnvJzD7izZnT+bAJYA6U+pWERpVCEhnLkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB6847 Received-SPF: pass client-ip=2a01:111:f400:7e1a::72f; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-DB8-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, 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: X-Migadu-Queue-Id: DCBCB2E520 X-Spam-Score: -11.83 X-Migadu-Spam-Score: -11.83 X-Migadu-Scanner: scn0.migadu.com 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-TUID: lKsF0N/wfsXM I'm travelling so will keep this short. A few things potentially wrong with your setup: 1. the elisp src block won't be executed automatically. 2. I do not know if the BIND statements are interpreted when included but I imagine they are. =20 Sometimes it's better to use the base Emacs features (e.g. file local variables) than try to shoehorn everything into org. --=20 : Eric S Fraga, with org release_9.6.1-224-g8ae8a8 in Emacs 30.0.50=