[tex4ht] MathJax support

Nasser M. Abbasi nma at 12000.org
Sun Dec 9 07:53:03 CET 2018

On 12/4/2018 1:28 PM, Michal Hoftich wrote:
> Hi Nasser,,
>> Am I doing something wrong? Or may be the updates are not
>> there yet?
> It is only in the source, I think Karl will say when it is available
> in TL. It may take few days.
> Best regards,
> Michal

Thank you again and to Karl also.

I updated TL just now and it look like sources are in now.

>make4ht --version
make4ht version v0.2c

On first test, I get many errors when I try the command

     make4ht foo1.tex "htm,mathjax"



$\sin x$




Package etoolbox Warning: Patching '\begin' failed!
(etoolbox)                '\AtBeginEnvironment' will not work.

Package etoolbox Warning: Patching '\end' failed!
(etoolbox)                '\AtEndEnvironment' will not work.

Package etoolbox Warning: Patching '\begin' failed!
(etoolbox)                '\BeforeBeginEnvironment' will not work.

Package etoolbox Warning: Patching '\end' failed!
(etoolbox)                '\AfterEndEnvironment' will not work.

) (/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/usepackage.4ht)
l.338 --- TeX4ht warning --- \Configure{MathjaxSource}? ---

! LaTeX Error: Missing \begin{document} in `'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.338 \Configure{MathjaxSource}{h

! Missing $ inserted.
<inserted text>
l.338 ...thjax/2.7.5/latest.js?config=TeX-AMS-MML_
! Extra }, or forgotten $.
l.338 ...5/latest.js?config=TeX-AMS-MML_HTMLorMML}

lualatex compiles the above with no error.
Here is \listfiles

  *File List*
  article.cls    2014/09/29 v1.4h Standard LaTeX document class
   size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
graphicx.sty    2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
   keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
     trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
   luatex.def    2018/01/08 v1.0l Graphics/color driver for luatex
  amsmath.sty    2017/09/02 v2.17a AMS math features
  amstext.sty    2000/06/29 v2.01 AMS text
   amsgen.sty    1999/11/30 v2.0 generic functions
   amsbsy.sty    1999/11/29 v1.2d Bold Symbols
   amsopn.sty    2016/03/08 v2.02 operator names
epstopdf-base.sty    2016/05/15 v2.6 Base part for package epstopdf
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
   grfext.sty    2016/05/16 v1.2 Manage graphics extensions (HO)
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
  ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
kvoptions.sty    2016/05/16 v3.12 Key value format for package options (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
pdftexcmds.sty    2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
    ifpdf.sty    2018/09/07 v3.3 Provides the ifpdf switch
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live

Am I doing something wrong? I have no changed anything on my end,
just did

sudo /usr/local/texlive/2018/bin/x86_64-linux/tlmgr  update --all

Then tried make4ht.

This is on Linux ubuntu


More information about the tex4ht mailing list