Re: [tex4ht] using verbatim fails on some content when using mathjax mode

2020-05-22 Thread Michal Hoftich
> I've took a look at MathJax documentation and couldn't find anything.
> I think only think you can do is to contact MathJax devs.

I've just found that TeX4ht doesn't produce  element for verbatim
environment, it produces  instead. MathJax works correctly when I
use , so it will need to be fixed in the sources.

Best regards,
Michal


Re: [tex4ht] using verbatim fails on some content when using mathjax mode

2020-05-22 Thread Michal Hoftich
> Error is "Unknown environment 'luacode'" on the page. Really? so how
> does one tell mathjax not to look inside verbatim?
>
> Any suggestion on the above one is appreciated.

I've took a look at MathJax documentation and couldn't find anything.
I think only think you can do is to contact MathJax devs.

Michal


Re: [tex4ht] using verbatim fails on some content when using mathjax mode

2020-05-22 Thread Nasser M. Abbasi

On 5/21/2020 4:58 AM, Michal Hoftich wrote:

Hi Nasser,


catdvi -e 1 -U index.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re 
"s/([^^[:space:]])\s+/\1 /g" > index.txt



It seems mathjax issue? How to tell mathjax not to look inside verbatim class?

When not using mathjax mode, there is no problem at all. Here
is the raw HTML in this case



I think MathJax interprets this string: /\[U\+2022\] as math
environment.  I hope it can be fixed using some MathJax configuration,
but I am not MathJax expert :)

Best regards,
Michal



(ps. trying again. last attemtpt was rejected for some reason).

I think this problem is more serious.

I was now compiling an old file which has this

 \verb|\begin{luacode}\end{luacode}|

And mathjax does not render it as verbatim at all. Gives my yellow error on the
page.

I also tried \begin{verbatim}, same problem. Please see MWE


\documentclass[12pt]{article}
\begin{document}

\verb|\begin{luacode}\end{luacode}|
\begin{verbatim}
\begin{luacode}\end{luacode}
\end{verbatim}

\end{document}
===

Compiled using

 make4ht -ulm default -a debug foo3.tex "html,mathjax"

Error is "Unknown environment 'luacode'" on the page. Really? so how
does one tell mathjax not to look inside verbatim?

Any suggestion on the above one is appreciated.

--Nasser


Re: [tex4ht] using verbatim fails on some content when using mathjax mode

2020-05-21 Thread Nasser M. Abbasi

On 5/21/2020 4:58 AM, Michal Hoftich wrote:

Hi Nasser,


catdvi -e 1 -U index.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re 
"s/([^^[:space:]])\s+/\1 /g" > index.txt



It seems mathjax issue? How to tell mathjax not to look inside verbatim class?

When not using mathjax mode, there is no problem at all. Here
is the raw HTML in this case



I think MathJax interprets this string: /\[U\+2022\] as math
environment.  I hope it can be fixed using some MathJax configuration,
but I am not MathJax expert :)



No problem Michal. I compiled this one file using svg mode and it works fine.
svg always works. I would use it all the time, except it is slower
than using mathjax and generates much larger size build.

But I wonder, there must be a way to tell mathjax not to look
inside verbatim in HTML. Even HTML itself has verbatim environment:

https://stackoverflow.com/questions/16783708/how-to-display-raw-html-code-in-pre-or-something-like-it-but-without-escaping-it/16785992



==

If Mathjax tries to look at each byte in the HTML page regardless of where
this byte is and tries to interpret it as mathematics, this for me
is a very strange way to do it.

But I am OK now. This was just one old file I was compiling.

regards,
--Nasser


Re: [tex4ht] using verbatim fails on some content when using mathjax mode

2020-05-21 Thread Michal Hoftich
Hi Nasser,

> catdvi -e 1 -U index.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re 
> "s/([^^[:space:]])\s+/\1 /g" > index.txt

> It seems mathjax issue? How to tell mathjax not to look inside verbatim class?
>
> When not using mathjax mode, there is no problem at all. Here
> is the raw HTML in this case
>

I think MathJax interprets this string: /\[U\+2022\] as math
environment.  I hope it can be fixed using some MathJax configuration,
but I am not MathJax expert :)

Best regards,
Michal