bugtex4ht - Bugs: bug #346, \columncolor from colortbl package...

 
 
Show feedback again

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

bug #346: \columncolor from colortbl package error

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Tue 13 Dec 2016 05:36:29 PM EET  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 15 Dec 2016 02:56:15 AM EET, comment #3:

all good. committed to tl, r42709.

Karl Berry <karl>
Project Administrator
Wed 14 Dec 2016 05:29:21 PM EET, comment #2:

The OP later edited his question and included more broken examples, one for colortbl itself, the other for xcolor.

It is now possible to use the following commands:

\definecolor{Blue}{rgb}{0,.6,1}
\begin{tabular}{ >{\color[named]{Blue}} cc}
Blue&White\\
Blue&White
\end{tabular}

\begin{tabular}{ >{\color[rgb]{0,.6,1}} cc}
Blue&White\\
Blue&White
\end{tabular}

With xcolor, it is now possible to use colors defined in the preamble:

\documentclass{article}
\usepackage{xcolor}
\definecolor{Blue}{rgb}{0,.6,1}
\begin{document}
\textcolor{Blue}{Blue---I don't think so.}
\textcolor{red!72.75}{Red text}
\textcolor{.!50}{Gray text}
\textcolor{Blue}{Blue again}

\end{document}

Michal Hoftich <michal_h21>
Project Member
Wed 14 Dec 2016 12:53:33 AM EET, comment #1:

committed to tl, r42702. thanks as always.

Karl Berry <karl>
Project Administrator
Tue 13 Dec 2016 05:36:29 PM EET, original submission:

An user submitted an issue on TeX.sx [1]:

------------
\documentclass{article}
\usepackage[table]{xcolor}
\begin{document}

\begin{tabular}{ >{\columncolor[rgb]{0,.6,1}} cc}
Blue&White\\
Blue&White
\end{tabular}
\end{document}
-----------

It crashes because current tex4ht configuration for columncolor expects the color components to be separated by spaces, instead of commas, which are actually used by color and xcolor packages. I've modified the colortbl.4ht to load the xcolor.sty package, colortbl.sty loads color.sty by default. )

xcolor.sty provides commands for color space conversion, so it is no longer needed to use special configurations in colortbl.4ht, which were used for rgb, gray and cmyk colorspaces. The new version is simpler and as a bonus it supports more color spaces than the original version.

We probably should revisit color support in tex4ht someday, but we already found quite a bit issues in the last month, so it doesn't have much high priority right now, I guess.

[1] http://tex.stackexchange.com/q/343773/2891

Michal Hoftich <michal_h21>
Project Member

 

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 (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
    Wed 14 Dec 2016 12:53:33 AM EETkarlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray