[OS X TeX] \hhline{----~}\hhline{----~} vs \hline\hline
Manfred Braun
manfred.braun at uni-due.de
Sun Mar 25 18:49:32 CEST 2012
On 25.03.2012, at 19:18, Alain Schremmer wrote:
>
> On Mar 25, 2012, at 9:54 AM, Manfred Braun wrote:
>
>> \begin{tabular}{|c|c|c|c|l}
>> \cline{1-4}
>> Thousand & Hundred & Ten & Single & \\
>> \cline{1-4}\noalign{\vskip\doublerulesep}\cline{1-4}
>> 0 & 8 & 0 & 3 & Apples
>> \end{tabular}
>
> As I said earlier, the above works perfectly ... except that, when i use \cellcolor{yellow} as in
>
> \begin{tabular}{|c|c|c|c|l}
> \cline{1-4}
> Thousand & \cellcolor{yellow}Hundred & Ten & Single & \\
> \cline{1-4}\noalign{\vskip\doublerulesep}\cline{1-4}
> 0 & \cellcolor{yellow}8 & 0 & 3 & Apples
> \end{tabular}
Alain,
you are right. As I've said, I'm not familiar with these packages by David Carlisle. It seems, however, that
\setlength\arrayrulewidth{3pt}\setlength\doublerulesep{2pt} %%% only to see the result more clearly
\begin{tabular}{|c|c|c|c|l}
\hhline{----}
Thousand & \cellcolor{yellow}Hundred & Ten & Single & \\
\hhline{----}\noalign{\vspace{\doublerulesep}}\hhline{----}
0 & 8 & 0 & 3 & Apples
\end{tabular}
works, while with my earlier suggestion to use \cline it doesn't.
As to \vskip versus \vspace -- both are possible, but they are used differently: \vskip1mm but \vspace{1mm}.
Best regards,
Manfred
More information about the macostex-archives
mailing list