bugtex4ht - Bugs: bug #466, tex4ht produces wrong table when...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #466: tex4ht produces wrong table when adding td { padding: 10px; }

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sat May 16 00:12:51 2020  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Jun 29 22:22:23 2020, comment #2:

think there is nothing more to do here, closing.

Karl Berry <karl>
Project Administrator
Sat May 16 09:37:10 2020, comment #1:

Hi Nasser,

I don't see the problem you describe. The issue I can see is that only top and bottom padding is increased. The left and right padding stays the same. The CSS file contains more specific padding specifications for these paddings, so your CSS declaration is not used in this case.

Try the following CSS:

td.td00, td.td01, td.td11, td.td10 { padding: 10px; }

It should override the TeX4ht defaults.

Best,
Michal

Michal Hoftich <michal_h21>
Project Member
Sat May 16 00:12:51 2020, original submission:

The default table that tex4ht produces has small padding in table cells. I wanted a little more space.

So I tried this

====================
\documentclass[12pt]{article}
\begin{document}
\ifdefined\HCode
\Css{ td { padding: 10px; }}
\fi
\begin{tabular}{ |p{3in} | p{3in}|}\hline
text
&
text
\\\hline
\end{tabular}
\end{document}
=============================

Compiled using

make4ht -ulm default foo3.tex "htm,mathjax"

but the table it produces has partly extra row with edges cut of. It is all wrong. It should have one row.

Is there a way to increase padding of tables generated by tex4ht without this problem?

I am using TL 2020.

Thanks
--Nasser

Nasser M. Abbasi <nma123>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jun 29 22:22:23 2020karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray