[tex4ht] MathJax support
Nasser M. Abbasi
nma at 12000.org
Sun Dec 9 07:58:35 CET 2018
In addition, now when I run my standard makefile, tex4ht is broken :(
so I can't build any more
make4ht -ulm default -e ~/new.mk4 -c ~/nma_mathjax.cfg
foo1.tex "htm,0,notoc*,p-width,charset=utf-8" " -cunihtf -utf8"
>make4ht -ulm default -e ~/new.mk4 -c ~/nma_mathjax.cfg foo1.tex "htm,0,notoc*,p-width,charset=utf-8" " -cunihtf -utf8"
Output dir:
Compiler: dvilualatex
Latex options: -jobname=foo1
tex4ht.sty : /home/me/nma_mathjax.cfg,htm,0,notoc*,p-width,charset=utf-8,charset=utf-8
tex4ht -cunihtf -utf8
build_file /home/me/new.mk4
...
(/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
(/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/usepackage.4ht)
! LaTeX3 Error: Control sequence \alteqtoks already defined.
For immediate help type H <return>.
...
l.24 \cs_new_protected:Npn \alteqtoks
#1
?
-------------------------------------------------
It looks new updated broke something in tex4ht as I am using same
command as before the updates which always worked.
Thanks
--Nasser
On 12/9/2018 12:53 AM, Nasser M. Abbasi wrote:
> 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"
>
> ----------------------------------
> \documentclass[12pt]{article}
> \usepackage{graphicx}
> \usepackage{amsmath}
>
> \begin{document}
>
> $\sin x$
>
> \end{document}
> ---------------------
>
> Gives
>
> ----------------------------
> (/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
> (/usr/local/texlive/2018/texmf-dist/tex/latex/etoolbox/etoolbox.sty
>
> 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)
> (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3.sty
> (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
> (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/l3dvips.def))
> (/usr/local/texlive/2018/texmf-dist/tex/latex/environ/environ.sty
> (/usr/local/texlive/2018/texmf-dist/tex/latex/trimspaces/trimspaces.sty)))
> 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
> ttps://cdnjs.cloudflare.com/ajax/libs/mathj...
>
> ?
> ! Missing $ inserted.
> <inserted text>
> $
> l.338 ...thjax/2.7.5/latest.js?config=TeX-AMS-MML_
> HTMLorMML}
> ?
> ! 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
> supp-pdf.mkii
> 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
>
> Thanks
> --Nasser
>
More information about the tex4ht
mailing list