On 14/11/10 1:41 AM, Deyan Ginev wrote:
> Dear tex4ht developers,
> 
> I was using a single column {array} environment and stumbled onto a
> bug. The minimal code to reproduce is:
> 
> \documentclass{article}
> \begin{document}
> $\begin{array}{c}test\end{array}$
> \end{document}
> 
> The error is that a <col> element is opened, but never closed, which
> leads to the XML being malformed. Just run xmllint on the output HTML
> file to see the details.
> 
> Any update that patches this (or advice how to circumvent) would be
> welcome, since the resulting documents will not get rendered
> otherwise. And I am afraid I need to stick to using a single column
> array, as this is part of a larger external LaTeX package and not my
> own brainchild.

The following command on your specimen document (saved as deyan.tex)
created:

  htlatex deyan.tex "html,xhtml"

?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
  <meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)" />
  <meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)" />
  <!-- html,xhtml -->
  <meta name="src" content="deyan.tex" />
  <meta name="date" content="2010-11-14 11:43:00" />
  <link rel="stylesheet" type="text/css" href="deyan.css" />
</head>

<body>
  <!--l. 8-->

  <div class="array">
    <table id="TBL-1" class="array" cellpadding="0" cellspacing="0">
      <colgroup id="TBL-1-1g">
        <col id="TBL-1-1" />
      </colgroup>

      <tr style="vertical-align:baseline;">
        <td style="white-space:nowrap; text-align:center;">
          <div class="td11">
            <span class="cmmi-10">test</span>
          </div>
        </td>
      </tr>
    </table>
  </div>
</body>
</html>

Hope this helps.

-- 
Radhakrishnan

Attachment: 0x6F94BEAC.asc
Description: application/pgp-keys

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to