I have a table (tabulary
) in which some cells are only filled with a rule.
This rule is 1ex
thick and I want that the bottom of the rule matchs the baseline (of all cells of the row).
I've found that when I define a color for this rule, and if there is no text in the cell before the rule, the baseline of the rule-cell does not match the baseline of the other celles of the row.
Where is the dummy error I'm not finding?!
\documentclass{scrartcl}
\usepackage{tabulary}
\usepackage{xcolor}
\begin{document}
\begin{tabulary}{.5\textwidth}{|L|L|R|}
\hline%
foo
&
\rule{1cm}{1ex}
&
bar
\\\hline
foo
&
\rule{1cm}{1ex} bar
&
baz
\\\hline
foo
&
bar \rule{1cm}{1ex}
&
baz
\\\hline
\end{tabulary}
\begin{tabulary}{.5\textwidth}{|L|L|R|}
\hline%
foo
&
{\color{black!50}\rule{1cm}{1ex}}
&
bar
\\\hline
foo
&
{\color{black!50}\rule{1cm}{1ex}} bar
&
baz
\\\hline
foo
&
bar {\color{black!50}\rule{1cm}{1ex}}
&
baz
\\\hline
\end{tabulary}
\end{document}