bugtex4ht - Bugs: bug #229, tex4ht removes spaces in array...

 
 
Show feedback again

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

bug #229: tex4ht removes spaces in array column when used inside tabular

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Tue Aug 26 18:10:40 2014  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Nov 6 15:25:15 2023, comment #1:

I think that I've found the source of this issue. We set some table dimensions to zero in the array. I am unsure why it was done, but when I remove this setting, this example keeps the correct spacing. It didn't change anything in other tests I've run, so I hope it is safe to remove it.

Michal Hoftich <michal_h21>
Project Member
Tue Aug 26 18:10:40 2014, original submission:

reference:
http://tex.stackexchange.com/questions/197243/tex4ht-removes-spaces-in-array-column-when-including-a-package-even-if-the-packa

In the following cases, Tex4ht generates an HTML file with no spaces between the columns of the matrix if some package is included, even if the package is not used.

Removing the package, the space between the columns shows up again.

This only affects tex4ht and not pdflatex. This happens when array is used inside tabular or longtable. Outside of these, then this problem do not show up.

-----------------
\documentclass[12pt,notitlepage]{article}%
\usepackage{tabularx} %commenting this off restores the spaces
\begin{document}

\begin{tabular}{p{6in}}
\[
\left[ \begin {array}{cc}
0 & 1 \\
-25 & -4
\end {array}
\right]
\]
\end{tabular}
\end{document}
------------------------------

htlatex foo.tex

Then the HTML file shows the spaces are lost.

The following packages also cause the same problem, but this is due to them loading the array package internally: siunitx, ltxtable and any other package that loads the array package will show the above problem.

These problems do not show up with the Latex code is outside the tabular environment. As I said in the comment below, this is a small example from large document. I use tabular with 2 columns to help me array the layout of the document. Left side is the command and the right side is the output. Both can be latex code as shown above.

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 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
    Tue Nov 7 13:20:06 2023michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray