From: Ihor Radchenko <yantar92@posteo.net>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: Ihor Radchenko <yantar92@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [PATCH] Re: Update Org to MathJax 3
Date: Wed, 09 Nov 2022 05:40:18 +0000 [thread overview]
Message-ID: <87zgd0adod.fsf@localhost> (raw)
In-Reply-To: <m2zgd19elr.fsf@me.com>
Rudolf Adamkovič <salutis@me.com> writes:
> Rudolf Adamkovič <salutis@me.com> writes:
>
>> See the 4th version of the patch attached below.
>
> And, of course, I forgot to update the commit message with the new
> macro. Please see the 5th version of the patch attached below.
Thanks!
> with Org[fn:: By default Org loads MathJax from
> -[[https://cdnjs.com][cdnjs.com]] as recommended by
> +[[https://www.jsdelivr.com/][jsDelivr]] as recommended by
> [[https://www.mathjax.org][MathJax]].][fn:46]. Some MathJax display
Is it really recommended by mathjax? I cannot find any mention of
jsdelivr.com. You may update the URL to something more precise.
> #+texinfo: @noindent
> equation labels are displayed on the left margin and equations are
> -five em from the left margin. In addition, it loads the two MathJax
> -extensions =cancel.js= and =noErrors.js=[fn:: See
> -[[https://docs.mathjax.org/en/latest/input/tex/extensions.html#tex-and-latex-extensions][TeX
> -and LaTeX extensions]] in the [[https://docs.mathjax.org][MathJax
> -manual]] to learn about extensions.].
> +five em from the left margin.
Are these extensions no longer supported?
> - (options (plist-get info :html-mathjax-options))
> + (options (let ((options (plist-get info :html-mathjax-options)))
> + ;; If the user customized some legacy option, set
> + ;; the corresponding new option to nil, so that
> + ;; the legacy user choice overrides the default.
> + ;; Otherwise, the user did not set the legacy
> + ;; option, in which case still set the legacy
> + ;; option but to no value, so that the code can
> + ;; find its in-buffer value, if set.
> + (append
> + (list (list (if (plist-member options 'autonumber)
> + 'tags 'autonumber)
> + nil)
> + (list (if (plist-member options 'linebreaks)
> + 'overflow 'linebreaks)
> + nil))
> + options)))
It would be more compact to use `(...) notation.
> +(defmacro org-test-capture-messages (&rest body)
> + "Return the list of all messages put in the echo area by the BODY."
> + ;; TODO Despite its name, this macro has nothing to do with Org and
> + ;; belongs to a more general package in Emacs.
> + (declare (indent 0) (debug t))
> + `(let ((messages (list)))
> + (cl-letf (((symbol-function 'message)
> + (lambda (format-string &rest args)
> + (setq messages
> + (cons (apply #'format
> + (cons format-string
> + args))
> + messages)))))
> + ,@body)
> + (reverse messages)))
nreverse will be more memory-efficient.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2022-11-09 5:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-07 13:36 Update Org to MathJax 3 Rudolf Adamkovič
2022-10-08 7:20 ` Ihor Radchenko
2022-10-08 21:32 ` Rudolf Adamkovič
2022-11-05 0:20 ` [PATCH] " Rudolf Adamkovič
2022-11-05 12:01 ` Ihor Radchenko
2022-11-05 16:56 ` Rudolf Adamkovič
2022-11-05 22:44 ` Rudolf Adamkovič
2022-11-06 3:52 ` Ihor Radchenko
2022-11-06 23:49 ` Rudolf Adamkovič
2022-11-07 3:02 ` Ihor Radchenko
2022-11-07 20:56 ` Rudolf Adamkovič
2022-11-08 5:20 ` Ihor Radchenko
2022-11-08 23:37 ` Rudolf Adamkovič
2022-11-09 0:05 ` Rudolf Adamkovič
2022-11-09 5:40 ` Ihor Radchenko [this message]
2022-11-09 23:01 ` Rudolf Adamkovič
2022-11-10 2:34 ` Ihor Radchenko
2022-11-11 12:50 ` Rudolf Adamkovič
2022-11-13 4:24 ` Ihor Radchenko
2022-11-13 20:52 ` Rudolf Adamkovič
2022-11-14 4:33 ` Ihor Radchenko
2022-11-19 13:10 ` Bastien Guerry
2022-11-21 2:51 ` Ihor Radchenko
2022-11-22 20:56 ` Rudolf Adamkovič
2022-11-23 11:11 ` Ihor Radchenko
2022-11-23 23:08 ` Rudolf Adamkovič
2022-11-09 2:49 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgd0adod.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=salutis@me.com \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).