<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 8:26 AM, Michal<span dir="ltr"></span> wrote, quoting CVR:<br><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> The user needs to tag math as $a_{\mathbf{n}}$ for perfect MathML output<br>
> without intervention. Another common example found in documents is $(a<br>
> ....$), this would be passed by TeX, but not MathML since the closing<br>
> parenthesis is outside math. Prof William Hammond has been campaigning for<br>
> profiled LaTeX for several years now, but many users are hardly bothered<br>
> since they expect other systems to adopt to their non-standard tagging<br>
> methods. This can only result in a frustrating experience with tex4ht<br>
> unfortunately.<br>
><br>
<br>
</span>We can educate users who actively wants to convert their documents,<br>
they really need to understand the nature of HTML and MathML in order<br>
to produce valid output. Flexibility of TeX if generally good thing<br>
and feature, only the abusing users are problem :)<br>
<span class=""></span></blockquote></div><br></div><div class="gmail_extra">Most of us read documentation and instructions as little as possible. Moreover, there is a low level of language inconsistency in free-ranging use of TeX markup.<br><br></div><div class="gmail_extra">For that reason I think the only way to 'educate' users is to provide a layer of (1) syntax enforcement and (2) source validation under a suitable LaTeX profile.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">With tex4ht I think the way to do that is first, regardless of final output format (and like latexml), to make an xml (or sgml for more 'power') document under a suitable tex4ht LaTeX profile. Use XSLT or a standard sgml library (for more power) like sgmlspl (perl) or OpenSP (C++) to translate the profiled document to whatever end format.<br><br></div><div class="gmail_extra"> -- Bill<br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr">William F Hammond<br>Email: <a href="mailto:gellmu@gmail.com" target="_blank">gellmu@gmail.com</a><br><a href="https://www.facebook.com/william.f.hammond" target="_blank">https://www.facebook.com/william.f.hammond</a><br><a href="http://www.albany.edu/~hammond/" target="_blank">http://www.albany.edu/~hammond/</a><br><br><br></div></div>
</div></div>