From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 YICgCwAJ5GMPVwEAbAwnHQ (envelope-from ) for ; Wed, 08 Feb 2023 21:41:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8GKhCwAJ5GN3GgAA9RJhRA (envelope-from ) for ; Wed, 08 Feb 2023 21:41:36 +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 60BF19715 for ; Wed, 8 Feb 2023 21:41:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPrFG-0004n9-2I; Wed, 08 Feb 2023 15:40:46 -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 1pPrFE-0004mO-Tf for emacs-orgmode@gnu.org; Wed, 08 Feb 2023 15:40:44 -0500 Received: from mail-bn7nam10on2119.outbound.protection.outlook.com ([40.107.92.119] helo=NAM10-BN7-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 1pPrFC-0007oV-BL for emacs-orgmode@gnu.org; Wed, 08 Feb 2023 15:40:44 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ihgYdAWmtcuLBk0zlf5UeD/ESCKvl7ckwqz3qTk+wBS4UhQAlg5pgsxR5zyYjOnDg+oKxNpui1ZhIUEqzewkg7k5pgFPCnogm4SeResfXKeADrM8tzxy8JkFokbGsJfXR2u3BA9t4/Mf6RpedA27LXWYLbyK/Obssc8w4UwcfaSwEEG/OIWKJkRsBMAKEybHQQs+UKJTwRO0gGvHYr9v6O7mh5u94I23eqd2p9ic9s+SSxIBMtI3amqZxg9+2/F3WI7O2oCMIpYXE+t9sxrHI9Edt/rCw1P1laVZd/TTHXGUIOZKge8BwxkTajMfENDDhps68KqPtxm01nGywFCf6Q== 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=lWQisAqWJorB7mot9PynBArYKhn7dvE41fsEJYMCRcQ=; b=bwe7mptj3UIsEkCMp0pEC3HIMktKtb3T+VCnSU8mx4NCqmArqsib95re5QawmXKkOU1VE6WfNrPZSMlef6ZhW3ZoP8FTBScI9vN7CihS+iReKQid66EA/Rxui4eqgUAWAJTwkzSD0B46QbhODYcOMwlZYW7rX+pb5FDkyWTU4GKU1sY1pcGvPCnvnVqfK6zNsRigUVSrrG1YD2IBarlHNQ/XAglUklREgWO8/JlgZqUPNymjMKT4rWiHsgi2IugS9wPre7UMFJzjhqP7DQPjON7eomwOJQF5j5q/3M7h6Vp8jVG2KSb/6Azf+DcyLTYSwmu16aKK0wrrqla3HNhJtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lWQisAqWJorB7mot9PynBArYKhn7dvE41fsEJYMCRcQ=; b=NOnR9SEOnDH3aa6J8F5JAU33wV+e9DAfQ9F+xkwwF56liuy5CAPLgks2xU5Vxw07LhKViQZg49p/DnyY23XEtrIjFdIVYq6bixKtHvvwAQKzddgvVLnys2K6p/cbNfv3ACqNdHxqCTvpXeT6+hbLqMkwPDu7quv4UJLdFxmbYgs= Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YT2PR01MB9159.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:be::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Wed, 8 Feb 2023 20:40:40 +0000 Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::4809:b686:dd5c:b1fd]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::4809:b686:dd5c:b1fd%4]) with mapi id 15.20.6064.034; Wed, 8 Feb 2023 20:40:40 +0000 From: Leo Butler To: Max Nikulin CC: "emacs-orgmode@gnu.org" Subject: Re: [TIP] Exporting Maxima results to LaTeX Thread-Topic: [TIP] Exporting Maxima results to LaTeX Thread-Index: AQHZOzzalfBiXALTeU+LPkDNFVTCEg== Date: Wed, 8 Feb 2023 20:40:39 +0000 Message-ID: <87mt5nx54o.fsf@t14.reltub.ca> References: <87o7q5rw62.fsf@t14.reltub.ca> In-Reply-To: (Max Nikulin's message of "Wed, 8 Feb 2023 22:43:17 +0700") Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT3PR01MB9964:EE_|YT2PR01MB9159:EE_ x-ms-office365-filtering-correlation-id: ff99bdbe-0575-4eda-8550-08db0a14bda4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IufefYpmDHkPxOe725Ph4cfeMgRJzR1chEdoz/q5Fp/SwIjkym0fnxIpIzoQtOBE3Ks1K+nGwe6Pdk5FbkyXeKLHoZQ9XLwQVYGEYp0z71roJznxFSQLCxVW3YEr/vNzQtgVeb+GVl+XMKzH/PMAhhuJe8r9ezp7gC0N8eXwIVcj5w7gOretMJ3E+scj0n9BxCmNtzRoTSEVODdep0mFbM3MYsT29XiDCTEChsX+PNf+NTq24JZ3GCBKqXLa/TCv4nxnwtW1Z6vZnZ+JvY3ATND8jcLYIUrYlDrqpNCWhpQmggps3TEIoYybi4IDscjrWqzC6odcSXlpf/9XF4bAm/nenUNRvk4gGjsdj1lnNMKRb7SlotPDbk0xaI2z63ulE3NZQpcun8zUd5ngytNpDvag7U/FpLfjxSjjoRv6edS4QB7LtD2HmJTJ+c8sT0DFJhRvPdLB/2Wv53dg0F1WAYvhOB4COjM+wT2i6jewGfLGcZ/S1X1RV8K38f+fGtoFTFmFDrQ3ugYGCSmtVR+ZYLyYSXZs4FYYOHAeqN5P3kjSIow0O1Kc6y8IkycaOE+HkZ7j76lj1LH4JG+6F5zG2mNCAJcls5v77NQAHLszRxE08YOPHcNWQdpZHyVGbo/9+jNf1FT/VFrvnYyiZsPQGEL/NYeF59hOHamgp0AydNdcseIa8mgl848ioKcrEvP+figSpmLjkexAWlLppZSDFA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230025)(6029001)(136003)(376002)(346002)(39860400002)(396003)(366004)(451199018)(53546011)(6506007)(41320700001)(786003)(6512007)(9686003)(26005)(186003)(316002)(38070700005)(2906002)(8936002)(71200400001)(83380400001)(5660300002)(478600001)(86362001)(6486002)(66476007)(66446008)(66556008)(64756008)(66946007)(91956017)(76116006)(41300700001)(6916009)(4326008)(8676002)(38100700002)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?xs44Jbg70VuESgjhoMo/IqRpFN5SusJiy8+UOwJrrKSkx5KoV0k9qLzpDg?= =?iso-8859-1?Q?JL2q7ietqll03s6w7cCPgEcyNfvrjc7vhHSTPy+yh4FBDsJuvJOBiQ01FU?= =?iso-8859-1?Q?qDqe+q8WVZDvS87f4AzTbW8lWbxzCIRbOHx+SimbO2X4AyFgMuCsK5EH4y?= =?iso-8859-1?Q?/BjDmwcKd51EkPazWeMw3JAqttDDIE8UHe3orM1Fqi5zjQ3NDwyNwI1Tsy?= =?iso-8859-1?Q?cPklGiVWru6LfJPatbnpxi8ERBJrYI0RkiMfFy3J7T2lX66af0ZBNQhN3O?= =?iso-8859-1?Q?KE+wkJZxYiibS8zKiM89a2+wmrpzD8HsI93NUi2F4qe/JARhwkVRYE4C3E?= =?iso-8859-1?Q?pDyLddBchQpVpPjHbR1SeVQa2tdD5bGp/DxWd5Sv/pd8aw8PMGgL3504Oc?= =?iso-8859-1?Q?RZHugouywOaCX5OwW1Jc2a4TNO2u5Gyw/dhhmjMJ9SYWAc6Flc1We9a1ws?= =?iso-8859-1?Q?FaDHbdeCCidvDNHxWbSNAhwuU4WsV2kvfilhvQD0BPrjLkaTL4COge4tIw?= =?iso-8859-1?Q?ohpf+XXcQzKHbrLEPgl6E7J/e4hnMg/ndLHwQhMUgN99Sos1lF/X4YzTwi?= =?iso-8859-1?Q?Cc1OBRALvCNU/RAZaE+xxGLUF1NBEq1Je9YYZGIBhZBye4pVjxuSMJYN0Y?= =?iso-8859-1?Q?PF7k5CluCs74E1vlTF+D4d6477dVAccED8mKlsPTy+VWtrwOSUaoVM6QKz?= =?iso-8859-1?Q?1uZMvQPP58rBrXhiL5ixOsMBl6tpahaQvw9XOnWnKr0SQwkLzzP8uBAsL0?= =?iso-8859-1?Q?1oqcsZVrtIujR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XqOBwr+Pkq9FlsLxCKvLmgA?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: ff99bdbe-0575-4eda-8550-08db0a14bda4 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2023 20:40:40.0044 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZNU46Hu3dzribML448Q7RYRyvWd+ysKvLMdHiV2QOSjrReYoFIGsFYHj8geCx4TK2Thjm7swgoBsvAwtH6XTlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT2PR01MB9159 Received-SPF: pass client-ip=40.107.92.119; envelope-from=Leo.Butler@umanitoba.ca; helo=NAM10-BN7-obe.outbound.protection.outlook.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, 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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675888896; 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=lWQisAqWJorB7mot9PynBArYKhn7dvE41fsEJYMCRcQ=; b=gRUXlyGUyJlOweHWW3ZMZy7IxcKFW46yUIaBQOlnG+g1skrNPo2W/eGngM5EDzE04IOxDB GIkYNqKYjmYvQUxHBOMSgF+6NI0LGxyDiGWUSWG//4lzJlyd08FB3Def1DiuxY4HqwZexr lHQLZjXEN1n1ciodKRyjW4Ye0xGG5pNpyp6OAEXNeJnV68hQ+sw5jMKyTfGET/q6txsQZX G8Iw94KnSSzxjO1JkYe2rEtwwfnHMw5hhEFW0yB1LbUcSZkRDPDQffB1GoYPd1hdmAZFMI S7vI3V0tgs14JvHOeHvYAr2GjnJY3fEkQ4aQ0KX/bAezuljW2rA9wr9AyDWxmQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=umanitoba.onmicrosoft.com header.s=selector2-umanitoba-onmicrosoft-com header.b=NOnR9SEO; 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"; dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1675888896; a=rsa-sha256; cv=pass; b=aL2KEh3fgIEe6fGLmbt8o/FJNHLByM4fN9qdLvXWOqrU+muncPfz018H+GNgKh2yIx0UVj xJ4iU8xjgUF8koqj3p3dC0OLQqVatlNGw45VhgnQAFHQ6qRAkUATQX3DoL3eQjyCpEQxcr aj0kpgzK5FfaNVJte3L3yLmVYNQE3Xg88wE0zmmunptEJBkgRcPN/Zd0cP/PveEjaVWI3o DIumYw+JNSl2at+tiEB7iNoO1LhOVgnPoh4U8ZZiSvd7FNCY1BS+OmcI36QqtjBpHAcW3s LZi7In76Rylesb5Bj5oP4rbisJBnbaPftD3Rrj9Cwi44zIXgn2UMU6xCxNbdbQ== X-Spam-Score: -12.34 X-Migadu-Queue-Id: 60BF19715 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umanitoba.onmicrosoft.com header.s=selector2-umanitoba-onmicrosoft-com header.b=NOnR9SEO; 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"; dmarc=none X-Migadu-Spam-Score: -12.34 X-TUID: 56uBedAks0UN On Wed, Feb 08 2023, Max Nikulin wrote: > On 08/02/2023 04:40, Leo Butler wrote: >> Generate @@latex:\LaTeX{}@@ code from Maxima code. > > You can write just LaTeX, ox-latex recognizes such pattern. The bonus > is the it will be literally exported to HTML. Thanks. > >> #+begin_example >> ,#+begin_src maxima :tangle maxima-init.lisp :exports none >> (defun $batchload (file) (mfuncall '$batch file)) >> ($load "./maxima-init.mac") >> ,#+end_src >> #+end_example >> On tangling, this produces the ~common-lisp~ output file >> ~maxima-init.lisp~. It will be pre-loaded into Maxima. >> #+begin_src maxima :tangle maxima-init.lisp :exports none >> (defun $batchload (file) (mfuncall '$batch file)) >> ($load "./maxima-init.mac") >> #+end_src > > I am curious if it is possible to avoid duplication by e.g. using noweb. I am not sure what you think is being duplicated. Do you mean the duplication of the example and src blocks? I am not aware of how to remove that duplication--all the examples I have found in the worg source do what I have done above. > >> #+begin_src maxima :tangle maxima-init.mac :exports none > > At first glance :prologue header argument might be an alternative, but > likely I have missed something obvious. The prologue header is put into a temporary source file, along with the body and epilogue and it is read by Maxima's `batchload' command. So using a prologue is too late, because I need to overwrite `batchload' by its more verbose companion `batch'. That is why `maxima-init.lisp' is pre-loaded. Leo=