bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure mathjax for less common commands and text in math


From: Raymond Toy
Subject: Re: configure mathjax for less common commands and text in math
Date: Fri, 21 Jan 2022 13:23:14 -0800



On Thu, Jan 20, 2022 at 3:01 PM Patrice Dumas <pertusus@free.fr> wrote:
Hello,

There are some constructs that are not correctly formatted by mathjax,
uncommon commands that can be in math and other constructs, for
instance:

  \mathord{\text{\l{}}} \textsl{\c{\'{C}}} \copyright{} \mathsterling{}

Does anybody knows how to get those to work?  I tried to load amsmath
using the ams package for mathjax, but it didn't change anything and I
think that it is already loaded.

I didn't try this, but according to https://docs.mathjax.org/en/latest/search.html?q=mathsterling&check_keywords=yes&area=default#, Mathjax 3 doesn't support mathsterling.  It does support mathord, though.


Those constructs are ok when in a LaTeX document with preamble

\documentclass{book}
\usepackage{imakeidx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[gen]{eurosym}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{needspace}
\usepackage{etoolbox}
\usepackage{array}
\usepackage{mdframed}
\usepackage{enumitem}
\usepackage{titleps}
\usepackage{float}
% use hidelinks to remove boxes around links to be similar with Texinfo TeX
\usepackage[hidelinks]{hyperref}
\usepackage[utf8]{inputenc}

(as a side note, these is some LaTeX used to format some Texinfo
@-commands, but it does not matter, users may want to use those commands
in @math/@displaymath in any case).

--
Pat



--
Ray

reply via email to

[Prev in Thread] Current Thread [Next in Thread]