[tex4ht] make4ht with mathjax and \setlength{\fboxsep} problem
Nasser M. Abbasi
nma at 12000.org
Mon Sep 10 17:37:55 CEST 2018
Does make4ht support for mathjax include \setlength{\fboxsep}?
This MWE does not render correctly using mathjax but it does
when not using mathjax:
--------------------------
\documentclass[11pt]{article}
\usepackage{amsmath,mathtools,amssymb}
\begin{document}
\[
\setlength{\fboxsep}{2.5\fboxsep}
\boxed{y={\frac {2\,x-2\,\ln \left( x \right) +C_{{1}}}{ \left( -1+x \right) ^{2}}}}
\]
\end{document}
--------------------------
Compiled with
make4ht -ulm draft -c ./nma_mathjax.cfg foo.tex "htm,0,charset=utf-8" " -cunihtf -utf8"
Where nma_mathjax.cfg is
-----------------------------
\RequirePackage{mathjax-latex-4ht}
\Preamble{xhtml}
\begin{document}
\EndPreamble
-------------------------------
The HTML looks like this:
https://www.12000.org/tmp/relax/screen_shot_2.png
Using mathjax-latex-4ht.sty downloaded from
https://github.com/michal-h21/helpers4ht/blob/master/mathjax-latex-4ht.sty
When compiled using
make4ht -ulm draft foo.tex "htm,0,charset=utf-8" " -cunihtf -utf8"
Then it renders OK.
TL 2018
Thanks
--Nasser
More information about the tex4ht
mailing list