If i color the text of a table cell, the text gets aligned wrong.
Without color:
With color:
MWE:
\documentclass[10pt, handout]{beamer}
\usepackage{tabulary}
\usepackage{xcolor}
\begin{document}
\begin{frame}{Test}
\begin{tabulary}{\textwidth}{LLLL}
test & test & test & test \\
test & \color{red}test & test & test \\
\end{tabulary}
\end{frame}
\end{document}
I want to use it in a way like this:
\newcommand{\highlight}{\color{black}\cellcolor{red}}
\begin{tabulary}{\textwidth}{LLLL}
test & test & test & test \\
test & \highlight test & test & test \\
\end{tabulary}
\textcolor{red}{test}
rather -- it works then.