From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id F8R0ENwd9GDt9gAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 14:26:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uPWRC9wd9GAcXgAA1q6Kng (envelope-from ) for ; Sun, 18 Jul 2021 12:26:04 +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 7450218C0 for ; Sun, 18 Jul 2021 14:26:03 +0200 (CEST) Received: from localhost ([::1]:49696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m55rt-0007Wa-MN for larch@yhetil.org; Sun, 18 Jul 2021 08:26:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m55qv-0007WN-7I for emacs-orgmode@gnu.org; Sun, 18 Jul 2021 08:25:01 -0400 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]:28532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m55qt-0004f4-4X for emacs-orgmode@gnu.org; Sun, 18 Jul 2021 08:25:01 -0400 Received: from [192.168.1.59] (unknown [88.162.223.185]) (Authenticated sender: emm.charpentier@free.fr) by smtp5-g21.free.fr (Postfix) with ESMTPA id E93EA5FFAB for ; Sun, 18 Jul 2021 14:24:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1626611096; bh=KTIHqLKbR0qET970XQmXTw4jTquA2iWE3tQZQPQmgOo=; h=Subject:From:To:Date:From; b=L+6vwRg/NFlCGiRW8kymfftE774Byh5w91r66855JWHKw80VtepsadQKvvVh1T2VO roddE9P0YmFd5Egrl8UyoxtHeE+W2o4Z3ONSiajBVjo4TVAf2FvaRNMtHE31LuexXp lith/zNfKv05eETVsp0pRK9fLPUcKFiUU4mFjfptc9x4m8yVyWYrpeWVkFhz/yDAPo UQ97rJVn0TO5WgmfpqhjczD+Aa9w9Zmc1pfOEv1RjKZLkdgfZNLBg3nm/3+/FnXy8a U9biRBMSFyfeUsc7Xsob2Sl9xZUQt+kiLf/yVawXw7jxUPhsa51IUIh0isrnITcBwK 5eOUWKFLUsTng== Message-ID: <27a07324dffd035a3c5978dbe81e82ff7fbc0c8b.camel@free.fr> Subject: Suggestion : Option enabling LaTeX blocks to non-latex exporters. From: Emmanuel Charpentier To: emacs-orgmode Date: Sun, 18 Jul 2021 14:24:54 +0200 Organization: =?ISO-8859-1?Q?Organis=E9?= ? Moi ??? Content-Type: multipart/alternative; boundary="=-Hum1+eqs+05jEpl+BWJz" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a01:e0c:1:1599::14; 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1626611163; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KTIHqLKbR0qET970XQmXTw4jTquA2iWE3tQZQPQmgOo=; b=YCxojaWcyt9qMGEbFNeR1/RhMYcHS4pEj9hrxxfBlQsMOX5BiS4pEwW+nbLvJNUa7d93/E hlK7Wvw46pyAcd4OQ6alnlZFbdv09UxhL36r4GXfQKmZcvTi52mEcqk0bTVdjdcvp4z5tV HTITZzFVJbXmHFGhn1MZ0m3EUkdluNI6GQd7S9n13l39o6MTT/JW2N1INEHCYX2RJOX6nf CR0ADePz3q65ruP3k3BpLKW2ROEM9mbhbiLRGYaj40oXVdO+iWRUxBp7XjzUYst7jqSTov fvqBLBDR4shmCmNGVBaSuZ9IbfoXzs6Ivf00x2Nt4RkmLcOo1xRFlwQjyMvV7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626611163; a=rsa-sha256; cv=none; b=IZUbooSBL5J5mw4vtTxa7GuUYavhaIIZpYKgTepDBdu9jfEiKsJfSI+4GECe2yKVFQoOGy q7Bbc1M1P5iDj59rZLUGXOhWuSjZTqCGBaVra/4iHdR8gQ7RBVWk604GSxu+SJPuHsBnY/ 7xFdWsAAOSXvPbi8nE2s+/oPFhCyP3ZtHkmosFpVd5jhT/Wv3gY5yrX6qHYqWGKEqg90BQ oSelr86ALnj1RnSnyUsIJKUVFEmL2JVRIHgAWvRQvAJx0Lq76LKscMQnfz5mzFzeIbJV5B TKUdTN4RGqfiuyQc3wQ4heITOQpPZQQ2rRjA14/jgK0TPQuvdCqjwm418pDsPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="L+6vwRg/"; 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: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="L+6vwRg/"; 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: 7450218C0 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: m574IMmjnBKx --=-Hum1+eqs+05jEpl+BWJz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Dear list, "raw" LaTeX can already be successfully exported by some exporters : both html and odt exporters can translate (a limited subset of) such latex expressions in something palatable to their respective targets (Mathjax and representation MathML respectively). This does *not* apply to LaTeX marked as such. To be clear : babble babble $\int_a^b f(x) dx$ noise noise will export the math expression to  html and odt (if tex:t or tex:dvipng or tex:dvisvgm) ; on the other hand babble babble @@latex:$\int_a^b f(x) dx$@@ noise noise will not. Neither will : #+latex: \[\Phi_{\mu, \sigma}(x) = \frac{e^-{\frac{(x-\mu)^2}{2\sigma^2}}}{\sigma\sqrt{2\pi}}\,.\] nor : #+begin_export latex \[\Phi_{\mu, \sigma}(x) = \frac{e^-{\frac{(x-\mu)^2}{2\sigma^2}}}{\sigma\sqrt{2\pi}}\,.\] #+end_export This has an annoying consequence : a function cannot (easily) return a LaTeX block. One can return a raw result, but this loses the link between the function and its result(s). John Kitchin has suggested (https://lists.gnu.org/archive/html/emacs-orgmode/2021-07/msg00099.html)  to wrap raw latex code in a drawer ; this works, but I am unable to understand how, and I do not know what are the consequences. Having an option allowing latex code marked as such to be passed to other exporters (possibly with conversion) would allow a "cleaner" solution. What do you think ? -- Emmanuel Charpentier --=-Hum1+eqs+05jEpl+BWJz Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Dear list,

"raw" LaT= eX can already be successfully exported by some exporters : both html and o= dt exporters can translate (a limited subset of) such latex expressions in = something palatable to their respective targets (Mathjax and representation= MathML respectively).

This does *not* apply to La= TeX marked as such. To be clear :

babble babble $\=
int_a^b f(x) dx$ noise noise

will export the math = expression to  html and odt (if tex:t or tex:dvipng or tex:dvisvgm) ; = on the other hand

babble babble @@latex:$\int=
_a^b f(x) dx$@@ noise noise

will not. Neithe= r will :

#+latex: \[\Phi_{\mu, \sigma}(x) =3D \fra=
c{e^-{\frac{(x-\mu)^2}{2\sigma^2}}}{\sigma\sqrt{2\pi}}\,.\]

<= /div>
nor :

#+begin_export latex
\[\=
Phi_{\mu, \sigma}(x) =3D \frac{e^-{\frac{(x-\mu)^2}{2\sigma^2}}}{\sigma\sqr=
t{2\pi}}\,.\]
#+end_export

This has an a= nnoying consequence : a function cannot (easily) return a LaTeX block. One = can return a raw result, but this loses the link between the function and i= ts result(s).



--