From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IKb1L1RjbGObRAEAbAwnHQ (envelope-from ) for ; Thu, 10 Nov 2022 03:35:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4LkxL1RjbGOXOQEAG6o9tA (envelope-from ) for ; Thu, 10 Nov 2022 03:35:00 +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 910DEC92C for ; Thu, 10 Nov 2022 03:34:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osxOT-00078J-IF; Wed, 09 Nov 2022 21:34:17 -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 1osxOR-00077u-AH for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 21:34:15 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osxOO-0000NQ-US for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 21:34:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2C390240101 for ; Thu, 10 Nov 2022 03:34:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668047650; bh=ws2HkaMAfcgl+Gd8ycs2PDG/gyPyy2IL1b9J/O09kLw=; h=From:To:Cc:Subject:Date:From; b=JLz+zcIb7YsgtaEiibM9cghdRXWK67yRGaM3UanceuQNJd4C2KGVu7jyncaaQ1wio NalginiFXQeJiKf+NoAoh5cOcCv90NBiBkT+ZZqY5wouqv3i105lGoU3e/ZdnjvTwk YXR3y7Yqczh8DN3gtZpHGrjmL8l+66O3R9mp6nwqkbX7EwUsW/V76r2045JUK4O5Of i20Qfq1z1hOuo/jhzL/c/gENjpCHWF0ZObXvM43s2RIgJ+DzYkmyzWciMdj9sYEwIy H4o4MXccb9ha7s9z7xiXMTQVNvFcc9aIBpeCdBih+a6Sl3ij+10ON/tMzjrnjwRp1V u1GpDG5a473IQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N75WL2sm7z6tmL; Thu, 10 Nov 2022 03:34:06 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: Update Org to MathJax 3 In-Reply-To: References: <87h70ekci6.fsf@localhost> <87sfixk3u3.fsf@localhost> <87v8nslox3.fsf@localhost> <87iljra2lw.fsf@localhost> <87v8nq10qg.fsf@localhost> <87zgd0adod.fsf@localhost> Date: Thu, 10 Nov 2022 02:34:47 +0000 Message-ID: <87pmdvk054.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, 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.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668047696; 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=TleFblsSjl6MI6WpJIsniFjJ7IiVvMMpzHy17tM19Fs=; b=WQy8blaixZLxlE6NGGviF+0wZW4Lo3+K5MBQkw+8CCfuK56+40RlY0PCKfqm7mb5z5OBI7 jOrqhEhldOEtkcJgJcNAgXeBJrgE0Dl0nOpWA8s+6R5Q4ehshU242JJC/FENzmAv6RGacj YmFbOTkk3yyNX2T7aILEMu+/BUxskt7/+x08bRGF143b1+QUHyfIrpY8ugj3GZholcfDZ+ iUyciHxgB+utw24Iy5vkpkR8ELyVMJwHDQaeCXqxAkR9P4FIgOrBli1+55u57i3faffOOW 4j1IgliKtZoTorgvCkezB+ZYObJz9Jn2D0k58WfY6QKYNwsKZdl+wPX1TbbWKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668047696; a=rsa-sha256; cv=none; b=Q6w8KH5p4WcMShil8/Ctk006X+9lFN3fGQf+TNY0RYsWgE+WlGCQawXrfnT4VjLD96pMmW B5uSB9SBQLWanfs825EXrG8pUxiaEhjJ0T4vB64kr3OKXcsIjCXhJ5kI4U/VLBpy56a21F V3kXe2sGXO3ZIE+Qu3ouRnsPrOlh+/i/ehlrE7AqMiMYMNpapKbmL8aNtPqvmH4AQ2c1iI EkBVr8z94nUjAvMiW8BMDg9TW1XWtOtPGhJr98oUspfNgs40BzUSM5rfPqPqg6NhIVJYCl cnf3Mdolpslh0hpv2YhULj+RRe/kscv1TwUgKRvTSLTmFpBA0IuWI8qZzyu+YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JLz+zcIb; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JLz+zcIb; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 910DEC92C X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: CSS+XYfBoqpI Rudolf Adamkovi=C4=8D writes: >> Are these extensions no longer supported? > > MathJax 3+ supports extensions, and one can load them in multiple ways. > See [1]. It deserves some thinking, for the extensions mirror LaTeX > extensions. So, to make both HTML and PDF work, one has: > > Use the Physics package in both LaTeX and MathJax. > > #+latex_header: \usepackage{physics} >=20=20=20 > #+html_head_extra:
> #+html_head_extra: \( > #+html_head_extra: \require{physics} > #+html_head_extra: \) > #+html_head_extra:
> > (The example taken from my Org notebook.) > > [1]: https://docs.mathjax.org/en/latest/input/tex/extensions.html > > That said, I do not currently have bandwidth to extend the scope of the > patch to include MathJax extensions. (Note that they have never worked > anyway, so the user loses nothing, and we correct documentation.) Then, please mention this in the NEWS. Something like "we drop extension support as it never worked anyway". > A slight digression, just FYI: > > I realized that I should have improved LaTeX to SVG exports instead of > focusing on MathJax. Org supports LaTeX environments, but outside of > PDFs, it does so poorly. Packages such as TikZ, for example, do not > work out of the box, so people use Babel to hack around it. Worse > still, Org does not even properly adjust baselines for inline math, so > HTML exports remain barely usable for any mathematical work. > > If we fix LaTeX, Org could have fast and good mathematics, with no > JavaScript, like Wikipedia has. Then, we could use it by default, > instead of MathJax. > > Having good support for LaTeX would position Org as the king of markup > editors, because LaTeX can do everything under the sun. For instance, > one can typeset a chess game in a couple of lines. Or sheet music. Or > molecules in three dimensions. No mainstream Markdown editor or web > authoring tool can do that. Yet, Org can *almost* do it. Patches are always welcome ;) > + (append `((,(if (plist-member options 'autonumber) > + 'tags 'autonumber) > + nil) > + (,(if (plist-member options 'linebreaks) > + 'overflow 'linebreaks) > + nil)) > + options))) You may even drop append and use ,@options inside `(...). Not a big deal th= ough. > + (`scale > + (when (stringp value) > + (setq value (string-to-number value))) > + (when (>=3D value 10) If value is invalid string (not an actual number), `string-to-number' will return 0. This may cause very strange export output I think.=20 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at