Validation

  • Document editors are expected to export correct LaTeX (and XML) code
  • TeX4ht might produce broken XML code on proper LaTeX inputs
  • TeX4ht offers a command line option mathml- that requests degraded MathML output
  • The degraded code is more likely to be syntactically correct

Configure TeX4ht to automatically validate the output files!

SciWriter provides menu support for [a,b[ and allows also direct insertion.

For (a,b(’, only direct insertion seems possible.

[Picture]

The following is the LaTeX code SciWriter produced for the above input.

       $ { \left[ a , b \right[ } $  
 
       $  [ a , b [  $  
 
       $  ( a , b (  $  

TeX4ht provides broken XML code when invoked with the following command, due to the unbalanced parentheses in the last two expressions.

mzlatex doc8

TeX4ht produces syntactically correct XML code when invoked with the following command.

mzlatex doc8 "html,mathml-"

The degraded code treats the delimiters in the second and third formulas as simple symbols—not as delimiters. Implicit assumptions of this kind may be harmful:

  • Problems with delimiters are found in many LaTeX files, so error detection mechanisms are highly desirable.
  • Translations from XML might lack valuable information.

21, next, prev, up, toc , doc8.texexr 4