I have very very simple equations. It's working well in PdfLaTeX and not working in tex4ht.
\documentclass[a4paper,twoside]{book}
\begin{document}
$K^\mathrm{mno}$
\end{document}
I know before superscript need to give {. But it's working fine in PdfLaTeX and why not working in tex4ht/make4ht. Not only "^"(superscript) "_" also not working.
How to do i need to work in tex4ht/make4ht? Any great help is highly appreciate.
I have need to achive in simple cfg file and find it below:
\Configure{ext}{xhtml}
\Preamble{xhtml,html5,mathml,NLM,charset=UTF-8,-xtpipes,NoFonts,refcaption,ext=.xhtml}
\Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}}
\begin{document}
\renewcommand{\a}{\alpha}
\renewcommand{\mathrm}{<br/><br/>}
\EndPreamble
K^\mathrm{mno}is wrong syntax. That it works in pdflatex is luck, but as you see you are not so lucky with tex4ht. Use the right input syntaxK^{\mathrm{mno}}. – Ulrike Fischer Oct 06 '20 at 07:53TeX4htworks purely based on correct format ofLaTeXtagging method and you should follow it without excuse, asUlrikementioned you should correct your tagging – MadyYuvi Oct 06 '20 at 15:25