Graphics, Figures & Tableshhline and colortbl conflict?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jblocher
Posts: 7
Joined: Mon Feb 01, 2010 3:08 pm

hhline and colortbl conflict?

Post by jblocher »

This code:

Code: Select all

\documentclass[]{article}
\usepackage{hhline}
\begin{document}
\begin{tabular}{|c|c|}
\hhline{==}
one & two \\ 
\hhline{--} 
three & four \\ 
\hhline{==}
\end{tabular} 
\end{document}
Produces a nice little table with a double line above and below. But as soon as you use the colortbl package (simply add \usepackage{colortbl} to the preamble of the code above) the double line turns into an ugly, wide solid black line.

How can I get a double line and still use colortbl?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

hhline and colortbl conflict?

Post by gmedina »

Hi,

you could try something like the following:

Code: Select all

\documentclass{article}
\usepackage{colortbl,hhline}

\begin{document}

\begin{tabular}{|c|c|}
  \hhline{>{\doublerulesepcolor{white}}==}
  one & two \\ 
  \hhline{--} 
  three & four \\ 
  \hhline{==}
\end{tabular} 

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply