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 ms9.migadu.com with LMTPS id +DdgAXxuImQg6QAASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 06:35:08 +0200 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 iERaAXxuImT2IgAA9RJhRA (envelope-from ) for ; Tue, 28 Mar 2023 06:35:08 +0200 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 43AD92ABDF for ; Tue, 28 Mar 2023 06:35:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph12L-0000Vz-Ve; Tue, 28 Mar 2023 00:34:22 -0400 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 1ph12G-0000Vd-BS for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 00:34:16 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ph12E-0003Ec-0W for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 00:34:15 -0400 Received: by mail-wm1-x32e.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so8214719wmq.2 for ; Mon, 27 Mar 2023 21:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679978051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1vmZ7g46x57RIffiLTCFVzFUn8SuT2Qg0M/q1Vz4sFE=; b=Jm0ubFhrnkTVGisE+ujuX6ooqawLC1AQHFnd1QZkUAUaD1sZouO38NSXWObzU6AoMt lZ0ovEJmnj+2Aghz4G1csr8rWizK9hkpWxOjH9cNQV5pRPMiFUUPI7v64t9aAowhkBpm qi78OX0vqMXs0BVHdq5nGaSrN5gCQO9s8tdqDUyM7kRgqAUNQETlrx8mMr4dBte7CudD B4SnnJBHnSR5WtTYjZzfQOrjrADy4M3G3IOQQp+IJDQ+VWwmbKoLyxMrJJ/XzwT5eggj 6/pj+n1zt8iRwjRUSr5IIEBVKmjikVnEahNtf6E142uKR5vrlGx35vW35rbIuK0pjqXf ntFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679978051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1vmZ7g46x57RIffiLTCFVzFUn8SuT2Qg0M/q1Vz4sFE=; b=tGZUrS4d5UN9upGBWjlMiuEJx+Z/4gUNVNzeSHpYUdZVir2hzaxopg0Eq+AM9MkLaK DkFpPjiD7Yo+jOC6Y8YkII6w4Y4tWHQMbd6Ntc8cqZHZvinlOEWKEpcxTcP7NN2qLcvT brCMU9cJCYrghDvYKagomyZn2+K1CZd/+TOm7DDnDPoDy3LSWQEAnK5zVYGoQvu7muqI WNvsUxtRQDQlTHOWo+31LTECBuFrBLx1RGRx7LSXRtkdF5UX/InH1XM7KOaaeywnWgtY r/+5vScNyY++DDM6ZbpdpiUYYt+Q6lSFo6riP89Dsq4F8oSNzttp+g7aljbUYQnqIM2n 7ivg== X-Gm-Message-State: AAQBX9fhXrUjmaunok+87Re0uTt5flPxOuMP+FBvujYodoIzA+fQq6uN cvMz3c87YZ+JahrmFC3/QiNzOVM4JM8= X-Google-Smtp-Source: AKy350bgq/1+ddcFIZOV59DINEDzpCdknaXWLSReVaKTE09H7GvxHLE/zhG7gyb/Wyew3RoZAh/zDw== X-Received: by 2002:a7b:cb02:0:b0:3ef:672a:2c93 with SMTP id u2-20020a7bcb02000000b003ef672a2c93mr7328314wmj.36.1679978051410; Mon, 27 Mar 2023 21:34:11 -0700 (PDT) Received: from pluto.localnet (aaubervilliers-157-1-6-252.w83-200.abo.wanadoo.fr. [83.200.45.252]) by smtp.gmail.com with ESMTPSA id y16-20020a1c4b10000000b003e91b9a92c9sm15642461wma.24.2023.03.27.21.34.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 21:34:10 -0700 (PDT) From: chris To: emacs-orgmode@gnu.org Subject: Re: MathJax extension does not work Date: Tue, 28 Mar 2023 06:34:08 +0200 Message-ID: <8223503.T7Z3S40VBb@pluto> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=inkbottle007@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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.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-Seal: i=1; s=key1; d=yhetil.org; t=1679978107; a=rsa-sha256; cv=none; b=LLnWw5FAnM/xDbjVlXaGXhNGaTdtHzHzG/M3PR2HqB8l5GP7JhNO48H0moTxMBUsbdXhqQ IiR6E3biG3QhdN9US7swDkUQrIP1qcStCsc6YkY61y5mvnbkNtlkx90zMjsgCUy9uaum1j Ol/RH8MAJn1sVvXMFrh01Fie1JHs4D4gWuL1R6KsXQ+7snhAyC/OEGM/5HDUyGDpQWaiHY 51Raqzot45zm2XFFRrruZ0yRZWWiF675iQySR4dNkXQa2kczx0m3qq4PCB61uk5BRJPe4s 2tJNQkPJ9eMLsOaNzZ/5k1uUq1Tddpta/2XtwaQyIew2LV5otO93Rjm7WqIKsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jm0ubFhr; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679978107; 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: 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=1vmZ7g46x57RIffiLTCFVzFUn8SuT2Qg0M/q1Vz4sFE=; b=tNh6l9rjjN2d0VrAHGvSVXwO6UORWik5TnQyGYCMXpi1s8viOrdJ5NrMxnbYpXUsjLAu3O /uBrf6gsWAoORaFyMbpaQIsatt78zHN9Spe8D3cCzmEdd5nEWjpllY257bTY5ylZ/o7aja bRajEfusr2OSI5WBfQ8mhcwjAb2fSCKN7RNY4WMu1VwddsIWa+18BFX23u1g61AV5144iP mGhiyff70US6isJVl6J+Q2OB2+BAGV3kdqL95q5Cfxz5b1xoi90O/eYzjx9z8DO1VF/ot8 nxCZ4fhKh3ughBbl/nhJQns7QZjuQeCYdUO0YQZgfXGQGwtzvgpngXxVK4IX9Q== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jm0ubFhr; dmarc=pass (policy=none) header.from=gmail.com; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.96 X-Spam-Score: -5.96 X-Migadu-Queue-Id: 43AD92ABDF X-TUID: yzN6JWeIGRQF On Sunday, 10 October 2021 11:14:24 CEST Rudolf Adamkovi=C4=8D wrote: > I would like to use the "\mathclap" command from the "mathtools" package = in my Org document. In LaTeX, it works. For HTML, I visited the Org manual = [1] where I saw the following example: >=20 > #+HTML_MATHJAX: cancel.js noErrors.js >=20 > with a comment "it loads the two MathJax extensions =E2=80=98cancel.js=E2= =80=99 and =E2=80=98noErrors.js=E2=80=99 [132]." (As a side-note, the first= link in [132] points to 404.) Thus, I put the following into my Org file >=20 > #+HTML_MATHJAX: mathtools.js >=20 With similar scenario I ended up with: (and `mathjax` extensions work very well) ```org-mode #+STARTUP: latexpreview #+BEGIN_EXPORT html #+END_EXPORT \begin{array}{ccc} \underset{\longrightarrow}{\lim}^f(\alpha_1 \circ p_1) &\overset{\underset{\longrightarrow}{\lim}^f \phi}{\longrightarrow}& \underset{\longrightarrow}{\lim}^f(\alpha_2 \circ p_2) \\ {}^{\mathllap{\simeq}}\downarrow && \downarrow^{\mathrlap{\simeq}} \\ \underset{\longrightarrow}{\lim}^f \alpha_1 &\underset{f}{\longrightarrow}& \underset{\longrightarrow}{\lim}^f \alpha_2 \end{array} (diagram above from: [[https://ncatlab.org/nlab/show/ind-object][ind-object= in nLab]]) \(\Bbbc\) This above uses the other extension, unicode-math. ``` It works when exporting to `latex` and then `pdf`, it works very well when exporting to `html` via `org-html-export-to-html`, it almost works with `org-latex-preview`. Here the relevant part of my `config.org`: ```org-mode #+begin_src emacs-lisp (with-eval-after-load 'org (add-to-list 'org-latex-packages-alist '("" "stmaryrd" t)) (add-to-list 'org-latex-packages-alist '("" "tikz-cd" t)) (add-to-list 'org-latex-packages-alist '("" "amscd" t)) (add-to-list 'org-latex-packages-alist '("" "mathtools" t)) (add-to-list 'org-latex-packages-alist '("" "unicode-math" t)) ;; (add-to-list 'org-latex-packages-alist '("" "breqn" t)) (add-to-list 'org-latex-packages-alist '("" "thisisastupidtestfile" t= )) (setq org-latex-create-formula-image-program 'dvisvgm) (setq org-format-latex-options (plist-put org-format-latex-options :scale 0.80))) #+end_src ``` `thisisastupidtestfile.sty` contains a few straightforward macro of the sor= t of `\newcommand{\calT}{\mathcal{T}}`. Everything works save `unicode-math` which doesn't work with anything `dvi`. I use `dvisvgm` because it allows `tikz` to work with `org-latex-preview`. Cheers, Chris > but it seems to do nothing; the exported HTML code not even contain the w= ord "mathtools". >=20 > A file that demonstrates the problem: >=20 > #+LATEX_HEADER: \usepackage{mathtools} > #+HTML_MATHJAX: mathtools.js >=20 > \begin{equation*} > \begin{aligned} > \lim_{R\to0}F_1 > =3D\lim_{R\to0}\frac{2PR}{P+R} > =3D\lim_{R\to0}\frac{2\cdot0\cdot{}R}{0+R} > =3D\lim_{R\to0}\frac{0}{R}, > =3D\underbrace{\lim_{R\to0}\frac{0}{1}}_{\mathclap{\text{by L'H=C3=B4pita= l's Rule with $\frac{d}{dR}R=3D1$}}} > =3D\lim_{R\to0}0 > =3D0. > \end{aligned} > \end{equation*} >=20 > Rudy >=20 > [1] https://orgmode.org/manual/Math-formatting-in-HTML-export.html >=20 >=20