From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4M/JHJed7mABPAEAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 10:17:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KPiFGJed7mBcFQAA1q6Kng (envelope-from ) for ; Wed, 14 Jul 2021 08:17:27 +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 A583012246 for ; Wed, 14 Jul 2021 10:17:26 +0200 (CEST) Received: from localhost ([::1]:37604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3a55-00041S-NQ for larch@yhetil.org; Wed, 14 Jul 2021 04:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3a4C-00041I-Ty for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 04:16:28 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:50808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3a4A-0000Om-Gh for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 04:16:28 -0400 Received: from [192.168.1.46] (unknown [88.162.223.185]) (Authenticated sender: emm.charpentier@free.fr) by smtp5-g21.free.fr (Postfix) with ESMTPA id D9DB55FFAA; Wed, 14 Jul 2021 10:16:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1626250583; bh=qN6sa3TTnqVECTjZajS039xqUvzN/Fa/uegBiL4y6og=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Sc/yWFMhCXPE5T7uix3kw94a6b3Lffow9zvSzRJJO0MzcrVczV2XZuan4sZ9tuRzs 27PYVVHXDK0IbegrPN5/a/J695uEOFXb60oh4Bv5Ue4uZISc6n3ZmboE8yUqfinnsh h/UGBaV5hdVZ4zGBCDbC3vgoeFwke3h0EjritGrHNa6Hqb0nvS/0bZ+wNthWhI6VN3 nZDEv+CJve4QsJ76YMn7J+D0O2Aid19FM5q7AhFpHximC3h1BZQtw8KBDQJ0t3lmGz c19KznHkcNINzdkZ3ZzvfpyXczxAkYUaAGCUFf0AqHKxGkFKt8SKe+g6+jxkYroV5g 4FebuQzuae9EA== Message-ID: <82404a56d74ebd20718d31c6cd914dbd57dae11b.camel@free.fr> Subject: Re: LaTeX-producing code : how to export results to HTML/ODT ? From: Emmanuel Charpentier To: Timothy , John Kitchin Date: Wed, 14 Jul 2021 10:16:16 +0200 In-Reply-To: <87czrljt1k.fsf@gmail.com> References: <87czrljt1k.fsf@gmail.com> Organization: =?ISO-8859-1?Q?Organis=E9?= ? Moi ??? Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.27.42.5; envelope-from=emm.charpentier@free.fr; helo=smtp5-g21.free.fr 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org 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=1626250647; 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=LeVK/i/br57CUHhJolu5M/xL3E/+a8nAw2gybP7n2Xk=; b=TkmCQLF8fZsR66WMFncDXWA02oKGXNqS8MQcLtmeoD/KTb2Or2DlxFDS++rdrVsNv2oZNm Oy3dn8PfGTzoNZpM2+vk2WyqZ5gPYUOeQ5snmwW3AWc14TmcqFjroblyfCSyievfYL71rc zHI7utQmk2XSV3izJ2byVlvFPRYIpiNUX9xEozGCunuWDaFx8BSzj2zvMI0/xskl6yWLpG XfBysXnkP9ixO3QYJ9B/Jsovo5YecctoSywTzINmkyjeYaEwKeiq7NKyk50MnS+U6EOasi vMBiY9Bl/X+QoJZDco6HFoIL/gQQxngNxxbJe/802FSpAiF/7DR9wxY/DJKRzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626250647; a=rsa-sha256; cv=none; b=Ep5zD1RSYGPUMKFcKr2YsfOaFTtKo1p27An21CBUOVf43AkDlvSb+fprwwqQr/is1iXV/O 4Qf3a56X/5MfuUcQHCEFXkLt6PuArkNSsrJZDxiPc40XrQD6JFJ03j9wYp4TPTH3J+AIIN BCwwrDy5MtUFVY4bl9dpxhtHj4W4e2XNJi3Ptc0HHdg9+UDoyupVu/6WhExOJ1LOsAYqbn V/BEPYmLhbeypgUxMF1XvLevRQANRe2E2ETGDhAh1tN1a+G0SUTYWasCeR/8BekBYauRa8 pEv++ijqCeGg35RtPQOzBr948v6VTdd5wnDQf5Q+SWpPVXDn7lKwIcNBKlMUmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="Sc/yWFMh"; dmarc=pass (policy=none) header.from=free.fr; 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: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="Sc/yWFMh"; dmarc=pass (policy=none) header.from=free.fr; 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: A583012246 X-Spam-Score: -2.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ix8XO3XGgtPF "Raw" LaTeX code export to ODT always worked if =tex= (and possibly =org-latex-to-mathml-convert-command=) were correctly set. The problem is that "raw" output is no longer recognized as the function result. If the function is reran, the result will be output twice : once by the function execution and once by the "#+results:" paragraph. John's black magic with drawers allows to keep the link between function and results. HTH, -- Emmanuel Charpentier Le mercredi 14 juillet 2021 à 14:41 +0800, Timothy a écrit : > > John Kitchin writes: > > > #+RESULTS: foo > > :results: > > \[\displaystyle{\sin\left(\frac{a}{b}\right)}\] > > :end: > > > > the key is the drawer I think. > > FYI as of > https://code.orgmode.org/bzg/org-mode/commit/b90b850ae8be46a1ebe7d13b05ad79869e8d1032 > a LaTeX environment will "just work". i.e. > > #+RESULTS: > \begin{equation*} >   \displaystyle{\sin\left(\frac{a}{b}\right)} > \end{equation*} > > This is currently made use of in the new ob-julia (WIP). > > -- > Timothy