Is tabularx
compatible with xcolor
? I did the following:
\documentclass{memoir}
\usepackage[svgnames,hyperref,]{xcolor} % colors for hyperref
\begin{document}
\begin{tabularx}{1.00\linewidth}{X} \toprule
a
\\
b
\\
{\color{red}c} \\
d
\\
e
\\
\bottomrule
\end{tabularx}
\end{document}
But "c" is displaced so that it takes two rows. Changing the column type to l
fixes it.
Is there an easy fix to making xcolor
work with tabularx
?
\textcolor{red}{c}
instead.