<br><div class="gmail_quote">On Fri, Nov 11, 2011 at 8:16 PM, Radhakrishnan CV <span dir="ltr"><<a href="mailto:cvr@river-valley.org">cvr@river-valley.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Nov 10, 2011 at 10:36 PM, Ray Seyfarth <<a href="mailto:ray.seyfarth@gmail.com">ray.seyfarth@gmail.com</a>> wrote:<br>
> Hi tex4ht Fans!<br>
><br>
> I have prepared a book using LaTeX which looks great as a printed book<br>
> (PDF).  However, to have an electronic version for Kindles and Nooks, I had<br>
> to convert the book to HTML.  The htlatex command does an outstanding job of<br>
> conversion to html, but the lines for the tables are too complex for the<br>
> Kindle to handle properly.<br>
<br>
</div>TeX4ht generates the kind of tables as found in LaTeX documents.<br>
<div class="im"><br>
> Is there some way to tell htlatex to generate tables with border="1"?<br>
<br>
</div>You might provide a simpler configuration for tabular structure after<br>
\begin{document} in the following fashion:<br>
<br>
the syntax is<br>
<br>
\Configure{tabular}<br>
  {at the start of table}<br>
  {at the end of table}<br>
  {at the beginning of row}<br>
  {at the end of row}<br>
  {before each cell}<br>
  {after each cell}<br>
<br>
\Configure{tabular}<br>
    {\HCode{<table width="100\%" cellspacing="3" cellpadding="3" border="1">}}<br>
    {\HCode{</table>}}<br>
    {\HCode{<tr style="background-color:\rowcolor">}}<br>
    {\HCode{</tr>}}<br>
    {\HCode{<td  align="left"<br>
            \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}<br>
    {\HCode{</td>}}<br>
<br>
The following is for alternate background colors for rows and unique<br>
color first row.<br>
<br>
\def\rowcolor{\ifnum\HRow=1<br>
    \#aaaaff;\else\ifodd\HRow\#f0f0f0;\else\#fdeded;\fi\fi}<br>
<br>
Hope this will help your purpose.<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888">--<br>
Radhakrishnan<br>
</font></span></blockquote></div><br>Thanks for your suggestion.  I may end up needing to know how to configure the tabular environment.<br><br>Last night I ran across a reference to using a configuration file specifying pic-tabular and I believe that this will take care of my needs pretty well.  I can have all my tables be images and produce a nice looking ebook.  It would be nicer to have an HTML table so that increasing the font size would make the table text larger, but I am happy enough to have a workable solution.<br>
<br>I also have modified /etc/tex4ht/tex4ht.env to make the images a little larger (-x 1800) and darker (--gamma 1.5).  With these changes I have tables and math which look much better on the Kindle.  Before the math images were a light gray and hard to read.  Now they look pretty crisp.<br>
<br>I will retain your message in case I decide to try for HTML tables in the future.<br><br>Thanks<br><br>Ray<br clear="all"><br>-- <br><span style="font-family:comic sans ms,sans-serif">Ray Seyfarth               <a href="http://rayseyfarth.com" target="_blank">http://rayseyfarth.com</a>       <a href="http://rayseyfarth.blogspot.com" target="_blank">http://rayseyfarth.blogspot.com</a></span><br style="font-family:comic sans ms,sans-serif">
<span style="font-family:comic sans ms,sans-serif">Personal email:           </span><a style="font-family:comic sans ms,sans-serif" href="mailto:Ray.Seyfarth@gmail.com" target="_blank">Ray.Seyfarth@gmail.com</a><br style="font-family:comic sans ms,sans-serif">
<span style="font-family:comic sans ms,sans-serif">Google Voice:              601-336-0128  (Calls Cell & Skype)</span><br style="font-family:comic sans ms,sans-serif"><span style="font-family:comic sans ms,sans-serif">Cell:  601-270-7995     Skype: 601-255-4985</span><br>