Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'mathml'-option giving wrong output for limsup and liminf #133

Closed
yalguzaq opened this issue Sep 1, 2023 · 2 comments
Closed

'mathml'-option giving wrong output for limsup and liminf #133

yalguzaq opened this issue Sep 1, 2023 · 2 comments

Comments

@yalguzaq
Copy link

yalguzaq commented Sep 1, 2023

LaTeX

Limit inferior and limit superior operators:

\documentclass[10pt]{article}
\usepackage{mathtools}

\begin{document}
\begin{equation*}
  \liminf_{n \to \infty} a_n \le \liminf_{n \to \infty} b_n.
\end{equation*}
\end{document}

make4ht

make4ht markup.tex 'mathml,mathjax'

Desired output

via make4ht markup.tex 'mathjax'
image

Erroneous output

image

@michal-h21
Copy link
Owner

Thanks for the report. Try this configuration file:

\Preamble{xhtml}
\catcode`\:=11
\def\:limspaces#1#2{\HCode{<\a:mathml mi>#1</\a:mathml mi><\a:mathml mspace class="thinspace"  width="0.17em"></\a:mathml mspace><\a:mathml mi>#2</\a:mathml mi><\a:mathml mspace class="thinspace" width="0.17em"></\a:mathml mspace>}}
\def\:tempc{\qopname\relax m{\:limspaces{lim}{inf}}}
\HLet\liminf=\:tempc
\def\:tempc{\qopname\relax m{\:limspaces{lim}{sup}}}
\HLet\limsup=\:tempc
\def\:tempc{\qopname\relax m{\:limspaces{proj}{lim}}}
\HLet\projlim=\:tempc
\def\:tempc{\qopname\relax m{\:limspaces{inj}{lim}}}
\HLet\injlim=\:tempc
\Configure{qopname}
   {\Configure{mathop}{*}
      {<\a:mathml mrow \mml:class="qopname">}
  {</\a:mathml mrow><mo> &\#x2061;<!--FUNCTION APPLICATION--> </mo>}
      {}}
\catcode`\:=12
\begin{document}
\EndPreamble

@yalguzaq
Copy link
Author

yalguzaq commented Sep 5, 2023

Thanks, it worked.

@yalguzaq yalguzaq closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants