From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qNnBG6b54WCIBgAAgWs5BA (envelope-from ) for ; Sun, 04 Jul 2021 20:10:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WP10F6b54WDdawAA1q6Kng (envelope-from ) for ; Sun, 04 Jul 2021 18:10:46 +0000 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 058982AF9C for ; Sun, 4 Jul 2021 20:10:45 +0200 (CEST) Received: from localhost ([::1]:41192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m06Zo-0008DZ-3r for larch@yhetil.org; Sun, 04 Jul 2021 14:10:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m06ZP-0008DM-5N for emacs-orgmode@gnu.org; Sun, 04 Jul 2021 14:10:19 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:37547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m06ZM-0005KP-Fh for emacs-orgmode@gnu.org; Sun, 04 Jul 2021 14:10:18 -0400 Received: by mail-wm1-x335.google.com with SMTP id r9-20020a7bc0890000b02901f347b31d55so9608650wmh.2 for ; Sun, 04 Jul 2021 11:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sPz7ewB0phSTC3KEeYcfkXRo+qmYx5yKC5r/ToR4TW8=; b=q0KWBV+PUlFvxmG8BPDfIv2kgXez9VEauni6gevTO4UUCXDHWCTJSyeEijUFkiG5zI wSZBeMHKjekGAjIqQvVCln7p9iA7PMDfx42wvwB8bXUoxpyqNgY6wjcnvDVNPILl6Pln f6CaDRX+TODcE9Wy9/69amSLJyTc7847H+htoMNpy/NAbEzpxBE/QuQSqIGdXM5c2zEb FWe9gfluaTD19nd4JWHMEda5K4D+vRja5jjoQY6asCT8TV52CulzIV9YGPAinu95O9gQ JPmvEKyIayVEn63zGXz010+V+uJb9ICTz1rPXHzFx7m+SjXxPUkB/qxCBYKa7UP+crCj u2fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sPz7ewB0phSTC3KEeYcfkXRo+qmYx5yKC5r/ToR4TW8=; b=mQnexdKkmM7w6+Umht6lyFhtV176Gtv/e2gi9vQketrhQdxLvTCTYWiBXipQeJ/bIu tui3tV5AdF+8tZhmylXJyiEB1K1ec2gFx19sKZ6fZYN66LB/FUkyxC/fa5QwKKFrLGUe 4JPWZL1WhoK9ApshLVxsy13HRbSoqwXUkar86pBrXJHZ3JZnWUa3X7oPE7rs2jJjMSJL G0oyAHvRU8dgIFWeDM6YnKmLZ453nxOuW004JdCa/jAj32nYKcO4xJiZ3fTqYWIU87ws GbushCFnWjL/9bOhmQufOnWSndk6hCqeYIffkptXcDw6Q2oj7Jr8SnN5aUbE2fdUPb8t A8bA== X-Gm-Message-State: AOAM532vfyGt0907oYPwEyizNUWGtyo6oLZDNrIQBjjkHMlYisWJWCSE HFjHxGWhCpd7A88oXvqIbk//kS3K2CxfzfPDXF8= X-Google-Smtp-Source: ABdhPJwM3nnytRXq72d8CH5oM7uPgkGmA86qn8NHpLx1BBYKKp7RLR94ZMVuYZQ3Z8A6fmqF1BG7p9UyhQQxLcYS5Is= X-Received: by 2002:a1c:f216:: with SMTP id s22mr10565255wmc.18.1625422214136; Sun, 04 Jul 2021 11:10:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Sun, 4 Jul 2021 14:10:03 -0400 Message-ID: Subject: Re: LaTeX-producing code : how to export results to HTML/ODT ? To: Emmanuel Charpentier Content-Type: multipart/alternative; boundary="000000000000af065c05c6501932" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625422245; 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=sPz7ewB0phSTC3KEeYcfkXRo+qmYx5yKC5r/ToR4TW8=; b=hXvweOADyndSeZ+pRysYi/HIi5iBXr/V7uqet91XuCQJmCQMxMw9081k0M9LGGgzxK33y5 vJmBZ0gWbYUqtSYXBvB/nGfX/76IRDe4SuDsImtEvmRKPT2SzDDj+7bduEmwnO+2TbNiBG kZgFlPoLecr7oamyfbWbX7Vm7miFU9oDQZRjKp5SxrbnWyqe3bRFRO2FRBB4nMH8yv1NvH 2ERafOPRXIpnvSrCSCkFRVaPpPW3f6ma/DUXB0OO8OHerYP1BmTZcDSS1e1BVQq6Nbsn7t LFxrH3IwxExXkyVZZ+lV81E50gjJn6Im/S5PpZ5pdwBwR7DeYNCORFVAQRTGFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625422245; a=rsa-sha256; cv=none; b=MtReugFxNQMtGfnQ/slSfCxv2EE/LSQxIxO/ZjAMZZyVbyErxHEdeFCfayv1K3r5TSvRjP 80HpwL8ob4qq8s1ip9gdsLN/kXiueQ4JMqvWmGfc30L0cFiPJfWKN2H/epNvNFGYPaYTty ppeaTUrBkYO855Fj9WeOkjEHFPaj/g5q4QGMyPF4wq4BSTtrFvAozNkrb12Rcg8TuWrYhc 7DeMQHHnjP5A8MgrmTAPyPhKKUmIju15zTqrGZZE1euIIK0AMNvqRJ5ixYlvtPPQYDM4kV TcllilzldqXBDthTK4oTQWBnIRUzHqGZDc4MW5gDGiE4T9/cG4777FHwThFZoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=q0KWBV+P; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=q0KWBV+P; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 058982AF9C X-Spam-Score: -0.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: s3weH2VJ2MlA --000000000000af065c05c6501932 Content-Type: text/plain; charset="UTF-8" Can you declare the output as org so they will just be latex snippets? On Sun, Jul 4, 2021 at 3:46 AM Emmanuel Charpentier wrote: > Dear list, > > Org-mode offers the ability to create functions returning LaTeX results : > such occurrences are frequent with Sagemath, Maxima, Mathematica, R, and > even emacs's Calc... > > Such functions can be declared has having LaTeX output, and the resulting > =#+begin_export latex ... #+end_export latex= block is exported as LaTeX > and end up in the PDF versin. > > But such blocks seem to export **only** to LaTeX/PDF ; more specically, > they do not export to HTML nor ODT. In order to insert those results at > export, one **has** to print them **raw**. See the attached examples, and > compare PDF, HTML and ODT outputs of the enclosed zip archive (necessary to > avoid the wrath of the spam filter of my provider ;-)...).. > > Unless I am mistaken, this is the *only* way to export LaTeX exports to > HTML/ODT ; I am not aware of any option allowing to force such exports. So > a couple questions : > > - Am I mistaken ? > - Are there more steamlined ways to get LaTeX in > HTML/ODF/whatever-but-not-LaTeX ? > - Wouldn't an option to allow these exports be a welcome addition to > the export structure (or possibly to the various exporters) ? > > > Thanks in advance, > -- John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --000000000000af065c05c6501932 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can you declare the output as org so they will just be la= tex snippets?

On Sun, Jul 4, 2021 at 3:46 AM Emmanuel Charpentier <<= a href=3D"mailto:emm.charpentier@free.fr">emm.charpentier@free.fr> w= rote:
Dear list,

Org-mode off= ers the ability to create functions returning LaTeX results : such occurren= ces are frequent with Sagemath, Maxima, Mathematica, R, and even emacs'= s Calc...

Such functions can be declared has havin= g LaTeX output, and the resulting =C2=A0=3D#+begin_export latex ... =C2=A0#= +end_export latex=3D block is exported as LaTeX and end up in the PDF versi= n.

But such blocks seem to export *only*=C2= =A0to LaTeX/PDF ; more specically, they do not export to HTML nor ODT. In o= rder to insert those results at export, one *has* to print them *= raw*. See the attached examples, and compare PDF, HTML and ODT outputs = of the enclosed zip archive (necessary to avoid the wrath of the spam filte= r of my provider ;-)...)..

Unless I am mistaken, t= his is the *only* way to export LaTeX exports to HTML/ODT ; I am not aware = of any option allowing to force such exports. So a couple questions :
=
  • Am I mistaken ?
  • Are there more steamlined ways to get LaTeX= in HTML/ODF/whatever-but-not-LaTeX ?
  • Wouldn't an option to all= ow these exports be a welcome addition to the export structure (or possibly= to the various exporters) ?

Thanks in advance= ,
--
J= ohn

-----------------------------------
Professor John Kitchin (h= e/him/his)
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=
--000000000000af065c05c6501932--