fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

\hline is not supported #55

Open an0 opened 6 years ago

an0 commented 6 years ago

Is it a bug? Is there any alternative way to draw a horizontal line to separate rows in a matrix?

fred-wang commented 6 years ago

TeXZilla's syntax is aligned on itex2MML.

cc'ing @distler

an0 commented 6 years ago

So what's the syntax for \hline?

distler commented 6 years ago

I can't speak for Frederic, but itex2MML is concerned with LaTeX equations, not running text (it is envisioned a way to embed equations in some other text markup language -- be it HTML or Markdown or whatever -- that is processed to HTML+MathML).

So it is neither desired nor expected to support LaTeX commands that only appear in running text.

distler commented 6 years ago

Hmm. OK, sorry. I guess there is a use-case in matrices. There is a rowlines attribute on the MathML mtable element which is sorta similar ... but not really.

fred-wang commented 6 years ago

That's the same for TeXZilla. If one wants to process a whole LaTeX document, then something like latexml ( https://dlmf.nist.gov/LaTeXML/ ) is more appropriate.

I'm happy to accept PRs adding support for itex2MML commands that are missing from TeXZilla.